Class InsertPICSTag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.content.InsertPICSTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class InsertPICSTag extends TagSupport
A JSP tag to insert an PICS-1.1 content rating.
Since:
1.0
Version:
9.0
Author:
Luke
See Also:
  • Constructor Details

    • InsertPICSTag

      public InsertPICSTag()
      Initializes the JSP Tag.
  • Method Details

    • setSafeSurf

      public void setSafeSurf(boolean doSafeSurf)
      Controls whether a SafeSurf content rating tag should be displayed.
      Parameters:
      doSafeSurf - TRUE if the rating tag should be shown, otherwise FALSE
    • release

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

      public int doEndTag() throws JspException
      Renders the PICS-1.1 content to the JSP output stream. No content will be written if no rating data is found or selected.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Returns:
      TagSupport.EVAL_PAGE
      Throws:
      JspException - if an I/O error occurs