Class InsertPICSTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.content.InsertPICSTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to insert an PICS-1.1 content rating.
- Since:
- 1.0
- Version:
- 9.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
Renders the PICS-1.1 content to the JSP output stream.void
release()
Releases the Tag's state data.void
setSafeSurf
(boolean doSafeSurf) Controls whether a SafeSurf content rating tag should be displayed.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
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 interfaceTag
- Overrides:
release
in classTagSupport
-
doEndTag
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 interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- TagSupport.EVAL_PAGE
- Throws:
JspException
- if an I/O error occurs
-