Page 1 of 1

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

Posted: Mon Jun 20, 2011 2:39 pm
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

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

Posted: Mon Jun 20, 2011 5:18 pm
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.

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

Posted: Mon Jun 20, 2011 10:01 pm
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...

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

Posted: Tue Jun 21, 2011 5:45 am
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.