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 Is there an easy way to display success messages in Spring MVC? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "Is there an easy way to display success messages in Spring MVC?" Watch "Is there an easy way to display success messages in Spring MVC?" New topic
Author

Is there an easy way to display success messages in Spring MVC?

Vladimir Kroupa
Greenhorn

Joined: Dec 26, 2008
Posts: 27
Spring MVC has great support for error messages. It would be nice to have similar feature for displaying success or information messages.
There has been an unresolved issue on this in Spring JIRA for quite some time, but it doesn't have as many posts as I would expect. Perhaps there is an easy solution for displaying localized messages that I am unaware of?

Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

In Spring MVC, do you want to display Succes Views..? what actually you mean by saying Success messages


Ashwin Sridhar
SCJP | SCWCD | OCA
Vladimir Kroupa
Greenhorn

Joined: Dec 26, 2008
Posts: 27
Well, by "success message" I mean a message that informs the user that the requested action (e.g. creating a new record) has been performed successfully.
Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

When you use Spring MVC, you can use successView. you can return it using ModelAndView object
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Is there an easy way to display success messages in Spring MVC?
 
Similar Threads
Client side validation using Spring MVC
Spring vs. Struts
How to handle 'Success Messages' in Spring MVC in a manner similar to 'Error Messages'
Spring MVC 3 and JSF2 Integration
JSR 286/MVC Support in Spring 3.0