我想forward到另外一个 .do ,请问怎么写 String path =mapping.findForward("success").getPath();ActionForward forward= new ActionForward(path+"?id="+id);return forward;看看这段代码是否对你有用 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <forward name="to_list" path="/***.do"/>把***改成你想要的 我前面配的是 "list.do"不是从根目录找起。这个行不通。前面试过了 <forward name="logout" path="/Logout.do"/> <!-- Logout --> <action path="/Logout" type="com.xxx.xxx.security.LogoutAction"parameter="logout" name="LoginForm" scope="request"> <forward name="logout" path="/logout.jsp"/> </action> 多写一个ACTION 直接转向目标页面. 直接用Forward 不行的 为什么一定要在配置文件中写呢,你在Action最后,写上return null,之前写上response.sendRedirect(request.getContextPaht+"/***.do")不就可以可以了吗? return new Actionfoward("/***.do"); 就可以不用 return mapping.findForward("to_list");了 在struts配置文件里写个 action 加上forward属性就行了 session问题 大家来投个票吧----大家现在最常用的浏览器是什么? 郁闷啊,竟然为空! 数据库跟MYECLIPSE连接问题 高吞吐量,低时延和复杂计算的解决方案 请大家帮我比较一下,如果薪水和福利大致相同,下面这两家公司去哪家比较好? 用xml做数据库的话,用什么处理? !!!如何提取.doc文件里的内容!!!!! 怎样将JTable中新增的一行,插入到数据库中? 请问如何学习EJB?在仅知JSP/SERVLET/JDBC/JAVA的条件下 java.lang.NumberFormatException: null 关于用户操作日志
把***改成你想要的
<!-- Logout -->
<action path="/Logout" type="com.xxx.xxx.security.LogoutAction"parameter="logout" name="LoginForm" scope="request">
<forward name="logout" path="/logout.jsp"/>
</action>