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, 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()Executes the tag handler and stuffs the SystemData object into the request.voidrelease()Releases the tag's state variables.voidsetDefault(Object value) Sets the default value of the attribute, if the SystemData property is not found.voidsetMapValues(boolean mapToList) If the SystemData property is a Map, save only its values to the request.voidSets the SystemData property name.voidsetSort(boolean doSort) Sort the values.voidSets 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:
releasein interfaceTag- Overrides:
releasein classTagSupport
-
doEndTag
Executes the tag handler and stuffs the SystemData object into the request.- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classTagSupport- Returns:
- TagSupport.EVAL_PAGE
- Throws:
JspException- if an error occurs
-