关于No result defined for action com.gen.action.FrontAction and result input解决方法
来源:互联网 发布:淘宝店铺怎么打广告 编辑:程序博客网 时间:2024/05/16 02:16
最近自己用struts2用表单提交的时候,发现表单提交的时候,老是出现“No result defined for action com.gen.action.FrontAction and result input”,
找了很多原因,最后发现原来是action类现在的ModelDriven中的表单类属性的数据类型 和表单的数据类型不一致,因此struts2做了在表单提交的时候,
自动做了校验,发现表弹验证错误,返回一个input的result ,而在struts.xml中没有配置,因此出现了上述的错误,解决方法如下:
ModelDriven中的表单类属性的数据类型都为String类型,因为表单提交的时候,数据类型是String类型
顺便提一点:
一般来说,实现ModelDriven中的表单类属性的数据类型我们都设置为String,这是数据库持久层不一样,数据库持久层的数据类型尽量和数据库的数据
类型一样
- 关于No result defined for action com.gen.action.FrontAction and result input解决方法
- 关于"No result defined for action com.ccxe.credit.action.ReportAction and result input"的错误
- No result defined for action *Action and result input - action -
- No result defined for action and result input - action
- No result defined for action action.UploadAction and result input
- No result defined for action *Action and result input
- No result defined for action action.UploadAction and result input
- No result defined for action action.UserAction and result input
- No result defined for action ....Action and result input
- Struts2疑难--No result defined for action com.marry.action.HqsyAction and result input
- No result defined for action com.bdqn.action.UserRoleRelateAction and result input
- No result defined for action com.ancs.smis.webapp.action.SmisProblemRectifyAction and result input
- No result defined for action com.svse.action.UserAction and result input
- No result defined for action com.igit.contract.web.action.ContContractAction and result input
- No result defined for action com.zhaoonline.web.action.CreateBusinessCardAction and result input
- SSH报错:No result defined for action com.tyzy.action.user.UserAction and result input
- No result defined for action com.web.action.UserAction and result input
- No result defined for action com.jd.m.cms.web.action.IndexfloorAction and result Input问题
- ExtJS04:解决URL传递中文乱码问题
- 线性表查找
- 《狮子王》经典台词
- 数组指针和指针数组的区别
- ExtJS05:动态构造复选框组CheckboxGroup
- 关于No result defined for action com.gen.action.FrontAction and result input解决方法
- C语言中基础小问题详细介绍
- ExtJS06:树型Tree相关操作
- 重建oraInventory
- hdu 4417 Super Mario(线段树+STL)
- Android开发环境的配置与源代码的导入
- ExtJS07:事件监听处理
- ExtJS08:时间控件Cls.form.DateTimeField
- ExtJS09:选中表格中指定行