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 Displaying messages using action messages 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 "Displaying messages using action messages" Watch "Displaying messages using action messages" New topic
Author

Displaying messages using action messages

Anil Verghese
Ranch Hand

Joined: Oct 11, 2006
Posts: 155
hi,

I am using addActionMessges(String) method to insert messages to be displayed to the customer in m action class and <s:actionMessages/> in my jsp to display them, but after including client validations using Struts2 validations its not working. I am not really sure why? Any suggestions would of great help.

Anil Verghese
Ranch Hand

Joined: Oct 11, 2006
Posts: 155
Hi,

I found the solution, actually it was a mistake from my end.. the struts-config.xml entry for validation was not done properly..
Anyways thanks guys.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Displaying messages using action messages
 
Similar Threads
Validations using ActionErros Validate
Error messages are not being displayed while using validator
Struts 2.0 validations
Why this client side javascript is not enabled?
How to handle 'Success Messages' in Spring MVC in a manner similar to 'Error Messages'