Versions Compared

Key

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

...

  • JSPs are designed to contain HTML and scripting code, not Java code. In combination with the special <% %> tag (the so-called scriptlets), it is possible to include Java code in the JSP. Try to avoid using these scriptlets because this conflicts with the separation of content, business logic and the design template and it may conflict with the caching mechanism.
  • Don’t use the <jsp:include> tag to include a JSP. Instead use the XperienCentral alternative: <wm:includeUrl url=""/>.
  • Don’t mix XperienCentral sessions with common Java sessions.

 

Back to top

 

...

XML Descriptor File

To connect a JSP to XperienCentral, a design template descriptor has to be defined. The design template descriptor – in XML format – identifies the JSP for XperienCentral. Almost every JSP has its own descriptor. XperienCentral reads the design template descriptors when you upload the plugin.

...

Code Block
themeEclipse
<c:set var="styleSheets" value="${Design templatecontext.pageVersion.styleSheets}" />
<c:forEach var="styleSheet" items="${styleSheets}">
	<link rel="stylesheet" href="${fn:escapeToXml(styleSheet.url)}" type= "text/css" />
</c:forEach>

 

Back to top