HTTP Status 500 - No action instance for path /login could be created

来源:互联网 发布:k svd算法 编辑:程序博客网 时间:2024/06/01 18:29

HTTP Status 500 - No action instance for path /login could be created

 

struts-config.xml:

<action path="/login" name="" scope="request" validate="false" parameter="method"
    type="org.springframework.web.struts.DelegatingActionProxy">
    <forward name="fail" path="/fail.jsp"></forward>
        <forward name="success" path="/Login.jsp" />
   </action>

applicationContext.xml

<bean name="/login" class="action.IPAction">
  <property name="ipservice">
   <ref local="ipserviceProxy"/>
  </property>
 </bean>

 

 

 

<action-mappings>   <action path="/login" name="" scope="request" validate="false" parameter="method" type="org.springframework.web.struts.DelegatingActionProxy">
   <forward name="fail" path="/fail.jsp"></forward>
        <forward name="success" path="/Login.jsp" />
   </action>改成<action-mappings>
   <action path="/login" name="" scope="request" validate="false" parameter="method" type="action.IPAction">
   <forward name="fail" path="/fail.jsp"></forward>
        <forward name="success" path="/Login.jsp" />
   </action>
就没有出现"HTTP Status 500 - No action instance for path /login could be created"错误了,这是为什么呢??