which three are valid EL expressions for retrieving the advice property of advisor?

Click the Exhibit button.
Given:
11. <% com.example.Advisor advisor = new com.example.Advisor(); %>
12. <% request.setAttribute(“foo”, advisor); %>
Assuming there are no other “foo” attributes in the web application, which three are valid EL
expressions for retrieving the advice property of advisor? (Choose three.)

Click the Exhibit button.
Given:
11. <% com.example.Advisor advisor = new com.example.Advisor(); %>
12. <% request.setAttribute(“foo”, advisor); %>
Assuming there are no other “foo” attributes in the web application, which three are valid EL
expressions for retrieving the advice property of advisor? (Choose three.)

A.
${foo.advice}

B.
${request.foo.advice}

C.
${requestScope.foo.advice}

D.
${requestScope[foo[advice]]}

E.
${requestScope[“foo”][“advice”]}

F.
${requestScope[“foo”[“advice”]]}

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *