This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes How to display success message in Struts? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to display success message in Struts?" Watch "How to display success message in Struts?" New topic
Author

How to display success message in Struts?

Ajushi Jones
Greenhorn

Joined: Dec 11, 2007
Posts: 25
Hi, we could display errors in Struts by doing actionErrors.add(key, new Actionmessage("string")), addErrors(request, actionErrors); and then outputting it into a JSP page via

I'm wondering, how do I output success messages in Struts? How do you normally/conventionally do it?

Thanks in advance!
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

addMessages
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to display success message in Struts?
 
Similar Threads
Struts 2.1 Need two different success results
Problem validate method of Action Form
Want to display result on the page
display form class values on success page
Waiting Message