Class JSArrayTag

All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class JSArrayTag extends JSTag
A JSP tag to add objects into a JavaScript array.
Since:
2.4
Version:
11.0
Author:
Luke
See Also:
  • Constructor Details

    • JSArrayTag

      public JSArrayTag()
  • Method Details

    • setItems

      public void setItems(Collection<Object> items)
      Sets the items to put into the JavaScript array.
      Parameters:
      items - a Collection of objects.
    • doEndTag

      public int doEndTag() throws JspException
      Renders the JavaScript array to the JSP output stream.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Returns:
      EVAL_PAGE always
      Throws:
      JspException - if an error occurs