org.apache.taglibs.request
Class LogTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.request.LogTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class LogTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
JSP Tag log, used to log the content of the log
tag body to the servlet context log.
JSP Tag Lib Descriptor
<name>log</name>
<tagclass>org.apache.taglibs.request.LogTag</tagclass>
<bodycontent>JSP</bodycontent>
<info>Logs the body of the tag to the servlet context log.</info>
- Author:
- Glenn Nielsen
- 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 |
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 |
Method Summary |
int |
doAfterBody()
Log the content of the log tag body to the servlet context log. |
int |
doStartTag()
Always include the body so it can be logged. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
LogTag
public LogTag()
doStartTag
public final int doStartTag()
throws javax.servlet.jsp.JspException
- Always include the body so it can be logged.
- Returns:
- EVAL_BODY_TAG
- Throws:
javax.servlet.jsp.JspException
doAfterBody
public final int doAfterBody()
throws javax.servlet.jsp.JspException
- Log the content of the log tag body to the servlet context log.
- Returns:
- SKIP_BODY
- Throws:
javax.servlet.jsp.JspException
Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.