JSP™ and XML Integrating XML and Web Services in Your JSP™ Application
by Casey Kochmer, Erica Frandsen
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access