摘要:servlet请求转发与重定向的区别:request.setAttribute("test","hello");request.getRequestDispacther("/test.jsp").forword(request,response);response.sendRedirect("test.jsp");一、显示结果:1、当用request.getRequestDispacther("/test.jsp").forword(request,response); 请求转发后,结果页面输出
阅读全文