String path =mapping.findForward("success").getPath();
ActionForward forward= new ActionForward(path+"?id="+id);
return forward;看看这段代码是否对你有用

解决方案 »

  1.   

    <forward name="to_list" path="/***.do"/>
    把***改成你想要的
      

  2.   

    我前面配的是 "list.do"不是从根目录找起。这个行不通。前面试过了
      

  3.   

      <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>
      

  4.   

    多写一个ACTION 直接转向目标页面. 直接用Forward 不行的
      

  5.   

    为什么一定要在配置文件中写呢,你在Action最后,写上return null,之前写上response.sendRedirect(request.getContextPaht+"/***.do")不就可以可以了吗?
      

  6.   

    return new Actionfoward("/***.do");
      

  7.   

    就可以不用 return mapping.findForward("to_list");了
      

  8.   

    在struts配置文件里写个 action 加上forward属性就行了