public abstract static class JspTagLifecycle.Interceptor
extends java.lang.Object
Constructor and Description |
---|
JspTagLifecycle.Interceptor() |
public void evalBody(int theIteration, javax.servlet.jsp.tagext.BodyContent theBody) throws javax.servlet.jsp.JspException, java.io.IOException
BodyTag
, you
should not write content to the
JspTestCase.out
instance variable while
the body is being evaluated. This is because the actual implicit
object out
in JSP pages gets replaced by the current
nested BodyContent
, whereas in JspTestCase
the out
variable always refers to the top level
JspWriter
. Instead, simply use the
BodyContent
parameter passed into the
evalBody()
method or
the JspWriter
retrieved by a call to
{javax.servlet.jsp.PageContext#getOut pageContext.getOut()}.theIteration
- The number of times the body has been evaluatedtheBody
- The body content, or null if the tag isn't a
BodyTagjavax.servlet.jsp.JspException
- If thrown by a nested tagjava.io.IOException
- If an error occurs when reading or writing the
body contentpublic void skipBody()
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.