org.apache.struts.action.InvalidCancelException异常解决方法
来源:互联网 发布:吃月饼猜9字网络流行语 编辑:程序博客网 时间:2024/05/17 21:58
页面报org.apache.struts.action.InvalidCancelException错误。上网查了一下,说是由于用了validate="true",而导致的异常。解决方案是在struts-config.xml文件中对应action下面添加一个属性cancellable="true"
---------------------------------引用--------------------------------------
Any existing applications that use the Cancel processing will need to modify their struts-config.xml to set the cancellable property for actions which require it.
In Struts the <set-property> is used to set the cancellable property for an action....
<action path="/fooAction"
input="/foo.jsp"
validate="true">
<set-property property="cancellable" value="true"/>
<forward name="success" path="/bar.jsp"/>
</action>From Struts 1.3.x a new cancellable attribute can be used....
<action path="/fooAction"
input="/foo.jsp"
validate="true"
cancellable="true">
<forward name="success" path="/bar.jsp"/>
</action>In both Struts nd Struts 1.3.x an exception handler can be configured to handle the InvalidCancelException
<action path="/fooAction"
input="/foo.jsp"
validate="true"
cancellable="true">
<forward name="success" path="/bar.jsp"/>
<exception key="errors.cancel"
type="org.apache.struts.action.InvalidCancelException"
path="/foo.jsp"/>
</action>
- org.apache.struts.action.InvalidCancelException异常解决方法
- 标签报org.apache.struts.action.InvalidCancelException错误问题
- 异常:java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
- java.lang.ClassCastException: org.apache.struts.action.RequestProcessor解决方法!
- struts 1.x 学习中遇见的异常:org.apache.struts.action.ActionServlet出现classNotFoundException
- org.apache.jasper.JasperException: org.apache.struts.action.ActionMessage
- org.apache.struts.action.ActionMessage cannot be cast to org.apache.struts.action.ActionError
- struts1源码研究: org.apache.struts.action.Action
- java.lang.NullPointerException org.apache.struts.action.RequestProcessor.processException问题解决
- java.lang.ClassCastException: org.apache.struts.action.ActionMessage 错误
- Exception creating bean of class org.apache.struts.action.DynaActionFrom:
- struts1源码研究: org.apache.struts.action.ActionForm
- struts1源码研究: org.apache.struts.action.ActionForward
- java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
- org.apache.struts com.opensymphony.xwork2.Action 区别
- java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
- org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named "" must be of type [org.apache.struts.action.Action
- at org.apache.struts.config.FormBeanConfig.createActionForm异常处理
- RecyclerView的卡顿优化(一)
- Java学习的基础概念和知识点
- Java对象克隆(Clone)及Cloneable接口
- Postgresql 配置文件详解
- Android 小知识点汇总(更新中)
- org.apache.struts.action.InvalidCancelException异常解决方法
- POJ 2440 DNA
- 关于ListView的显示问题
- The number of method references in a .dex file cannot exceed 64K
- LeetCode 121. Best Time to Buy and Sell Stock
- windows安装配置mysql-5.7.13-winx64方法
- maven如何手动导入ojdbc6.jar或ojdbc14
- Mondrian 4 测试的简单demo(Saiku简单测试Schema文件)
- python网络天气爬虫