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}?
About Question enthuware.jwpv6.2.1022 :
Moderator: admin
-
- Posts: 1
- Joined: Sun Apr 07, 2013 12:58 pm
- Contact:
-
- Site Admin
- Posts: 10066
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.1022 :
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.
${taxes:bracket(100000)<5} is true.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 1
- Joined: Mon May 13, 2013 12:33 pm
- Contact:
Re: About Question enthuware.jwpv6.2.1022 :
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 ".
"assigned it to the name bracket in namespace taxes"
So this function must be invoked by the name "bracket ".
-
- Posts: 19
- Joined: Mon Sep 01, 2014 9:45 pm
- Contact:
Re: About Question enthuware.jwpv6.2.1022 :
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.
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.
-
- Site Admin
- Posts: 10066
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.1022 :
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.
If you like our products and services, please help us by posting your review here.
-
- Posts: 19
- Joined: Mon Sep 01, 2014 9:45 pm
- Contact:
Who is online
Users browsing this forum: No registered users and 96 guests