我注意到在谷歌上搜索了一些RequestHandlers的例子,some return a String as above, but with a "redirect:" or "forward:" prefix
some just return a Model如果一个重定向正在向一个视图(jsp)发送数据,那么在RequestHandle
我在我的项目中使用JstlView Spring。因此,我认为jstlview类中的requestDispatcher.forward(请求、响应)没有将模型数据返回给jsp。因为当我尝试HttpServletRequest或HttpServletResponse对象检索jsp中的错误时,jsp中的值被删除。
有人能帮我做这个用过的。RequestDispatcher r
在此之后,我希望servlet使用response.sendRedirect()重定向到demo.jsp,但它就是不重定向。我也尝试过使用requestDispatcher.forward()。in.close();{ System.out.println(al.get(x));System.out.println("going to