[单选题]综合测试题题目1未回答满分1.00未标记标记题目在helloapp应用中hello.jsp和welcome.jsp在同一目录中,index.jsp在应用的根路径,index.jsp使用下面的代码可以跳转到hello.jsp页面,request.getRequestDispatcher("/hello.jsp").forward(request,response); 用下列哪种方式可以代替上述代码后,可以跳转到welcome.jsp页面。
广开题库
|
2024-02-03 16:06:38
|
3
[单选题]综合测试题题目1未回答满分1.00未标记标记题目在helloapp应用中hello.jsp和welcome.jsp在同一目录中,index.jsp在应用的根路径,index.jsp使用下面的代码可以跳转到hello.jsp页面,request.getRequestDispatcher("/hello.jsp").forward(request,response); 用下列哪种方式可以代替上述代码后,可以跳转到welcome.jsp页面。

a. response.sendRedirect('helloapp/welcome.jsp');
b. response.sendRedirect('welcome.jsp');
c. response.sendRedirect('/welcome.jsp');
d. response.sendRedirect('//welcome.jsp');
查看答案

广开题库

Java Web开发技术》网上作业操作指引及期末终结性参考资料 (2022春)

您可能感兴趣的试题
TOP