Win a copy of Functional Reactive Programming this week in the Other Languages forum!
    Bookmark Topic Watch Topic
  • New Topic

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

 
vydehi vajanapally
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic