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
竟然用这种奇怪方法!
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
竟然用这种奇怪方法!
本文详细介绍了如何解决在Spring框架中遇到的doesnotsupportcommandclass错误。主要原因是验证文件中的表单名称与类名不匹配。解决方案包括确保配置文件、验证文件、JSP标签及HTML表单中的名称一致。
737

被折叠的 条评论
为什么被折叠?



