使用forward还是redirect都可以完成跳转
forward:浏览器地址不变,所以存在重复提交的问题
<% pageContext.forward("student/list"); %>
redirect:改变地址
<% response.sendRedirect("student/list"); %>
从默认的index.jsp页面跳转或转发到其他页面
原文地址:https://www.cnblogs.com/jnhs/p/9946732.html
使用forward还是redirect都可以完成跳转
forward:浏览器地址不变,所以存在重复提交的问题
<% pageContext.forward("student/list"); %>
redirect:改变地址
<% response.sendRedirect("student/list"); %>
从默认的index.jsp页面跳转或转发到其他页面
原文地址:https://www.cnblogs.com/jnhs/p/9946732.html