views:

1428

answers:

2

Hi,

I'm using Spring 3 and using SimpleFormController is deprecated. It sounds like we should use annotions like @Controller instead. Okay, but how can I manage the validator for my form within my controller?

Thanks

+1  A: 

Spring 3 has shiny new support for JSR 303 validation. See the docs here.

skaffman
+1  A: 

Still some issues with 3.0RC1, see the following issue if you want to look at annotation based validation and JSR 303: http://jira.springframework.org/browse/SPR-6189

Filip Korling