第一种实现方法:
与Servlet中的页面转向等价:
RequestDispacher rd = request.getRequestDispacher("include.jsp");rd.forward(request, response);第二种实现方法:
response.sendRedirect("include.jsp");第二种实现方法:等价于:
response.setStatus(302);response.setHeader("location", "include.jsp");二者的区别: