你調試一下看代碼有沒有執行到 return   mapping.findForward("success"); 這裡

解决方案 »

  1.   

    action根本没有进入!!!我改了几个地方还是跑空白~
    好像以前也遇过类似问题,一般是配制文件问题!有时候重改了配制莫名奇妙就好了~~
      

  2.   

    type写hellowordaction
    <action   path="/hellowordaction"   
    type="包。/hellowordaction"   
    name="hellowordactionform"   
    parameter="mehtode"   
    scope="request"   
    validate="false">   
      

  3.   

    对啊!我的type写错了!应该是hellowordaction,太粗心了,我试试
      

  4.   

    前面2个例子都很正常~~~为什么楼主的就空白呢~~难道是传说中的超级人品~~<form-bean name="loginForm" type="struts1.loginForm" />
        <form-bean name="TestForm" type="struts1.TestForm"/>
        <form-bean  name="hellowordactionform" type="struts1.hellowordactionform"/>
    ///////////////////////////////////////////  <action-mappings>
        <action
          name="loginForm"
          path="/result"
          type="struts1.loginAction" 
          scope="request"
          input="/result.jsp">
          <forward name="success" 
          path="/result.jsp" />
        </action>
        
        <action 
       path="/testaction" 
       type="struts1.TestAction"
       name="TestForm" 
       input="/test.jsp" 
       scope="request">
       <forward name="testsuccess" path="/test.jsp" />
       </action>
        
         <action  
         path="/hellowordaction"  
         name="hellowordactionform"       
        type="struts1.hellowordaction"       
        scope="request"       
         input="/whosayhelloword.jsp">       
          <forward name="sss" path="/sayhelloword.jsp" />
           </action> 
      

  5.   

    少见多怪!这种事情我遇多了,有时我显示不出来,关掉Eclipse,再启动,运行Tomcat居然就成功了!!找不到任何原因,没修改任何代码................
      

  6.   

     delete parameter="mehtode"   try again
      

  7.   

    原因找到了!是我action的问题,其中的execute方法中的参数,必须严格按照这样的顺序(ActionMapping,ActionForm,HttpServletRequest,HttpServletResponse),调换其中任何一个的顺序都会导致不走Action