PDA

View Full Version : Spring Mod 0.3/DefaultBeanValidator does not suport command


biguniverse
Aug 21st, 2005, 03:39 PM
Hello.

I've been able to successfully pull stuff out of the Spring Modules CVS and build springmodules-validator-dev-20050819.jar.

I've followed these instructions by Matt carefully:

http://jroller.com/page/raible?anchor=using_commons_validator_with_spring
http://jroller.com/page/raible?entry=commons_validator_support_for_spring

However, I'm getting this error -- any clues on where I should look? I've checked everything a couple of times.

[org.springmodules.commons.validator.DefaultBeanVa lidator@e490fa] does not support command class [pas.controller.TradeSearchCommand]

mraible
Aug 22nd, 2005, 10:19 AM
The name of your commandClass must match the "name" attribute in your
form definition in validation.xml.

You could also try using the NamedBeanValidator - this should help you get
around using "command" for each commandName:

http://forum.springframework.org/showthread.php?t=10296

Note that this class has been renamed ConfigurableBeanValidator since
this code was moved to the Spring Modules project:

http://jroller.com/page/raible?anchor=commons_validator_support_for_spring