单项选择题

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&ensp;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}

相关试题
  • Your IT department is building a l...
  • Whichelementofawebapplicationdeploymentd...
  • Given a Filter class definition wit...
  • You need to create a JSP that gen...
  • Click the Exhibit button. The attr...