Nov 30th, 2012, 12:41 PM
Spring MVC Error Handling in Spring Controller
I am very new to spring and I am using spring 3.0
I have a Spring Controller which is annotated with @Controller and in which i have a request mapping method to forward to the Jsp on some action which is annotated with @RequestMapping.
In that method I want to set an error message which is based on the key from messages.properties so that the Jsp can retrieve the value from messages.properties exactly like we do in Struts Action using the Action Errors concept.
Please give me an idea on how to do this.