Lucas Smith wrote:Can I ask for help? I really appreciate Your help!
Nitinyanand Patil wrote:is it implicitly available in the taghandler class?
Nitinyanand Patil wrote:I just had a look at the api at: http://java.sun.com/javaee/5/docs/api/javax/servlet/jsp/tagext/BodyTag.html#doInitBody().
The api states that:
Prepare for evaluation of the body. This method is invoked by the JSP page implementation object after setBodyContent and before the first time the body is to be evaluated.
According to this ,the body is not evaluated when the doInitBody() is executing.This may be the reason why the body content is not displayed and the appln scoped attribute is not set. If the code would have been in doAfterBody() , the value would have been printed.
Please correct me if I am wrong.
Nitinyanand Patil wrote:Thanks everyone and special thanks to Lucas Smith for posting such a wonderful thread.
Only by reading the books ,one could not have grasped the concept. The discussion helps a lot.