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=30873>.
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=30873

Struts Validation - Client Side URL validation fails when using regular expression





------- Additional Comments From [EMAIL PROTECTED]  2004-08-26 18:24 -------
The problem appears to be the forward slashes (such as http://, but there are
also some others) in your expression. They cause a problem in javascript because
that is what is used to delimit a "mask". 

To fix this for javascript, you can escape those (do http:\/\/) but I'm not 100%
sure that would work on the Java side, all you can do is try it out. 

You may be better off figuring out the ASCII Hex code of a forward slash, and
matching that instead using \xNN.
 
I don't think this is a struts or validator bug though, just a difference in how
Java and Javascript do validation that needs to be worked around.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to