File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: display validation message as an alert in jsp which uses struts 2 validation.xml