Class InsertJSTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.content.InsertContentTag
org.deltava.taglib.content.InsertMinifiedContentTag
org.deltava.taglib.content.InsertJSTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
A JSP tag to insert a JavaScript include file.
- Since:
- 1.0
- Version:
- 10.1
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class InsertContentTag
_resourceNameModifier and TypeFieldDescriptionprotected StringThe name of the resource to display, without extension.Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class InsertMinifiedContentTag
doStartTag, getFileName, isMinified, setMinifyMethods inherited from class InsertContentTag
setNameMethods inherited from class BrowserInfoTag
getBrowserContext, passedCAPTCHAModifier and TypeMethodDescriptionprotected HTTPContextDataFetches the browser data.protected booleanReturns whether the user has passed CAPTCHA validation.Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
InsertJSTag
public InsertJSTag()
-
-
Method Details
-
setAsync
public void setAsync(boolean isAsync) Sets whether the script should be loaded asynchronously.- Parameters:
isAsync- TRUE if loaded asynchronously, otherwise FALSE
-
release
public void release()- Specified by:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classInsertMinifiedContentTag
-
doEndTag
public int doEndTag() throws jakarta.servlet.jsp.JspExceptionRenders the tag.- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjakarta.servlet.jsp.tagext.TagSupport- Returns:
- TagSupport.EVAL_PAGE
- Throws:
jakarta.servlet.jsp.JspException- if an error occurs
-