[opencms-dev] RE: JSP Template with Frames II
Wim Baaijens
wim at iblinden.nl
Wed Jul 23 16:02:01 CEST 2003
Hello,
When I let the XML mastertemplate point to the jsptemplate with the
<cms:include___/>, there are no errors. But when I let the XML
mastertemplate point to a jsptemplate which defined the frames, I get
the error.
In the jsptemplate I defined the frames:.
<frame src="<cms:link>main.jsp</cms:link>" name="MainFrame"
scrolling="auto"> When I delete this line, there are no problems with
the template.
In the main.jsp I include this line: <cms:include___/>. : <cms:include
element="body" />
This also doesn't work:
<cms:template element="body">
<cms:include element="body" />
</cms:template>
But I don't know the difference..
In all jsptemplate I include this line: <%@ taglib prefix="cms"
uri="http://www.opencms.org/taglib/cms" %>
Greetings,
Wim
-----Oorspronkelijk bericht-----
--__--__--
Message: 8
Date: Wed, 23 Jul 2003 09:50:39 +0200 (CEST)
Subject: Re: [opencms-dev] RE: JSP Template with Frames II
From: "Joachim Arrasz" <info at arrasz.de>
To: <opencms-dev at opencms.org>
Reply-To: opencms-dev at opencms.org
Hi,
> Your solution is not the answer to my problem.
> All files were found by the templates. But in the mainframe
> (main.jsp), the <cms:include> doesn't work.
>
> Do I have to declare
> <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %> in
> each jsp file?
you have to declare it in each file which uses tags from the specialized
Opencms Taglib! This means every time you use a <cms:___/> you have to
declare it.
> Root cause:
> org.apache.jasper.JasperException: FlexDispatcher: Dectected inclusion
> loop for target
> /system/modules/nl.iblinden.rtb.femina/jsptemplates/main.jsp
this seems to be an error in your template page. Youe have to take EACH
part from your page into a partially template description. If you forget
to make a template called body where your body appears normally the
mechanism produces errors like yours.
> So, I removed the <%taglib ... %> from the mainframe. The error
> disappears, but the <cms:include> doesn't work. I think here is the
> problem, but I don't know how to solve it..
Regards Achim
More information about the opencms-dev
mailing list