您的位置:首页 > 其它

No result defined for action com.igit.contract.web.action.ContContractAction and result input

2012-12-13 15:50 489 查看
原因:

1,给action传递数据类型有问题。

2,给action提交了重复的数据。比如form中有名为id的input,action地址中也有名为id的参数,或者from中有两个名为id的input

3,jsp form表单中有<input type="file" name="aFile"/> 也就是表单包含文件上传,会出现这个问题。解决办法是在form标签里添加enctype="multipart/form-data";<form name="a" action="" method="" enctype="multipart/form-data">......</form>

enctype="multipart/form-data“参见我的另一篇转载的文章/article/8402627.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐