Hi everyone,
I'm going through HFSJ... Page 431, question 14, on EL functions:
JSP:
1. <@ taglib uri="/WEB-INF/myfuncts" prefix="my" %?
2. <%- insert code here -->
Which, inserted at line 2 in the JSP, is a valid EL function invocation
A. $(repeat(2, "420")}
B. $(repeat("2", "420")}
C. $(my:repeat(2, "420")}
D. $(my:repeat("2", "420")}
E. A valid invocation CANNOT be determined
The correct answer is E with explanation "Option E is correct. The necessary mapping information is NOT known."
My question is - why is it not know? If we assume that there exists a proper .tld file, then isn't C the correct invocation? Of course A and B are incorrect, as "my" prefix is required.
And what about D? Aren't EL functions arguments coerced the way they do in EL expressions?