从默认的index.jsp页面跳转或转发到其他页面

使用forward还是redirect都可以完成跳转

   

forward:浏览器地址不变,所以存在重复提交的问题

   <%  pageContext.forward("student/list");   %>

redirect:改变地址

 <%  response.sendRedirect("student/list");  %>

猜你喜欢

转载自www.cnblogs.com/jnhs/p/9946732.html