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.   

    这个不是问题所在,我extends ActionSupport了,可以这样写的
      

  3.   

    我知道你继承ActionSupport,action里可以大写,我指的是配置文件里要小写
      

  4.   

    public class OrderAction extends ActionSupport{ 
      public String priceSet(){ 
        return SUCCESS;
      } 
    } 这个SUCCESS是Action接口中定义的常量,常量名一般用大写的,但这个常量的值是:"success",可以看看原代码
      

  5.   

    <result name="success">/client/profit.jsp </result> 
    重启tomcat服务
    要是没有反应,看看页面源码。
      

  6.   

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

  7.   

    1.<s:form action=""/>action名字不需要.action后缀
    2.你的action.xml是什么文件?struts2需要这样设置么?
      

  8.   


    我用的是SSH框架整合,需要一个action.xml指明action的位置,注入serivce