Class JSTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.JSTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
- Direct Known Subclasses:
GoogleMapEntryTag
,JSArrayTag
,JSDateTag
,JSMapTag
An abstract class to support JSP tags that render JavaScript data.
- Since:
- 2.4
- Version:
- 10.2
- Author:
- Luke
- See Also:
-
Field Summary
FieldsFields 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
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Field Details
-
_jsVarName
The name of the Javascript variable to create.
-
-
Constructor Details
-
JSTag
public JSTag()
-
-
Method Details
-
setVar
Sets the JavaScript variable to create.- Parameters:
varName
- the variable name
-
setConst
public final void setConst(boolean isConst) Marks the JavaScript variable as a constnt.- Parameters:
isConst
- TRUE if a constant, otherwise FALSE
-
release
public void release()- Specified by:
release
in interfaceTag
- Overrides:
release
in classTagSupport
-
writeVariableName
Writes the variable name to the JSP output stream- Throws:
IOException
-