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.