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, pageContextFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()Renders the PICS-1.1 content to the JSP output stream.voidrelease()Releases the Tag's state data.voidsetSafeSurf(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:
releasein interfaceTag- Overrides:
releasein 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:
doEndTagin interfaceTag- Overrides:
doEndTagin classTagSupport- Returns:
- TagSupport.EVAL_PAGE
- Throws:
JspException- if an I/O error occurs
-