HTTP Status 404 - No result defined for action com.impress.client.action.OrderAction and result inputtype Status reportmessage No result defined for action com.impress.client.action.OrderAction and result inputdescription The requested resource (No result defined for action com.impress.client.action.OrderAction and result input) is not available.
Apache Tomcat/5.5.12页面代码:<s:form action="${pageContext.request.contextPath}/client/priceSet.action" method="post">struts.xml中配置代码:
<action name="priceSet" class="priceSet" method="priceSet">
<result name="SUCCESS">/client/profit.jsp</result>
  </action>
action.xml中配置代码:
<bean id="orderAction" scope="prototype" class="com.impress.client.action.OrderAction" abstract="true">
<property name="orderService" ref="orderService"></property>
</bean>
<bean name="priceSet"  parent="orderAction"></bean>Action中代码:
package com.impress.client.action;
public class OrderAction extends ActionSupport{
  public String priceSet(){
    return SUCCESS;
  }
}

解决方案 »

  1.   

     <result name="SUCCESS">/client/profit.jsp </result> 
    success要小写 
      

  2.   

    <result name="success">/client/profit.jsp</result>

    <result>/client/profit.jsp</result>
      

  3.   

    问题不在这里,当你的action执行方法出错时,返回的就是input而不是success了,因为你在struts的配置文件里没有配置input,所以报那个错。
      

  4.   


    <action name="priceSet" class="priceSet" method="priceSet">
        <result name="success">/client/profit.jsp</result>
        <result name="input">/client/xxxxxxxxx.jsp</result>
    </action>