[opencms-dev] Cannot use a template with several page elements for a JSP
Marc Schlegel
my.mailing.lists at gmx.de
Tue Feb 12 21:11:35 CET 2008
Hi
I am running in an error when I am including the head- and the
foot-elements of my template into a jsp-file. The error says something
about VFS taget already included.
I searched the web and found out that it's usually a syntax error
causing the problem...well in my case, I have to remove my multiple page
elements (body, text1, ..., text4) and it its working (obviously jsps
doesn't support page elements)
My template structure is actually the same that is provided by the
documentation
<cms:template element="head">
... inclusion of head, headimage, nav_left, and so on
<div class="content">
</cms:template>
----> here the problem starts <------------
<cms:template ifexists="body">
<div class="element"><cms:include element="body"
editable="true"/></div>
</cms:template>
<cms:template ifexists="text1">
<div class="element"><cms:include element="text1"
editable="true"/></div>
</cms:template>
<cms:template ifexists="text2">
<div class="element"><cms:include element="text2"
editable="true"/></div>
</cms:template>
<cms:template ifexists="text3">
<div class="element"><cms:include element="text3"
editable="true"/></div>
</cms:template>
<cms:template ifexists="text4">
<div class="element"><cms:include element="text4"
editable="true"/></div>
</cms:template>
----> here the problem ends<------------
<cms:template element="foot">
</div>
... including foot
</cms:template>
When I remove the code for the multiple page elements, I can compile the
JSP, but then my HTML files are missing this feature. I don't understand
this error, cause I am only including head and foot!?
Someone have a clue?
Thanks
More information about the opencms-dev
mailing list