1、请求转发
request.getRequestDispatcher("other.jsp").forward(request, response);
2、请求重定向
response.sendRedirect("other.jsp");
response.sendRedirect("http://");
注:重定向可以到本站点意外的地址
恋上程序员 ©著作权
文章标签 forward sendredirect 文章分类 前端开发
1、请求转发
request.getRequestDispatcher("other.jsp").forward(request, response);
2、请求重定向
response.sendRedirect("other.jsp");
response.sendRedirect("http://");
注:重定向可以到本站点意外的地址
上一篇:jsp 页面的9个隐含对象
下一篇:jsp指令和标签
双向出口重定向
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M