Given a web application in which the cookie userName is expected to contain the name of the user. Which EL expression evaluates to that user name?()
A.${userName} B.${cookie.userName} C.${cookie.user.name} D.${cookies.userName[0]}
Given: http://com.example/myServlet.jsp?num=one&num=two&num=three. Which two produce the output"one, two and three"?()
A.${param.num[0],[1] and [2]} B.${paramValues[0],[1] and [2]} C.${param.num[0]}, ${param.num[1]} and ${param.num[2]} D.${paramValues.num[0]}, ${paramValues.num[1]} and ${paramValues.num[2]} E.${paramValues["num"][0]}, ${paramValues["num"][1]} and ${paramValues["num"][2]}
Given: 11.<% java.util.Map map = new java.util.HashMap(); 12.request.setAttribute("map", map); 13.map.put("a", "true"); 14.map.put("b", "false"); 15.map.put("c", "42"); %> Which three EL expressions are valid and evaluate to true?()
A.${not map.c} B.${map.d or map.a} C.${map.a and map.d} D.${map.false or map.true} E.${map.a and map.b or map.a}