使用getRequestDispatcher 的方式,对于绝对路径是可以使用的,struts会自动加上context的。注意红色字体部分,如果没有将显示白页。
request.getRequestDispatcher("/syslog/triger_manage.do?method=findTriger").[color=red]forward(request,response);[/color]
request.getRequestDispatcher("/syslog/triger_manage.do?method=findTriger").[color=red]forward(request,response);[/color]
本文介绍了在Struts框架中使用getRequestDispatcher进行页面跳转的方法。重点讲解了如何通过绝对路径实现请求转发,并强调了正确使用forward方法的重要性。
3017

被折叠的 条评论
为什么被折叠?



