Tag: Dispatch预览模式: 普通 | 列表
错误 :javax.servlet.ServletException: DispatchMapping[0] does not define a handler property
原因: action参数配置不全
解决方法:在 config文件中 添加 parameter="method"等

错误: 表单数据验证失败时发生错误,“No input attribute for mapping path”
原因:action中表单验证 validate="true" ,如果validate()返回非空的ActionErrors,将会被转到input属性指定的URI,而action中未指定input时会报此错
解决方法:添加 input="url" 或者 validate="false"

错误:jsp页面中,一个form有隐藏的method属性,<input type="hidden" name="method" value="<bean:message key="button.deleteall"/>"> ,当其他的button使用 method时会默认为使用该属性,则达不到程序员预期的操作

查看更多...

Tags: Dispatch

分类:Struts | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 830