Class InsertJSTag

All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable

public class InsertJSTag extends InsertMinifiedContentTag
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

    _resourceName
    Modifier and Type
    Field
    Description
    protected String
    The name of the resource to display, without extension.

    Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport

    id, pageContext

    Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag

    EVAL_BODY_AGAIN

    Fields inherited from interface jakarta.servlet.jsp.tagext.Tag

    EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Renders the tag.
    void
     
    void
    setAsync(boolean isAsync)
    Sets whether the script should be loaded asynchronously.

    Methods inherited from class InsertMinifiedContentTag

    doStartTag, getFileName, isMinified, setMinify
    Modifier and Type
    Method
    Description
    int
     
    protected String
    Returns the actual file name of the requested resource.
    protected boolean
    Returns whether this resource is minified.
    void
    setMinify(boolean override)
    Manually overrides the minification state of this resource.

    Methods inherited from class InsertContentTag

    setName
    Modifier and Type
    Method
    Description
    void
    Update the name of the resource to insert.

    Methods inherited from class BrowserInfoTag

    getBrowserContext, passedCAPTCHA
    Modifier and Type
    Method
    Description
    protected HTTPContextData
    Fetches the browser data.
    protected boolean
    Returns 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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      release in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      release in class InsertMinifiedContentTag
    • doEndTag

      public int doEndTag() throws jakarta.servlet.jsp.JspException
      Renders the tag.
      Specified by:
      doEndTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class jakarta.servlet.jsp.tagext.TagSupport
      Returns:
      TagSupport.EVAL_PAGE
      Throws:
      jakarta.servlet.jsp.JspException - if an error occurs