<action-mappings>
   <action path="/oneAction" 
           type="test1.OneAction"
           name="oneform"  
           validate="true" 
           input="/onejsp.jsp" 
           scope="request" />
</action-mappings>
action的name问题

解决方案 »

  1.   

    name="oneform"这里的Name就是你配置的form的name
      

  2.   

    to:biljjg
    那你的意思是话这里的name就是form的名,
    那它就是可以任意定的嘛?
    和JSP以前的那种<form name="自已定义">
      

  3.   

    我现在把<struts-config>
      <form-beans>
        <form-bean name="oneform" type="test1.OnejspBean" />
      </form-beans>
      <action-mappings>
        <action name="oneform" type="test1.OneAction" validate="true" input="onejsp.jsp" scope="request" path="/oneAction" />
      </action-mappings>
    </struts-config>
    改成现在这样还是不对.
    不知道是错在哪里了.
      

  4.   

    test1.OnejspBean
    放在哪里了,web-inf/classes/这里吗??
      

  5.   

    你的struts-config.xml里<action-mappings>后面有没有这个:
    <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>