HTTP Status 404 - No result defined for action …… and result input。
来源:互联网 发布:软件租赁合同 编辑:程序博客网 时间:2024/05/01 06:43
HTTP Status 404 - No result defined for action …… and result input。
异常信息,可以简单的认为是页面跳转问题。
我的操作是:执行删除的功能。(单个删除和批量删除的方法)
点击删除或是批量删除按钮后出现该问题。
分析原因
很多人可能会认为是,struts配置文件路径出现了问题,但是今天出现的问题却不是路径配置问题。
问题是:
//删除单个id
function deletes(id){
if(confirm("您确定要删除吗?")){//msgHisSend
window.location.href ="<eaglelink:contextpath/>/html/msgSend/msgHisSend!delete.action?id='"+id+"'";
}
}
我在action 里面要收集的是id(String) 类型的;//而实际在写的时候我写的是pushmsgid这个字段。
如果他只是单纯的表示方法也就罢了,但实际上,该字段是操作的表中的一个字段,而且类型为(int)的。
因此,传过去的就成了int类型的数据 就会出现这个问题;
注意点有三个:
第一:出现这样的问题不要只局限于理所当然的认为是配置文件出的问题,就是你盯着这个配置文件,熟的都可以背下来也无济于事,问题不是出现在这儿。因此,找出出现问题的真正原因才是最正确的。
第二:其实,不难看出问题很简单,不细心、不谨慎造成这个问题的,两个字段都是数据库里的,即使表达的是一个意思,也不能将其混淆。因此,关键是避免使用关键字和敏感字是很重要的。
第三:就是造成问题的真正原因,跳转时,传参的类型也影响你的跳转路径,谨慎啊!
- HTTP Status 404 - No result defined for action …… and result input。
- HTTP Status 404 - No result defined for action org.csun.ns.action.NtHomesAction and result input
- HTTP Status 404-no result defined for action com.huida.action.LinkManAction and result input
- HTTP Status 404 - No result defined for action and result input
- struts2 上传文件 HTTP Status 404 - No result defined for action.....and result input
- HTTP Status 404 - No result defined for action XXX and result input
- HTTP Status 500 - No result defined for action com.action.goodsAction and result input
- HTTP Status 404 - No result defined for action EmployeeAction and result input - action类似异常解决及原因剖析
- “HTTP Status 404 - No result defined for action ****** and result result”错误解决方法
- “HTTP Status 404 - No result defined for action ****** and result result”错误解决方法
- HTTP Status 404 - No result defined for action EmployeeAction and result input - struts2类似异常解决及原因剖析
- HTTP Status 404 - No result defined for action com.lnzkx.action.PeronAction and result success
- HTTP Status 404 - No result defined for action com.ssk.action.Register and result success
- HTTP Status 404 - No result defined for action com.cnlive.csp.manage.action.SysGiftAction and result
- HTTP Status 404 - No result defined for action com.tencent.action.UserAction and result success
- 404:No result defined for action and result input
- 404-No result defined for action and result input 错误
- HTTP Status 404 - No result defined for action XXXX and result success 处理
- vim 移动: 行
- 真彩位图工具栏的实现
- JS解析json数据(如何将json字符串转化为数组)
- 制作带弹出式菜单的按钮
- 重装Oracle时提示“指定的SID在本机上已经存在”解决方案
- HTTP Status 404 - No result defined for action …… and result input。
- 扩展Edit Box控件的功能
- MFC中应用程序只允许运行一个实例方法一
- java正则除去img中的height和width保留src属性
- 类参数
- MFC中应用程序只允许运行一个实例方法二与三
- 操作系统的电源相关消息
- 为什么你不能把一个FILETIME结构当成一个__int64
- 2011-12-06