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:
  • 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