AW: AW: [opencms-dev] CmcJspActionElement vs Tag library
Andreas Zahner
A.Zahner at alkacon.com
Wed Mar 19 09:18:55 CET 2003
Publius,
The include tag which you mentioned looks for the value of the
"template" property of the file "index.jsp" and loads the "head" element
of the template
"/system/modules/org.opencms.welcome/jsptemplates/welcome".
To achieve this with include method, you have to call the method as
follows (cms is an instance of the CmsJspActionElement):
cms.include(cms.property("template"), "head");
A detailed documentation of the CmsJspActionElement and the usage of the
OpenCms JSP taglib will be available with the final release of OpenCms
5.
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: Dienstag, 18. März 2003 19:22
An: opencms-dev at www.opencms.org
Betreff: Re: AW: [opencms-dev] CmcJspActionElement vs Tag library
Thank you Andreas for you reply.
If you don't mind a have another question about the include tags.
Inside the index.jsp from the welcome module there are some includes;
<cms:include property="template" element="head" />
How do I replace this with the CmsJspActionElements methods?
I do not know what file name(target) to provide for the include method
Bellow is the code that I tryied but is not working.
<jsp:useBean id="cms" class="com.opencms.flex.jsp.CmsJspActionElement"
/> ................... <%
java.util.HashMap param = new java.util.HashMap();
param.put("property","template");
param.put("element","head");
cms.include(null,param);
%>
.......................
Please let me know what am I doing wrong.
Thank you
Publius
More information about the opencms-dev
mailing list