1、具体用法:

RequestDispatcher dispatcher = req.getRequestDispatcher("updateByUserId_001.jsp");
                            dispatcher.forward(req, resp);

updateByUserId_001.jsp是将要跳转到的页面,跳转过去的同时把req,resp的属性也转发到对应页面,在这里我们还可以添加req属性,如req.setActtribute(String name,Object obj)

05-11 20:47