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
About Question com.enthuware.ets.scwcd.v5.2.126 :
Moderator: admin
-
- Site Admin
- Posts: 10228
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scwcd.v5.2.126 :
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.
Re: About Question com.enthuware.ets.scwcd.v5.2.126 :
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...
-
- Site Admin
- Posts: 10228
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scwcd.v5.2.126 :
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest