General Notes

Before concluding this appendix, let's cover a few additional topics in greater detail.

Body Data

In order to access the body of the tag we need to implement the BodyTag interface. When the body is available, the JSP container will build the BodyContent object. This object will be created after the JSP container evaluates the body of the tag. This object will be passed to the tag handler when the doInitBody() method is invoked. Once created, BodyContent is available elsewhere in the tag handler until the doEndBody() method is finished processing.

The contents of BodyContent are the results after the JSP page has finished the evaluation. This means that the object will not contain any code or actions, just the results of the final ...

Get JSP™ and XML Integrating XML and Web Services in Your JSP™ Application now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.