com.taggercat.template.tags
Class VerbatimTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.taggercat.template.tags.VerbatimTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

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

This tag is used to wrap scriptlet code, etc, that you don't want to have processed as JSP content. This tag is an alternative to escaping scriptlet code. Therefore, by using this tag, you can directly include scriptlet code in templates and have the code included in the generated content verbatim. For example:

     <t:verbatim >
     <%= "App Name="+ applicationName %>
     </t:verbatim >
 

This tag simply makes use of the tagdependent value set in the body content element specified in the tld.

Therefore, this is a nearly do nothing tag.

See Also:
Serialized Form
 

Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
VerbatimTag()
           
 
Method Summary
 int doStartTag()
          Processing of the start tag returning EVAL_BODY_INCLUDE
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

VerbatimTag

public VerbatimTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Processing of the start tag returning EVAL_BODY_INCLUDE

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException
Returns:
EVAL_BODY_INCLUDE;