File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Spring MVC 2.5 multiaction controller, how to inject validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring MVC 2.5 multiaction controller, how to inject validation" Watch "Spring MVC 2.5 multiaction controller, how to inject validation" New topic
Author

Spring MVC 2.5 multiaction controller, how to inject validation

Mark Reyes
Ranch Hand

Joined: Jul 09, 2007
Posts: 426
Hi,

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


Sean Clark ---> I love this place!!!
Me ------> I definitely love this place!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring MVC 2.5 multiaction controller, how to inject validation
 
Similar Threads
Integration testing of Spring 2.5 Annotation based controller using web context
Calling a new JSP form a Spring Controller using Ajax
Need Help Reading/Writing an Image using Spring MVC
Get value of dynamically generated input boxes in Controller using Spring 2.5
Getting a path within a controller for file upload directory