SSH报错:No result defined for action com.tyzy.action.user.UserAction and result input
来源:互联网 发布:mac pro高清壁纸 编辑:程序博客网 时间:2024/05/14 10:13
今天利用ssh做了一个添加用户的小功能,因为页面时美工直接给我的,我就没做太多的修改,直接把页面里面的字段,换成了action里面对应的字段,进行添加时,突然报了这个错“No result defined for action com.tyzy.action.user.UserAction and result input”,
我今天弄了了很长时间弄这个错误,我以为我的Action函数出错了想调试,但是程序就是不进入断点,上网查资料,有的说路径错误啦,然后我找我的路径错误,搞了半天还是没发现有路径问题。然后我给我的属性的get方法都弄上了断点,我发现了问题,现在跟大家分享。
这个错误就是说没有为返回的input定义,可是有时候我们不一定要这个鬼东西,然而在Action中出错的话,默认就返回了这个input了,这时,我们在struts的<result>中定义的话,就出现No result defined for action and result input的错误了。
经过我反复的测试,终于找到了原因,那就是关于信息的一个性别字段出了问题,页面提交的默认值与数据库的字段不匹配,导致直接报错,而不走action。所以,如果您也同样出了这样一个错误,希望您能够仔细检查一下您的字段对应问题,当然这只是其中的一个导致出错的原因,可能还会有其他原因,这就需要你自己好好的检查了。
- SSH报错:No result defined for action com.tyzy.action.user.UserAction and result input
- No result defined for action action.UserAction and result input
- No result defined for action com.svse.action.UserAction and result input
- No result defined for action com.web.action.UserAction and result input
- struts2 在拦截器里报错:No result defined for action com.gkwl.action.UserAction and result input
- 报错:No result defined for action and result input
- ssh 报错 No result defined for action and result input
- Struts2 项目报错 No result defined for action com.xxx.xxAction and result input
- ssh No result defined for action com.tiantian.base.action.CommonTouristAction and result input
- [SSH]Struts2 -- No result defined for action and result input
- HTTP Status 404 - No result defined for action com.tencent.action.UserAction and result success
- action莫名报错 No result defined for action com.action.Logout and result success
- No result defined for action *Action and result input - action -
- No result defined for action com.zph.ssh.actions.CourseAction and result input
- 表单提交时报错:No result defined for action com.ylj.action.BbsAction and result input
- SSH, 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
- java php DES 加密解密
- 11027 - Palindromic Permutation
- C++语法基础--智能指针
- MySQL错误,存储过程死循环错误
- hdu4472 Count
- SSH报错:No result defined for action com.tyzy.action.user.UserAction and result input
- 关于oracle rowid的一些内容
- org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.hdfs.protocol.AlreadyBeingCreatedException:
- How Oracle Store Number internal?
- Hibernate持久化对象状态
- include/linux/list.h
- 【7gyy】笔者支招:巧设安全模式防攻击
- Web页面渲染及合成加速(一)
- MySQL select到文件