Page 1 of 1

About Question enthuware.jwpv6.2.1022 :

Posted: Sun Apr 07, 2013 1:02 pm
by filipeferraz
I don't undestand why the answer in this question:
You have created an EL function int getTaxBracket(int income) and assigned it to the name bracket in namespace taxes. Which of the following evaluates to true given that it returns 4 if the income is 100,000?

is ${taxes:bracket(10000)<5}
The correct answer cannot be ${taxes:taxBracket(10000)<5}?

Re: About Question enthuware.jwpv6.2.1022 :

Posted: Sun Apr 07, 2013 4:42 pm
by admin
I am not sure I understand your question. It is given that taxes:bracket(100000) returns 4, which is less than 5. So
${taxes:bracket(100000)<5} is true.

HTH,
Paul.

Re: About Question enthuware.jwpv6.2.1022 :

Posted: Tue May 14, 2013 1:35 pm
by Vitor Benedito
Yes is correct ${taxes:bracket(100000)<5} because in the question exists the information:

"assigned it to the name bracket in namespace taxes"

So this function must be invoked by the name "bracket ".

Re: About Question enthuware.jwpv6.2.1022 :

Posted: Thu Mar 05, 2015 5:36 pm
by tanzwud
Have some concerns about this question
Using books HFSJSP 2nd edition and Charles Lyons 3d edition if there is no wording states that everything is ok with function and tld file the correct answer is something like "A valid invocation CANNOT be determined.The necessary mapping information from the TLD is NOT known." is possible as well.
However agree option 2 is correct if everything else with the EL function is correct.

Re: About Question enthuware.jwpv6.2.1022 :

Posted: Fri Mar 06, 2015 4:44 am
by admin
Yes, this question also makes it clear because none of the options depend on the fact that there could be something wrong with the mapping info.

Re: About Question enthuware.jwpv6.2.1022 :

Posted: Fri Mar 06, 2015 8:57 am
by tanzwud
Ok Thanks