What is the result?()
A. <b></b> B. <b>50</b> C. <b>${5*10}</b> D. The JSP fails to execute
单项选择题AJSPpageneedstoperformsomeoperationsbeforeservicingthefirstrequest.Wherecanthisbedone?()
A. within a method called jspInit B. within the page directive of the JSP page C. within a scriptlet at the top of the JSP page D. within the XML element
多项选择题Which two successfully translate and result in a value of true?()
A. ${true or false} B. ${requestScope[foo][0] > 500} C. ${requestScope[“foo”][1] = 420} D. ${(requestScope[“foo”][0] lt 50) && (3 gt 2)
单项选择题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.