<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6396.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hello everybody!</FONT>
<BR><FONT SIZE=2 FACE="Arial">I've got a problem with opencms. I would like to combine an jsp template and a xml template and fill the xml template with my own content. So i followed the Alkacon documentation and used 3 files. They look like this:</FONT></P>
<P><FONT SIZE=2 FACE="Arial">file index (type plain)</FONT>
<BR><FONT SIZE=2 FACE="Arial"><?xml version="1.0" encoding="ISO-8859-1"?></FONT>
<BR><FONT SIZE=2 FACE="Arial"><xmltemplate></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <template></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <![CDATA[ This ist the content ]]><process>content</process></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </template></FONT>
<BR><FONT SIZE=2 FACE="Arial"></xmltemplate></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">file index.html (type xmltemplate)</FONT>
<BR><FONT SIZE=2 FACE="Arial"><?xml version="1.0" encoding="ISO-8859-1"?></FONT>
<BR><FONT SIZE=2 FACE="Arial"><PAGE></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <class>makdata.opencms.projektliste.ProjektlisteBackOffice</class></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <masterTemplate>/www/de/projektliste/bsp/jsptemplate</masterTemplate></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <ELEMENTDEF name="body"></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <TEMPLATE>/www/de/projektliste/bsp/index</TEMPLATE></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <CLASS>makdata.opencms.projektliste.ProjektlisteBackOffice</CLASS></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </ELEMENTDEF></FONT>
<BR><FONT SIZE=2 FACE="Arial"></PAGE></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">file jsptemplate (type plain)</FONT>
<BR><FONT SIZE=2 FACE="Arial"><?xml version="1.0" encoding="ISO-8859-1"?></FONT>
<BR><FONT SIZE=2 FACE="Arial"><xmltemplate></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <template></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <element name="jsptemplate"/></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </template></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <elementdef name="jsptemplate"></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <class>com.opencms.flex.CmsJspTemplate</class> </FONT>
<BR><FONT SIZE=2 FACE="Arial"> <template>/system/modules/org.opencms.default/jsptemplates/mak_events.jsp</template></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </elementdef></FONT>
<BR><FONT SIZE=2 FACE="Arial"></xmltemplate></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">the souce of the class:</FONT>
<BR><FONT SIZE=2 FACE="Arial">public class ProjektlisteBackOffice extends CmsXmlTemplate</FONT>
<BR><FONT SIZE=2 FACE="Arial">{</FONT>
<BR><FONT SIZE=2 FACE="Arial"> public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) </FONT></P>
<P><FONT SIZE=2 FACE="Arial"> throws CmsException</FONT>
<BR><FONT SIZE=2 FACE="Arial"> {</FONT>
<BR><FONT SIZE=2 FACE="Arial"> CmsXmlTemplateFile template = getOwnTemplateFile(cms, templateFile, elementName, parameters, templateSelector);</FONT>
<BR><FONT SIZE=2 FACE="Arial"> String content = "Java content";</FONT>
<BR><FONT SIZE=2 FACE="Arial"> template.setData("content", content); </FONT>
<BR><FONT SIZE=2 FACE="Arial"> return startProcessing(cms, template, elementName, parameters, templateFile); </FONT>
<BR><FONT SIZE=2 FACE="Arial">}</FONT>
<BR>
<BR><FONT SIZE=2 FACE="Arial">but this doesn't work. The jsptemplat is generated correctly and the written content of the index file is also correct, but it says:</FONT></P>
<P><FONT FACE="Times New Roman">? UNKNOWN DATABLOCK content </FONT>
<BR><FONT FACE="Times New Roman">It seems that it doesn't use my own class, but i don't know why. Can anybody help me??</FONT>
</P>
<P><FONT FACE="Times New Roman">Best reguards</FONT>
</P>
<P><FONT FACE="Times New Roman">Torben Quast</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2 FACE="Arial">Torben Quast</FONT>
<BR><FONT SIZE=2 FACE="Arial">MaK Data System GmbH </FONT>
<BR><FONT SIZE=2 FACE="Arial">Falklandstraße 1 – 3</FONT>
<BR><FONT SIZE=2 FACE="Arial">24159 Kiel</FONT>
<BR><FONT SIZE=2 FACE="Arial">Telefon: +49(0)431-3993-500</FONT>
<BR><FONT SIZE=2 FACE="Arial">FAX: +49(0)431-3993-998</FONT>
<BR><FONT SIZE=2 FACE="Arial">email: quast@makdata.de</FONT>
</P>
</BODY>
</HTML>