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;
}
}
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;
}
}
解决方案 »
- int phone=Integer.parseInt((request.getParameter("phone")));
- 怎么在tomcat中使用JSTL?
- 100分求:jquery之Ajax,能不能不调servlet,而调action请求
- 读取XML问题
- 如何用Jsp判断接收的值的特殊性质??
- ======请教老问题了!!J2EE和.net应该选择哪个!========
- 兄弟们。。救我啊。。我在搞不出来老板就要开除我了。。(在线等)
- 1.怎样在jsp中实现事务处理的功能 2.怎样在jsp中调用存储过程,函数
- 帮忙看程序(急~~~~~~~~,在线等待)
- 哪里有JSP图例,毕业答辩用的,给100分
- mysql 替代子查询
- 分享JavaScript扫雷代码
success要小写
或
<result>/client/profit.jsp</result>
<action name="priceSet" class="priceSet" method="priceSet">
<result name="success">/client/profit.jsp</result>
<result name="input">/client/xxxxxxxxx.jsp</result>
</action>