后端相关文章

获取RequestDispatcher的两种方法及区别

Published on April 01, 2017 in iBlog.

在SpringMVC应用或Struts应用,甚至是基本的Servlet应用中,在转发JSP的时候通常会用到如下方法: RequestDispatcher dispatcher = httpServletRequest.getRequestDispatcher("xxx.jsp"); requestDispatcher.forward(httpServletRequest, httpServletR ...