<< Back - Alkacon logo

OpenCms 6.0 interactive documentation:

link to /system/modules/com.alkacon.documentation/elements/showsource.jsp

OpenCms logo - Forward >>

Source code for: /alkacon-documentation/examples_flex_2/simplexml.html


<?xml version="1.0" encoding="UTF-8"?>

<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.opencms.org/dtd/6.0/xmlpage.xsd">
  <page language="en">
    <element name="body">
      <links/>
      <content><![CDATA[<h2>Simple XMLTemplate / JSP integration demo</h2>
<p>This simple demo shows how to use JSP elements in XMLTemplates. </p>
<p>The navigation on the left side is build from this JSP element:<br /><font color="#ff0000">/system/modules/com.alkacon.documentation/elements/navigation.jsp<br /></font>Please note that this navigation element page usually should be placed in the /elements directory, as this is the standard sub-element repository.</p>
<p>This file is also part of the example template definition:<br /><font color="#6666ff">/system/modules/com.alkacon.documentation/templates/jsptest</font> (Mastertemplate)</p>
<p>The mastertemplates combines the layout to build the 
whole page. Please note if you look at the source code that this way of creating 
a template <em><strong>is considerd to be deprecated</strong></em>                                                                                                           if used in combination with JSP elements. Check out the other examples (esp. the &quot;documentationdefault&quot; template) to see how to generate a JSP based template &quot;the right way&quot;.</p>
<p>This example also shows how to use a stylesheet so that the editor uses the same font as it is displayed in the output page. Have a look at the mastertemplate file and how it uses the <stylesheet> XML Tag to describe the stylesheet for the editor. Please refer to the PDF developer documentation for further details about the mastertemplate and the XMLTemplate mechanism used here in case you need more details.</p>]]></content>
    </element>
  </page>
</pages>


©2005 Alkacon Software GmbH (http://www.alkacon.com) - The OpenCms experts