Class GetSystemDataTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.content.GetSystemDataTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to stuff data from the SystemData singleton into the request.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
Executes the tag handler and stuffs the SystemData object into the request.void
release()
Releases the tag's state variables.void
setDefault
(Object value) Sets the default value of the attribute, if the SystemData property is not found.void
setMapValues
(boolean mapToList) If the SystemData property is a Map, save only its values to the request.void
Sets the SystemData property name.void
setSort
(boolean doSort) Sort the values.void
Sets the request attribute name.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
GetSystemDataTag
public GetSystemDataTag()
-
-
Method Details
-
setVar
Sets the request attribute name.- Parameters:
vName
- the name of the request attribute to store the data in
-
setName
Sets the SystemData property name.- Parameters:
objName
- the name of the SystemData property to retrieve.
-
setMapValues
public void setMapValues(boolean mapToList) If the SystemData property is a Map, save only its values to the request.- Parameters:
mapToList
- TRUE if only values are to be set, otherwise FALSE
-
setSort
public void setSort(boolean doSort) Sort the values.- Parameters:
doSort
- TRUE if the collection values should be sorted, otherwise FALSE
-
setDefault
Sets the default value of the attribute, if the SystemData property is not found.- Parameters:
value
- the default value
-
release
public void release()Releases the tag's state variables.- Specified by:
release
in interfaceTag
- Overrides:
release
in classTagSupport
-
doEndTag
Executes the tag handler and stuffs the SystemData object into the request.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- TagSupport.EVAL_PAGE
- Throws:
JspException
- if an error occurs
-