Class PointArrayTag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable

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 jakarta.servlet.jsp.tagext.Tag
      Overrides:
      release in class JSTag
    • doEndTag

      public int doEndTag() throws jakarta.servlet.jsp.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 jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class jakarta.servlet.jsp.tagext.TagSupport
      Returns:
      TagSupport.EVAL_PAGE always
      Throws:
      jakarta.servlet.jsp.JspException - if a network error occurs