op of above tag is -: doStartTag() this is body doAfterBody()
Above class(MyCTag) extends TagSupport.But in doStartTag() method i return BodyTag.EVAL_BODY_BUFFERED. How can i return EVAL_BODY_BUFFERED for doStartTag if i extend TagSupport? Because we can return BodyTag.EVAL_BODY_BUFFERED if we extends BodyTagSupport and BodyTagSupport implements BodyTag which contains EVAL_BODY_BUFFERED field.
If you want to evaluate the body and return EVAL_BODY_BUFFERED, you need, as you pointed out, to extend the class BodyTagSupport or implement the interface BodyTag.
Why would you want to return EVAL_BODY_BUFFERED if you extend TagSupport ? That is not what this interface is for.
And it will not work anyways because what would it invoke ?
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog