void setPageContext( PageContext thisPC ) Sets the current page context. This method is called before calls to doStartTag. void setParent( Tag pTag ) Establishes pTag as the parent tag of the current tag. void setPageContext( PageContext thisPC ) Sets the current page context. This method is called before calls to doStartTag. void setParent( Tag pTag ) Establishes pTag as the parent tag of the current tag. The Tag interface also defines a few class variables, which are listed in Table A-13. Table A-13: Class Variables Declared in the Tag Interface Declaration static int EVAL_BODY_INCLUDE The BodyContent Abstract Class Description Returned by the doStartTag method to include the evaluation of the tag body into the output stream (current instance of JspWriter). static int EVAL_PAGE Returned by the doEndTag method to direct the JSP to continue to evaluate the JSP page. static int SKIP_BODY Returned by the doStartTag and doAfterBody methods to omit evaluation of the tag body. static int SKIP_PAGE Returned by the doEndTag method to omit evaluation of the remainder of the JSP page. The BodyContent class is a subclass of JspWriter that can be used to process body evaluations so they can be re-extracted at a later time. Table A-14 lists the methods available in class BodyContent. Table A-14: Methods in the BodyContent Class Method Signature void clearBody() int flush() Redefines flush to make a call to flush illegal for objects of BodyContent. JspWriter getEnclosingWriter() Returns a reference to the JspWriter object from which the current BodyContent is derived from. abstract Reader getReader() abstract String getString() abstract void writeOut() The BodyTagSupport Class Description Clears the contents of a BodyContent object. Returns the instance of BodyContent as a Reader. Returns the instance of BodyContent as a String. Writes the instance of BodyContent to a Writer. The BodyTagSupport class is a base class for defining tag handlers that implement the BodyTag interface. The BodyTagSupportclass implements the BodyTag interface and adds additional convenience methods including getter methods for the BodyContentproperty and methods to get at the previous JspWriter “out” object. Table A-15 lists the methods available with the BodyTagSupport class. Table A-15: Methods in the BodyTagSupport Class
Please check our cheap domain web hosting services, our secret is fast and stable servers, dedicated 24/7 customer support, and many useful FREE bonuses.

Leave a Reply