wood burning stoves 2.0*
The moose likes Struts and the fly likes display validation message as an alert in jsp which uses struts 2 validation.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic
Author

display validation message as an alert in jsp which uses struts 2 validation.xml

vydehi vajanapally
Greenhorn

Joined: Mar 02, 2009
Posts: 9
I created a validation xml and i mentioned those error messages in package.resources.

Now I want to display those error messages(when i click on submit button) as java script alerts on the page.

Please help me how to merge javascript function with the struts validation messages.

and how/when to call this alert message with code.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: display validation message as an alert in jsp which uses struts 2 validation.xml
 
Similar Threads
display validation message as an alert in jsp which uses struts 2 validation.xml
Problem in displaying message using resource bundle for validation framework
Displaying validation error messages only at the top in struts 2
struts validator validation.xml
how we return error in javascript message box ?