public class CmsJspTagJsonPart extends javax.servlet.jsp.tagext.TagSupport implements javax.servlet.jsp.tagext.TryCatchFinally
It only makes sense to use this tag in combination with the servlet filter org.opencms.jsp.jsonpart.CmsJsonPartFilter. This tag converts the text generated by its contained JSP code and converts it into a special encoded form, which is then used by the filter to generate JSON. The 'element' attribute on this tag can be used to control the JSON key which will be used for the content.
| Constructor and Description |
|---|
CmsJspTagJsonPart() |
| Modifier and Type | Method and Description |
|---|---|
void |
doCatch(java.lang.Throwable arg0) |
int |
doEndTag() |
void |
doFinally() |
int |
doStartTag() |
java.lang.String |
getElement()
Returns the name to be used as the JSON key.
|
void |
setElement(java.lang.String elementName)
Sets the name to be used as a JSON key.
|
public CmsJspTagJsonPart()
public void doCatch(java.lang.Throwable arg0) throws java.lang.Throwable
doCatch in interface javax.servlet.jsp.tagext.TryCatchFinallyjava.lang.ThrowableTryCatchFinally.doCatch(java.lang.Throwable)public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionTagSupport.doEndTag()public void doFinally()
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinallyTryCatchFinally.doFinally()public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionTagSupport.doStartTag()public java.lang.String getElement()
public void setElement(java.lang.String elementName)
elementName - the name to be used as a JSON key