permaculture playing cards
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


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
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.

the new BodyContent

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

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
I agree. Here's the link:
subject: PageContext.pushBody()?
It's not a secret anymore!