Hi All,
Actually I need to do something in doInitBody() method,
also the body content must be evaluated. So, I use BodyTagSupport.
1. I have a custom tag declared as
2. The class BodyTag1Handler extends BodyTagSupport.
3. In
JSP This is what happening:
1. If doStartTag() return EVAL_BODY_INCLUDE
Body is Evaluated and doAfterBody() is called.
setBodyContent() and doInitBody() is Not called.
This is OK
2. If doStartTag() return EVAL_BODY_BUFFERED
Body is Not Evaluated and doAfterBody() is Not called
But, setBodyContent() and doInitBody() is called.
The Lifecycle described in HFSJ page 563 is not happening in the case 2.
Can someone please tell am I missing anything ?
Thanks in advance
Kathir