Struts2中Action有返回值,则在struts的配置文件中一定要配置result否则会报错:No result defined for action com.supermap.earth.ri
来源:互联网 发布:opencv 鱼眼矫正 算法 编辑:程序博客网 时间:2024/05/21 09:17
<action name="deleteFile" method="deleteFile" class="com.supermap.earth.rims.action.disaSurRpt.DisaMediaAction">
<result name="success">/html/surverReport/liveSurverReport.jsp</result>
<result name="error">/html/surverReport/liveSurverReport.jsp</result>
<result name="success">/html/surverReport/liveSurverReport.jsp</result>
<result name="error">/html/surverReport/liveSurverReport.jsp</result>
</action>
String 里面有5个static 常量分别是:ERROR INPUT LOGIN NONE SUCCESS例如 如果在excute 中返回的是 ruturn SUCCESS;也就相当于返回的是return "success"字符串就必须在struts.xml中写上对应的"success"<result name="success">/x.jsp</result>当然EORROR 对应的就是"error";字符串当然INPUT 对应的就是"input";字符串当然LOGIN 对应的就是"login";字符串当然NONE 对应的就是"none";字符串要不你就换一换把return INPUT换成return "input";试一试一定要确定你在excute返回的字符串在 struts.xml中有定义还有一个要提醒你的就是: 在validate中验证有错误的话且没有指定return 字符串的话,struts2默认就返回的是 return INPUT 也就是return "input"
- Struts2中Action有返回值,则在struts的配置文件中一定要配置result否则会报错:No result defined for action com.supermap.earth.ri
- struts2 在拦截器里报错:No result defined for action com.gkwl.action.UserAction and result input
- Struts中错误: No result defined for action
- Struts2 项目报错 No result defined for action com.xxx.xxAction and result input
- struts中no result define for ×××Action
- Struts2疑难--No result defined for action com.marry.action.HqsyAction and result input
- No result defined for action cn.com.struts2.action.LoginAction and result succeed
- 关于struts2 No result defined for action
- struts2环境配置是出现No result defined for action *** and result input”的错误信息
- action莫名报错 No result defined for action com.action.Logout and result success
- 关于struts2中No result defined for action这个异常的解决思路
- [SSH]No result defined for action and result input 和 Struts2中关于值跳转input,而不执行action的问题
- struts异常:No result defined for action and result success
- 使用struts2的标签报错No result defined for action and result input
- struts2 No result defined for action.....and result input
- struts2:No result defined for action and result调试
- Struts2:No result defined for action XXX and result input
- Struts2 异常:no result defined for action result input
- 海量数据处理
- mysql创建外键错误
- C#监控文件夹中文件的删除、移动、创建、重命名等操作
- svn本地文件夹断开服务器连接
- “云海会”第一期在SAP中国研究院成功举办!
- Struts2中Action有返回值,则在struts的配置文件中一定要配置result否则会报错:No result defined for action com.supermap.earth.ri
- C#平台中Dictionary的用法_包含字段属性和键值
- 数学之美 与 浪潮之巅
- 深入理解浏览器兼容性模式
- Ubuntu 12.04 Openstack Essex 安装(多节点)
- 强颜欢笑的伤感情侣日志发布:那一日的思念,望穿秋水
- 心里心中的你
- Ubuntu 配置 opencv , CodeBlocks 开发环境
- ByteBuffer