Package org.opencms.jsp
Class CmsJspTagUgc
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.opencms.jsp.CmsJspTagUgc
- All Implemented Interfaces:
Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
Jsp tag to initialize an editing session for user generated content.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The default page context attribute name for the form error message.static final String
The default page context attribute name for the form session id.Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
int
Returns the site path to the edit configuration file.Returns the structure id of the edit resource.Returns the file name of the edit resource.getError()
Returns the page context attribute name for the form error message.getVar()
Returns the page context attribute name for the form session id.void
setConfigPath
(String configPath) Sets the site path to the edit configuration file.void
Sets the structure id of the edit resource.void
setEditName
(String editName) Sets the file name of the edit resource.void
Sets the page context attribute name for the form error message.void
Sets the page context attribute name for the form session id.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Field Details
-
DEFAULT_ERROR_MESSAGE_ATTR
The default page context attribute name for the form error message.- See Also:
-
DEFAULT_SESSION_ID_ATTR
The default page context attribute name for the form session id.- See Also:
-
-
Constructor Details
-
CmsJspTagUgc
public CmsJspTagUgc()
-
-
Method Details
-
doEndTag
- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
- See Also:
-
TagSupport.doEndTag()
-
doStartTag
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
- See Also:
-
TagSupport.doStartTag()
-
getConfigPath
Returns the site path to the edit configuration file.- Returns:
- site path to the edit configuration file
-
getEditId
Returns the structure id of the edit resource.- Returns:
- structure id of the edit resource
-
getEditName
Returns the file name of the edit resource.- Returns:
- the file name of the edit resource
-
getError
Returns the page context attribute name for the form error message.- Returns:
- the page context attribute name for the form error message
-
getVar
Returns the page context attribute name for the form session id.- Returns:
- the page context attribute name for the form session id
-
setConfigPath
Sets the site path to the edit configuration file.- Parameters:
configPath
- the site path to the edit configuration file
-
setEditId
Sets the structure id of the edit resource.- Parameters:
editId
- the structure id of the edit resource
-
setEditName
Sets the file name of the edit resource.- Parameters:
editName
- the file name of the edit resource
-
setError
Sets the page context attribute name for the form error message.- Parameters:
error
- the page context attribute name for the form error message
-
setVar
Sets the page context attribute name for the form session id.- Parameters:
var
- page context attribute name for the form session id
-