Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring MVC 2.5 multiaction controller, how to inject validation

Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am trying to convert some of my controller to annotated style controller.

I saw the ImageDB sample application in my distribution, spring-framework-2.5.6.SEC01.

I wanted to play around with this code. But I cant get an idea on how to add validation on one of the post method.

I am thinking of adding an Errors or BindingResult object on the method signature but as I know, they are only used on
form backing object.

Can somebody share their thoughts here?
I am thinking this example does not really support validation
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic