You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/08/04 12:34:59 UTC
DO NOT REPLY [Bug 30461] New: -
struts generate wrong javascript validation rule
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30461>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30461
struts generate wrong javascript validation rule
Summary: struts generate wrong javascript validation rule
Product: Struts
Version: 1.1 Final
Platform: All
OS/Version: All
Status: NEW
Severity: Blocker
Priority: Other
Component: Validator Framework
AssignedTo: dev@struts.apache.org
ReportedBy: vaclav.kulakovsky@definity.cz
If large number of javascript validation rules is generated for any type ex.
mask. Generator reach variable name "do" so code like this is generated:
this.do = new Array("p64_lhuta_dotazy_hod", "Poloka <6.4. Hodina> je nesprávně
vyplněna.", new Function ("varName",
"this.mask=/(^[0-1]?[0-9]:[0-5][0-9]$)|(^2?[0-3]:[0-5][0-9]$)/; return
this[varName];"));
"this.do" cannot be interpreted like variable name and this error rise:
Error: missing name after . operator
Source File: file:///tmp/461.jsp.html
Line: 188, Column: 10
Source Code:
this.do = new Array(".....
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org