在Java Web应用程序中,某HttpServlet的doPost就去如下所示,则在下划线处填写( )代码,可以正确得到RequestDispatcher的对象。public void doPost(HttpServletRequest reque

admin2017-01-26  7

问题 在Java Web应用程序中,某HttpServlet的doPost就去如下所示,则在下划线处填写(    )代码,可以正确得到RequestDispatcher的对象。public void doPost(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException{___________________//此处填写代码}

选项 A、RequestDisptacher dispatcher =response.getResquestDispatcher(“/test.jsp”);
B、RequestDisptacher dispatcher =new.getResquestDispatcher();
C、RequestDisptacher dispatcher = request.getResquestDispatcher(“/test.jsp”);
D、RequestDisptacher dispatcher =ResquestDispatcher.getInstrance();

答案C

解析
转载请注明原文地址:https://kaotiyun.com/show/KLpD777K
0

随机试题
最新回复(0)