Package org.opencms.jsp
Class CmsJspTagExport
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- org.opencms.jsp.CmsJspTagExport
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.jsp.tagext.BodyTag
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class CmsJspTagExport extends javax.servlet.jsp.tagext.BodyTagSupport
Allows to have certain JSP code on a JSP not processed by OpenCms, which can be useful in case you want to create a JSP page using the OpenCms static export.Usually, if you want to create a JSP page using the OpenCms static export, some parts of the page should be processed by OpenCms, while other parts of the JSP are processed later when the exported JSP is deployed in another servlet container. A typical use case is that you have a template applied to the page in OpenCms, but the body content of the page is generated after the static export, for example by a database application.
Please note: In order to static export a JSP page with the
".jsp"
suffix, you need to add the property"exportsuffix"
with the value".jsp"
to the OpenCms JSP file in the VFS. Otherwise the static export will always add the suffix".html"
.- Since:
- 7.0.4
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CmsJspTagExport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doStartTag()
-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
-
-
-
Constructor Detail
-
CmsJspTagExport
public CmsJspTagExport()
-
-
Method Detail
-
doStartTag
public int doStartTag()
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
- See Also:
BodyTagSupport.doStartTag()
-
-