[opencms-dev] include mess in online project

Claus Priisholm cpr at codedroids.com
Tue Aug 15 06:45:14 CEST 2006


Are you by any chance caching the jsp template without allowing for 
element variations in the cache?


Christian Steinert wrote:
> Hi List,
> 
> I am working with a very simple template that includes several elements from another JSP file.
> 
> My template just looks like this
> 
> _______________
> <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
> <cms:include property="template-elements" element="start" />
> <cms:include property="template-elements" element="title" />
> <cms:include property="template-elements" element="sectionnav" />
> <cms:include property="template-elements" element="end" />
> _______________
> 
> the template property is set to a JSP file called:
>   /system/modules/com.berzinarchives.cms.internal/templates/berzinarchives-internal-main.jsp
> 
> Everything works fine in offline mode.
> 
> But if I switch to online mode then then the includes don't work anymore. Instead of getting four different elements included, I get the first element included four times (in this case my "start" element)!
> 
> If I take out the first <cms:include ...> tag then I get the element three times that is then first. So basically, any include but the first fails and just repeats the content of the first include, as soon as I'm in online mode.
> 
> 
> Does anyone have the slightest idea why this could be the case?
> Did anyone encounter sth. similar?
> 
> I'm on 6.2.1 with tomcat 5.5, mysql 4.0, Java 1.5.05
> 
> 
> Any ideas would be highly appreciated
> Christian
> 
> ______________________________________________________________
> Verschicken Sie romantische, coole und witzige Bilder per SMS!
> Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 

-- 
Claus Priisholm, CodeDroids ApS
Phone: +45 48 22 46 46
cpr (you know what) codedroids.com - http://www.codedroids.com
cpr (you know what) interlet.dk - http://www.interlet.dk
--
Javadocs and other OpenCms stuff: 
http://www.codedroids.com/community/opencms



More information about the opencms-dev mailing list