• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why does not have getPageContent method

 
Win Yu
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In BodyTagSuppot class, it has both setBodyContent and getBodyContent, why TagSupport only has setPageContext method. Can anyone explain. Thanks.
[This message has been edited by Win Yu (edited November 16, 2001).]
 
ruijin yang
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
TagSupport has not setPageContent method.It is setPageContext.
ruijin yang
Originally posted by Win Yu:
In BodyTagSuppot class, it has both setBodyContent and getBodyContent, why TagSupport only has setPageContent method. Can anyone explain. Thanks.

 
ather ali
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Win Yu:
In BodyTagSuppot class, it has both setBodyContent and getBodyContent, why TagSupport only has setPageContent method. Can anyone explain. Thanks.


Actually it is recomended that TagSupport class should be use for those Custom Tags which do not have any body in it. So it might be the reason that it do not have getBodyContent() and relevant methods which are specific to tag's body

------------------
SCJP2
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic