aspose file tools*
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 Spring in Action this week in the Spring 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?