Class PointArrayTag

All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class PointArrayTag extends GoogleMapEntryTag
A JSP Tag to generate a JavaScript array of Google Maps Lat/Lon objects.
Since:
1.0
Version:
7.3
Author:
Luke
See Also:
  • Constructor Details

    • PointArrayTag

      public PointArrayTag()
  • Method Details

    • setItems

      public void setItems(Collection<GeoLocation> points)
      Sets the points used to generate the array.
      Parameters:
      points - a Collection of GeoLocations
    • release

      public void release()
      Releases the tag's state variables.
      Specified by:
      release in interface Tag
      Overrides:
      release in class JSTag
    • doEndTag

      public int doEndTag() throws JspException
      Renders the tag data to the JSP output stream, generating a JavaScript array with a number of Google Maps points.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Returns:
      TagSupport.EVAL_PAGE always
      Throws:
      JspException - if a network error occurs