您的位置:首页 > 编程语言 > Java开发

发现springmodules validation的问题

2006-03-05 21:31 260 查看
the solution for the error "does not support command class" error is that your validator xml form name does not match the class name (w/lower case 1st letter)
My redux redux is:
for a domain/entity class named SomeDumbClass:
? The commandClass in the Spring servlet config is com.foo.bar.SomeDumbClass
? The form name in the validation file must be someDumbClass
? The form name in the <v:javascript> tag in the JSP must be someDumbClass
? The name in the HTML form tag must be someDumbClassForm and the onsubmit attribute of the HTML form tag must be 'return validateSomeDumbClass (this)'
? Field names in the validation file will match the generated HTML names of the inputs

Thanks again Matt!

来自http://jroller.com/page/raible?anchor=using_commons_validator_with_spring

竟然用这种奇怪方法!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: