Class ForCDATATag

java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
org.owasp.encoder.tag.EncodingTag
org.owasp.encoder.tag.ForCDATATag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class ForCDATATag extends EncodingTag
A tag to perform encoding sufficient to place into a CDATA block. This wraps the Encode.forCDATA(java.lang.String).
Author:
Jeremy Long (jeremy.long@gmail.com)
  • Field Summary

    Fields inherited from class org.owasp.encoder.tag.EncodingTag

    _value
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class org.owasp.encoder.tag.EncodingTag

    setValue

    Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport

    findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ForCDATATag

      public ForCDATATag()
  • Method Details

    • doTag

      public void doTag() throws javax.servlet.jsp.JspException, IOException
      Specified by:
      doTag in interface javax.servlet.jsp.tagext.SimpleTag
      Overrides:
      doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
      Throws:
      javax.servlet.jsp.JspException
      IOException