com.ora.jsp.tags.generic
Class EncodeHTMLTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--com.ora.jsp.tags.generic.EncodeHTMLTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class EncodeHTMLTag
extends javax.servlet.jsp.tagext.BodyTagSupport

This class is a tag handler for custom action that replaces HTML special characters in its body with the corresponding HTML character entities.

Version:
1.0
Author:
Hans Bergsten, Gefion software
See Also:
Serialized Form

Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext, parent, values
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
EncodeHTMLTag()
           
 
Method Summary
 int doAfterBody()
          Reads the body content, converts all HTML special characters with the corresponding HTML character entities, and adds the result to the response body.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

EncodeHTMLTag

public EncodeHTMLTag()
Method Detail

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Reads the body content, converts all HTML special characters with the corresponding HTML character entities, and adds the result to the response body.
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport