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
FieldsModifier and TypeFieldDescriptionstatic final StringThe default page context attribute name for the form error message.static final StringThe default page context attribute name for the form session id.Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()intReturns 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.voidsetConfigPath(String configPath) Sets the site path to the edit configuration file.voidSets the structure id of the edit resource.voidsetEditName(String editName) Sets the file name of the edit resource.voidSets the page context attribute name for the form error message.voidSets 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:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjavax.servlet.jsp.tagext.TagSupport- Throws:
javax.servlet.jsp.JspException- See Also:
-
doStartTag
- Specified by:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjavax.servlet.jsp.tagext.TagSupport- Throws:
javax.servlet.jsp.JspException- See Also:
-
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
-