I'm now using the 20021102 1.1 nightly build and I get the following java script error when submitting the page.

Error: invalid assignment left-hand side
Source Code:
this.field-test[0]='NOTNULL'; this.maxlength='20'; this.field[0]='field1'; this.mask=/^[a-zA-Z0-9\-]*$/; return this[varName];

I get the same error trying to use EQUAL. This bombs all the validation.

The error message is from Mozilla, but the javascript fails in IE as well.

Any ideas?

Rob Leland wrote:

Eric Weidner wrote:

Yes, this is truly 1.1b2 and that is the line that failed. I figured
the "requiredif" was in there since the documentation mentioned it as a feature in 1.1.


When downloading a struts version always refer to the version of the
docs that come with that download. The docs on the web site tend to reflect functionality of the current nightly build.

BTW, was one of the bugs that was fixed validating max and min length on
password fields?

I don't believe so, I had seen something mentioned in the news group
in the last week about that. If there is a problem then file a bugzilla bug report.
Will do when I get time to write up a proper bug.




--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to