Class JSMapTag

All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

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

    • JSMapTag

      public JSMapTag()
  • Method Details

    • setObject

      public void setObject(Map<String,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 object 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