Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pushBody & popBody

 
Tridib Samanta
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following statements PageConext methods pushBody and popBody are true?

1) pushBody is called by the jsp container after doStartTag and before doAfterBdy
2) pushBody is called by the jsp container before doInitBody
3) popBody is called by the jsp container after doAfterBody and before doEndTag
4) popBody is called by the jsp container after doEndTag

Answer Given:1,3

But I think the answer should be:2,3. pushBody is called just before doInitBody() and popBody called just after doAfterBody().

Please let me know which is correct.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Strange. I had never heard of those methods before. I looked them up. Now that I know what they are, I don't think I'll ever use them. I'm pretty sure they won't be on the real exam and I don't know why the mock exam author thought this was important.

This is unlike me but my advice is to not worry about it.
 
Tridib Samanta
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peabody! It's nice to know that it won't be on the real exam .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic