Which EL expression evaluates to the request URI? a)${requestURI} b)${request.URI} c)${${request.getURI} d)${request.requestURI} e)${requestScope.requestURI} f)${pageContext.request.requestURI} g)${requestScope.request.request.URI}
I think the answer is f .The answer given is a.
Given an EL function foo in namespace func ,that requires a long as a parameter and returns a map which two are valid invocations of functions foo? a)${func(1)} b)${foo:func(4)} c)${func:foo(2)} d)${foo(5):func} e)${func:foo("easy")} f)${func:foo("3").name}
I think one option is c .What is other one. Thanks
In the first question, I think your answer is correct. The option A prints nothing. In case of the second question, I don't see any other valid option.
"f" should be the other correct option in the second question, since the return value of the function is a map, and "name" might be the key for which the value is being shown from that expression.
For question 1 the answer is (f) and for question 2 the only correct answer i think is (c). Not sure why the questiong expects two correct choices. (f) is wrong since the function expects long. It wont automatically do new Long("3").longValue().
I'm all tasted up for a BLT! This tiny ad wants a monte cristo!