1、請求轉發
request.getRequestDispatcher("other.jsp").forward(request, response);
2、請求重定向
response.sendRedirect("other.jsp");
response.sendRedirect("http://");
注:重定向可以到本站點意外的地址
1、請求轉發
request.getRequestDispatcher("other.jsp").forward(request, response);
2、請求重定向
response.sendRedirect("other.jsp");
response.sendRedirect("http://");
注:重定向可以到本站點意外的地址