aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes PageContext.pushBody()? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "PageContext.pushBody()?" Watch "PageContext.pushBody()?" New topic
Author

PageContext.pushBody()?

Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637
I raad many times the meaning of PageContext.pushBody()? What does it mean

From javadoc
pushBody
public BodyContent pushBody()Return a new BodyContent object, save the current "out" JspWriter, and update the value of the "out" attribute in the page scope attribute namespace of the PageContext.

Returns:
the new BodyContent


SCJP, SCWCD, SCBCD
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

This is mainly used by custom tags buffering their content. When a custom tag uses a buffer for its content, the current output stream is being pushed so that any further output will be redirected to the buffer. The initial output stream can be used by popping it out of the stack, using popBody().


[My Blog]
All roads lead to JavaRanch
 
Don't get me started about those stupid light bulbs.
 
subject: PageContext.pushBody()?