Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
maxLevel2

 

...

Contents of a JSP

A JSP file contains simply the (X)HTML (or XML) that is requested. JSP directives allow the use of so-called tag libraries. To use the core functions of the JSP Standard Tag Library (JSTL), the following directive should be placed at the beginning of the file:

...

The following fields can be used in the XML descriptor files associated with each JSP. The options are:

 

TagNoteDescription

<name>

Required

The unique internal name for the design template.

<display-name>

Required

The name shown in the drop-down list for the element.

<scope>

Several are possible

Specifies for which part in XperienCentral the descriptor is intended.

<ssi>
  <Design template>

Optional
Optional

Disk location of the handling JSPF for the server side include version.

<property>

Optional and several are possible

Definitions of the options to be configured in XperienCentral.

<channel>

Optional and several are possible

Definitions of the channels.

 

Property Tags, Design Template Variants and Styles

...

The possible property tags are:

 

TagNoteDescription

propertyname

Required

The name as it is used as identifier in the JSP.

display-name

Required

The name as appears in XperienCentral drop-down lists.

datatype

Required

The options are "Boolean", "String", and "Integer".

default

Optional

If no style property is connected to a design template property, the default value is used.

 

The integer, string, and boolean data types make it possible to configure the JSPs without having to use Java code. If possible, create a pagemetadata plugin if you want to assign specific objects to a page.

...

A channel can be viewed using the ?channel=… query argument on a page, for example http://localhost:8080/web/show/?channel=pdf.

Example uses are:

 

Channel-nameUsage

text

Generates plain text.

textmail

Generates plain text used by the Newsletter component.

htmlmail

Generates HTML used by the Newsletter component.

pdf

Generates the design template in PDF.

mobile

Generates HTML for mobile devices.

 

If a design template does not specify a channel, this item will be skipped when rendering. For example, if a table element should not be rendered for a newsletter, do not add channel textmail or htmlmail to the table element design template(s).              

The styles included in XperienCentral has tags with the following meaning:

 

TagNoteDescription

name

Required

The frame identifier.

design template

Required

The relative path to the JSP.

 

If the website uses HTML frames, the content of the frames is specified using a frame tag in the JSP’s design template descriptor that contains the frame set. The XML looks as follows (using sample entries):

...

The tags have the following meaning:

 

TagNoteDescription

name

Required

The frame identifier.

location

Required

Relative path to the JSP.

 

To use such a frame in the JSP, create a link in the URL with frame=<frame identifier>. For the XML example above, the link is as follows:

...

The tags have the following meanings:

 

TagNoteDescription

name

Required

The stylesheet identifier.

design template

Required

The relative path to the stylesheet.

pagedependentRequired

A boolean that determines whether the content of the stylesheet is determined by limitations set in the XperienCentral style and that are valid for that page.

 

This does not mean that the stylesheet is automatically included in the source. This is accomplished by requesting the current page from the design templatecontext, and then requesting all the connected stylesheets from that page. This generates an array of stylesheet objects that each generate the URL using the getUrl() method.

...