单项选择题
Which EL expression, inserted at line 3 is valid and evaluated to “beanValue”?()
A. ${bean}
B. ${value}
C. ${beanValue}
D. ${com.example.bean}
E. ${requestScope[“com.example.bean”]}
F. ${request.get(“com.example.bean”).toString()}
相关考题
-
单项选择题
WhichmethodmustbeusedtoencodeaURLpassedasanargumenttoHttpServletResponse.sendRedirectwhenusingURLrewritingforsessiontracking?()
A. ServletResponse.encodeURL
B. HttpServletResponse.encodeURL
C. ServletResponse.encodeRedirectURL
D. HttpServletResponse.encodeRedirectURL -
单项选择题
What is the result when a request is sent to MyServlet?()
A. An IllegalStateException is thrown at runtime.
B. An InvalidSessionException is thrown at runtime.
C. The string “value=null” appears in the response stream.
D. The string “value=myAttributeValue” appears in the response stream. -
单项选择题
Which statement, inserted at line 16, unbinds an attribute from a session?()
A. session.unbind(“key”);
B. session.remove(“key”);
C. session.removeAttribute(“key”);
D. session.unbindAttribute(“key”);
E. session.deleteAttribute(“key”);
