Version 1.2.2 of Struts was withdrawn because of problems. The current "ga" quality release of Struts is Version 1.2.4
http://struts.apache.org/acquiring.html Niall ----- Original Message ----- From: "Jeffrey Ford" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 26, 2004 5:52 PM Subject: client-side validation javascript error > Hi, > > I'm trying to get client-side validation to work using Struts, v. 1.2.2. > More specifically, I'm receiving a javascript error while trying to use the > 'required' validation rule. The error in IE says: > > Error: 'required' is undefined > > When I look at the generated javascript, this is indeed true. However, > there's a function called 'locationForm_required' where 'locationForm' is > the name of my form. It seems that the 'validateRequired' method should be > calling a 'new locationForm_required( )' instead of a 'new required( ). > > function locationForm_required () { > this.a0 = new Array("shortDescription", "Short Description is > required.", new Function ("varName", " return this[varName];")); > } > > function validateRequired(form) { > var isValid = true; > var focusField = null; > var i = 0; > var fields = new Array(); > oRequired = new required(); > for (x in oRequired) { > var field = form[oRequired[x][0]]; > ... <blah> <blah> > > > Does anyone have any insight into this? > > Thanks in advance, > Jeff > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]