...
- 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.
...
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 | ||
---|---|---|
| ||
<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> |