[opencms-dev] Include problem - template element argument disregarded online not offline
Paul-Inge Flakstad
flakstad at npolar.no
Fri Jan 18 13:13:26 CET 2013
Hi everyone,
I've got a very strange issue that's bugging me out here. My setup is OpenCms 7.5.2, MySQL, Tomcat with Apache in front.
I use a simple JSP to produce 2 different outputs - a regular list and a select drop-down.
The JSP, let's call it "JSP-A", looks like this:
CmsJspXmlContentBean cms = new CmsJspXmlContentBean(pageContext, request, response);
if (cms.template("list")) {
// print the list
}
if (cms.template("select")) {
// print the select drop-down
}
I'm triggering the output by calling the include() method from another JSP, "JSP-B":
CmsJspXmlContentBean cms = new CmsJspXmlContentBean(pageContext, request, response);
cms.include(JSP-A, "list", false, params); // Should trigger the output of the list
and
cms.include(JSP-A, "select", false, params); // Should trigger the output of the select drop-down
But all is not well. What happens is outright strange:
When viewing the online site, the output is *always* the list, for both include() calls in JSP-B. It's as if JSP-A contained *only* the code for the printing the list.
But offline, everything's fine! Both the list and the select drop-down are printed correctly and as expected.
Things I've done already:
- Cleared all cache
- Triple-checked that everything's published
- Confirmed that the online files are indeed up-to-date (added some comments and confirmed that they were printed)
To top it all off, it so happens I'm using this very same approach elsewhere on the site, with no problems at all!
WTF..??? What could be causing this? Any ideas???
Cheers,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130118/37eedad5/attachment.htm>
More information about the opencms-dev
mailing list