About Question com.enthuware.ets.scwcd.v5.2.126 :

Moderator: admin

Post Reply
ETS User

About Question com.enthuware.ets.scwcd.v5.2.126 :

Post by ETS User »

Hi,

We do not know what the doStartTag method returns. If it returns SKIP_BODY then doAfterBody will be skipped and response #2 would then be valid, wouldn't it?

Thanks

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

Re: About Question com.enthuware.ets.scwcd.v5.2.126 :

Post by admin »

Right, since you do not know what the doStartTag method returns, you cannot say for sure whether doAfterBody will be called or not. Hence, the option is not correct.
If you like our products and services, please help us by posting your review here.

Guest

Re: About Question com.enthuware.ets.scwcd.v5.2.126 :

Post by Guest »

My point is, the answer you selected is as a good as answer #2 since they are the 2 possible outcomes and we don't know what dostartTag() returns. One cannot say that one is better than the other since information is missing to decide...

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

Re: About Question com.enthuware.ets.scwcd.v5.2.126 :

Post by admin »

That is not correct. Option 1 will always be correct because doStartTag will always be called once. It does not depend on what doStartTag returns.

Option 2 on the other hand may not hold true in all the cases and so is not a correct option.
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 5 guests