Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PageContect's pushBody() & popBody()

 
Joseph Sweet
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to All

Could you please explain to me what these two methods pushBody() & popBody() of PageContext do.

I am reading the API over and over but cannot figure out what they want to say.

The rest of the methods are pretty clear.

Thanks!

 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a particular implementation that you are looking at?

Where did you find: "PageContext do"?.
 
Joseph Sweet
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't get your question but look,

If you read what the API says in the two links I have mentioned above, there is an explanation there regarding what those methods do.

I don't understand that explanation.

public BodyContent pushBody()

Return a new BodyContent object (BodyContent of what?), save the current "out" JspWriter (save where?), and update (update with what data?) the value of the "out" attribute in the page scope attribute namespace of the PageContext (Hold on, this API does not mention earlier that the page scope of this PageContext has a "out" attribute. I thought the PageContext just has that attribute with no specific scope.)

What is this all process good for?

[ July 28, 2007: Message edited by: Joseph Sweet ]
 
subodh gupta
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't get your question but look,

If you read what the API says in the two links I have mentioned above, there is an explanation there regarding what those methods do.

I don't understand that explanation.


quote:
--------------------------------------------------------------------------------
public BodyContent pushBody()

Return a new BodyContent object (BodyContent of what?), save the current "out" JspWriter (save where?), and update (update with what data?) the value of the "out" attribute in the page scope attribute namespace of the PageContext (Hold on, this API does not mention earlier that the page scope of this PageContext has a "out" attribute. I thought the PageContext just has that attribute with no specific scope.)

What is this all process good for?
--------------------------------------------------------------------------------

1) BodyContent of your JSP
2) I think your content will saved in some temprary loction before updating the jsp view
3) PageContext has most of the objects you need in taglib including the out object
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic