About Question enthuware.jwpv6.2.1091 :

Moderator: admin

Post Reply
mazounne
Posts: 2
Joined: Thu Aug 29, 2013 5:05 am
Contact:

About Question enthuware.jwpv6.2.1091 :

Post by mazounne »

Answer (e) is not correct. It is like you are saying: the method will be invoked if it is invoked already!!
(c) is more logic.

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.1091 :

Post by admin »

It is possible for doAfterBody() to not return EVAL_BODY_AGAIN, in which case, the method will not be called.

I see your point but the question is only asking when the method will be invoked. It is not asking when the method will be invoked for the first time.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

efrain_salomon
Posts: 18
Joined: Wed Jan 06, 2016 7:22 pm
Contact:

Re: About Question enthuware.jwpv6.2.1091 :

Post by efrain_salomon »

Hi,

Every time that I have answered this question I have chosen the third response: "This method will be called only when doStartTag() returns Tag.EVAL_BODY_INCLUDE or BodyTag.EVAL_BODY_BUFFERED.". As I understood if you do not return those values the doAfterBody() method will not be executed the first time.

I read your above comment but still I could not get why the fifth response: "This method will be called if doAfterBody() returns IterationTag.EVAL_BODY_AGAIN." is the right one.

Is there any clue at the question text, that suggest that the question is not talking about the first time execution?

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.1091 :

Post by admin »

If the question were talking about the first time execution only, it would have clearly said so.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests