forward要找.do,也就是对应的config中定义的serlvet,你有做这些工作吗

解决方案 »

  1.   

    <struts-config>
    <form-beans>
        <form-bean name="searchForm" type="form.SearchForm"/>
    </form-beans>
    <global-forwards>
      <forward
         name="search"
         path="/search.jsp"/>      
    </global-forwards>
    <action-mappings>
    <action
         input="/search.jsp"
         type="action.SearchAction"
         name="searchForm"
         scope="request"
         validate="true"
         path="/searchAction">  
    </action> 
    </action-mappings>
    </struts-config>
    这是我的strutsConfig.xml设置
      

  2.   

    是用的<html:link forward="search">search</html:link>?