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
posted 15 years ago
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.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads