Java认证考试

Given: 11.public class MyServlet extends HttpServlet { 12.public void service(HttpServletRequest request, 13.HttpServletResponse response) 14.throws ServletException, IOException { 15.// insert code here 16.} 17.} and this element in the web application’

题目

Given: 11.public class MyServlet extends HttpServlet { 12.public void service(HttpServletRequest request, 13.HttpServletResponse response) 14.throws ServletException, IOException { 15.// insert code here 16.} 17.} and this element in the web application’s deployment descriptor: 302 /html/error.html Which,inserted at line 15,causes the container to redirect control to the error.html resource?()

  • A、response.setError(302);
  • B、response.sendError(302);
  • C、response.setStatus(302);
  • D、response.sendRedirect(302);
  • E、response.sendErrorRedirect(302);
如果没有搜索结果,请直接 联系老师 获取答案。
更多相关问题