![]() |
|
|||||||||||||||||||||||||||||||||||||||
Parameters:
Parameters:
Parameters:
Parameters:
Example usage: Include the JSP page "some_page.html": org.opencms.jsp.CmsJspActionElement cms = new org.opencms.jsp.CmsJspActionElement(pageContext, request, response);
cms.include("some_page.html");
Read the name of the file to be included from the property "template" on the current file: org.opencms.jsp.CmsJspActionElement cms = new org.opencms.jsp.CmsJspActionElement(pageContext, request, response);
cms.include(cms.property("template"));
Add additionally some key/value coded parameters to the request parameters hashtable to pass them to the included file: org.opencms.jsp.CmsJspActionElement cms = new org.opencms.jsp.CmsJspActionElement(pageContext, request, response);
java.util.HashMap parameters = new java.util.HashMap();
parameters.put("__locale", locale);
parameters.put("__navpart", "toprow");
cms.include("../elements/template-nav-top.jsp", null, parameters);
Include the element "head" from the JSP page specified by the "template" property: org.opencms.jsp.CmsJspActionElement cms = new org.opencms.jsp.CmsJspActionElement(pageContext, request, response);
cms.include(cms.property("template"), "head");
Include the direct editable page element "body": org.opencms.jsp.CmsJspActionElement cms = new org.opencms.jsp.CmsJspActionElement(pageContext, request, response); cms.include(null, "body", true); |
||||||||||||||||||||||||||||||||||||||||
|
©2005 Alkacon Software GmbH (http://www.alkacon.com) - The OpenCms experts |
||||||||||||||||||||||||||||||||||||||||