AW: [opencms-dev] element definitions in jsptemplate
Frank Wunderlich
k.frank.wunderlich at gmx.de
Tue Jun 17 10:06:01 CEST 2003
Hi Enol,
I think I have had the same problem.
It seems to me that the cms:include-tag does not just include the
addressed template element section in your jsptemplate, but also every
code in the jsptemplate that is NOT embraced by any other
cms-template-tag (like your <cms:include page="../elements/page.jsp" />.
Looks like a bug to me... ?
Solution:
...
> </cms:template>
<cms:template element="body">
>
> <tr>
> <cms:include element="body" />
> <cms:include page="../elements/page.jsp" />
>
> </tr>
</cms:template>
>
> <cms:template element="foot">
>
Greetings,
Frank.
> -----Ursprüngliche Nachricht-----
> Von: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org] Im Auftrag von enol
> Gesendet: Dienstag, 17. Juni 2003 09:33
> An: opencms-dev at opencms.org
> Betreff: [opencms-dev] element definitions in jsptemplate
>
>
> Hi List,
> I have a little problem...
> I split a jsptemplate in template elements.
> When I try to use some of these elements in a jsp, what
> I see doesn't match with the template element definition in
> the jsptemplate but include page.jsp that is include in the
> jsptemplate too.
>
> May be I not defined well the elements...
> Here is a sample of my code:
>
> ******jsptemplate******
>
> <cms:template element="top">
>
> <html>
> <head>
> <title></title>
> <META http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1"> <META http-equiv="Pragma"
> CONTENT="no-cache"> </head> <body bgcolor="#ffffff"
> topmargin="0" leftmargin="0"> <table width="760"
> align="center" cellpadding="0" cellspacing="0">
> <!-- TOP -->
> <tr>
> <td colspan=7 height="60"> <table width="100%"
> align="center" cellpadding="0" cellspacing="0">
> <tr>
>
> ******* HTML CODE *******
>
> </tr>
> </td>
> </tr>
>
> </cms:template>
>
> <tr>
>
> <cms:template element="body">
> <cms:include element="body" />
> </cms:template>
>
> <cms:include page="../elements/page.jsp" />
>
> </tr>
>
>
> <cms:template element="foot">
>
> <tr>
>
> ******* HTML CODE *******
>
> </tr>
> </table>
> </body>
> </html>
>
> </cms:template>
>
>
>
>
>
> ******* simplejsp.jsp *******
>
> <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
>
> <cms:include property="template" element="top"/>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list,
> please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list