Class JSArrayTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.JSTag
org.deltava.taglib.format.JSArrayTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to add objects into a JavaScript array.
- Since:
- 2.4
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.taglib.JSTag
_jsVarName
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()
Renders the JavaScript array to the JSP output stream.void
setItems
(Collection<Object> items) Sets the items to put into the JavaScript array.Methods inherited from class org.deltava.taglib.JSTag
release, setConst, setVar, writeVariableName
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
JSArrayTag
public JSArrayTag()
-
-
Method Details
-
setItems
Sets the items to put into the JavaScript array.- Parameters:
items
- a Collection of objects.
-
doEndTag
Renders the JavaScript array to the JSP output stream.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- EVAL_PAGE always
- Throws:
JspException
- if an error occurs
-