AW: [opencms-dev] CmcJspActionElement vs Tag library
Andreas Zahner
A.Zahner at alkacon.com
Tue Mar 18 09:31:35 CET 2003
Publius,
Include the body element with the following code (cms is an instance of
the CmsJspActionElement):
if (cms.template("body")) {
cms.include(null, "body");
}
To mark other parts of your template, e.g. a head part, do this by
writing all head elements and HTML tags between the following code:
if (cms.template("head")) {
// your code
}
Regards,
Andreas Zahner
Alkacon Software - The OpenCms Experts
http://www.alkacon.com
-----Ursprüngliche Nachricht-----
Von: owner-opencms-dev at www.opencms.org
[mailto:owner-opencms-dev at www.opencms.org] Im Auftrag von Publius
Ismanescu
Gesendet: Montag, 17. März 2003 20:05
An: opencms-dev at www.opencms.org
Betreff: [opencms-dev] CmcJspActionElement vs Tag library
Hi everybody
For good reasons , I have to use the CspJspActionElement class to
acomplish the same thing that is done with
the Cms Tag library.
The welcome module contain a jsp template called welcome.
An example of using the template tag is :
<cms:template element="body">
<cms:include file="../elements/bodyloader.xml" element="body" />
</cms:template>
My question is , how do I replace this with the method " template(String
part) " from CmsJspActionElement.
Thank you
Publius
More information about the opencms-dev
mailing list