struts              action类public final class addaction extends Action 
{
public ActionForward perform
(ActionMapping mapping,
         ActionForm form,
         HttpServletRequest request,
         HttpServletResponse response)
         throws IOException, ServletException
         {
          return  mapping.findForward("success");
         }
}struts-config.xml      <struts-config>
<!-- ======================================== data-sources definitions --><!-- ======================================== Form Bean Definitions -->    <form-beans>
        <form-bean
            name="addForm"
            type="app.addform"/>
    </form-beans>
<!-- =================================== Global Forward Definitions --><!-- =================================== Action Mapping Definitions -->    <action-mappings>        <action 
            path="/error"
            type="org.apache.struts.actions.ForwardAction"
            parameter="/error.jsp"/>
<action 
path="/add"
type="app.addaction"
scope="request">
<forward name="success" path="/success.jsp" />
<forward name="error" path="/error.do" />
     </action>
    </action-mappings></struts-config>提交到/add.do的时候页面就不动了    为什么没有跳转到success.jsp
谁教我   各位大哥  帮帮忙啊

解决方案 »

  1.   

    在action里打印一些信息,看看程序进到action里没
    另外把你的action的perform方法改成execute();
      

  2.   

    此为soho广告,不诚勿进www.idealworkroom.com
      

  3.   

    提交到/add.do的时候页面就不动了
    ----〉重新部署tomcat,重启!
      

  4.   

    lip009(深蓝忧郁)  我struts用的是1。0版本的   action里打印信息到哪看啊?
      

  5.   

    打印到控制台
    System.out.println("程序进入action");
      

  6.   

    肯定是有exception你没捕获
    try{
       //code
    }catch(Exception e){
       e.printStackTrace;
    }
      

  7.   

    public ActionForward perform  //方法名有错吧,应该是execute,否则进不到这里面来的
      

  8.   

    搞定了   action中加个name 就行了