Pure genuis Im so new to struts have been googling all day long for this. Would have taken me forever to figure out. Looked in Struts 2 in action & Apache Struts 2. Thank you Thank you Thank you!
I am now getting javascript pop ups after I moved my Security-validation.xml to the commons folder as you said Lucas. Wooo Ho!!! I wont soon forget that lesson.
However for IE 8 I get javascript pop ups and for Firefox I get web page side validation. I suppose that in Firefox I am not getting client side validation because the FF Error log shows Error: document.security is undefined
Source File:
http://localhost:8181/AdaptWSC_v3/candidate/security.jsp
Line: 1
I have attached a screen shot of the js pop up error I get in windows 7 ie 8. It is closer to what I would expect but does not have the text from the properties files. The screen shot also shows what FF returns. One browser is returning a pop up while the other is still returning a field based validation. I have restarted
jboss & dumped the cache to be sure everything is out of cache.
This is how I have changed the arrangement to get IE to give me the
java script pop up errors:
1. Moved candidate/Security-validation.xml to common/Security-validation.xml
2. Changed the struts.xml to:
And three changed the form to conform with the new struts.xml