• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tag handler interacting with body of tag....

 
faiza haris
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which methods are used if the tag handler interacts with the body of the tag....
my ans: doInitBody and setBodyContent ...but
the ans is doAfterBody...
i'v to clarify with the specs...but can anyone tell me abt it beforehand.......call it laziness
faiza
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i tried spec. for setBodyContent() it says "Set the bodyContent property" and doInitBody() it says "This method is invoked by the JSP page implementation object after setBodyContent and before the first time the body is to be evaluated"..
and doAfterBody() says "Process body (re)evaluation"...
so, i guess the answer is doAfterBody(). and also u can have a look at the diagram they have provided in spec for all this methods' sequence of execution. it will be helpful.
well, niether me is dead sure of things as i 've used jsp little and still need to understand/remember all this stuff more clearly and confidently
regards
maulin.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic