Yi Yuan

Greenhorn
+ Follow
since Jul 03, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Yi Yuan

I think the stateless EJB will be the choice.
The statefull EJB should be used only when you want to store particular information about each user.
It does not include the competing products.
If the method doAfterBody() returns EVAL_BODY_AGAIN, the method doAfterBody() of a tag handler will also be invoked.

So we cannot say that "only" when doStartTag() returns Tag.EVAL_BODY_INCLUDE or BodyTag.EVAL_BODY_BUFFERED will the method doAfterBody() be invoked.

I am Chinese and my English is not very good. I don't know whether I have express myself clearly.
To the SCWCD exam, you only should know that the "class" and "beanName" cannot appear at the same time. It is enough for the exam.
I don't agree with you and I think the correct answer is E.
To c : This method will be called "only" when doStartTag() returns Tag.EVAL_BODY_INCLUDE or BodyTag.EVAL_BODY_BUFFERED.
The keyword "only" make it wrong.

Originally posted by Sandeep Chhabra:
In which of the following cases will the method doAfterBody() of a tag handler be invoked?

a This method will always be called when the body of the tag is not empty.

b This method will be called only when the body of the tag IS empty.

c This method will be called only when doStartTag() returns Tag.EVAL_BODY_INCLUDE or BodyTag.EVAL_BODY_BUFFERED.
It'll also be called when doAfterBody() (ie. the same method) returns IterationTag.EVAL_BODY_AGAIN.

d This method will be called only when doEndTag() returns Tag.EVAL_BODY_INCLUDE or BodyTag.EVAL_BODY_BUFFERED.
doEndTag() is called at the end of the tag processing. It can only return SKIP_PAGE or EVAL_PAGE.

e This method will be called if doAfterBody() returns IterationTag.EVAL_BODY_AGAIN.

I think the correct answer should be C. Can anyone please confirm.

Thanks

I have nearly the same condition with you. Could anybody help us?
Although I have not tried this listener in practice, I think there must be something wrong with your code.
This question is from Manning SCWCD Study Guide. I have encountered it too. I think there is something wrong with the question. The correct should be "the benefits of DAO" rather than "of TO".
What operation system do you use ?
If yours is Microsoft Windows, you aren't able to create these two folders "webmail/WEB-INF" & "webmail/web-inf" at the same time.
page is like the keyword this while pageContext is a utility object available in JSP.
It is not very difficult to couple it with.
For classic tag's, the default value is "JSP".
Could you give some details about the question "returning EVAL_BODY_AGAIN from doStartTag()" ?

I am afraid of meeting with this question in my coming test.