File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes possible value of doAfterBody Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "possible value of doAfterBody" Watch "possible value of doAfterBody" New topic

possible value of doAfterBody

Radmika Arunachalam
Ranch Hand

Joined: Mar 29, 2004
Posts: 45
Somewhere i read doAfterBody can return EVAL_BODY_BUFFERED if implemented BodyTag.. Even i have flow chart with me but i dont know how to copy here... but in HFSJ and few other places it is given only SKIP_BODY and EVAL_BODY_AGAIN? Which one is correct?

Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 951

There are only two return type for doAfterBody method SKIP_BODY , EVAL_BODY_AGAIN. ( Actually there are three, but one EVAL_BODY_TAG is deprecated).

The sole purpose of EVAL_BODY_BUFFERED is to activate the mechanism to run the setBodyContent and doInitBody method if required. In the Life cycle these methods are above the doAfterBody method. Also these methods run only one time in the tag invocation. So I think the EVAL_BODY_BUFFERED is not appropriate return type for doAfterBody method.

Hope it help you.


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
I agree. Here's the link:
subject: possible value of doAfterBody
jQuery in Action, 3rd edition