网友您好, 请在下方输入框内输入要搜索的题目:
Given:11.publicclassMyServletextendsHttpServlet{12.publicvoidservice(HttpServletRequestrequest,13.HttpServletResponseresponse)14.throwsServletException,IOException{15.//insertcodehere16.}17.}andthiselementinthewebapplication’sdeploymentdescriptor:<error-page><error-code>302</error-code><location>/html/error.html</location></error-page>Which,insertedatline15,causesthecontainertoredirectcontroltotheerror.htmlresource?()
A.response.setError(302);
B.response.sendError(302);
C.response.setStatus(302);
D.response.sendRedirect(302);
E.response.sendErrorRedirect(302);
参考答案