commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Kutzinski <>
Subject UrlValidator
Date Fri, 27 Aug 2004 09:44:13 GMT

someone asked this already before, but he got no answer:

Why is the UrlValidator saying that URLs without paths are invalid?

urlValidator.isValid("";) returns false
urlValidator.isValid("";) returns true

Is this a feature (and not and bug ;-)?
If it is so, why was it designed this way?

Additionally I would like to know:
Users often enter URLs without the http:// prefix.
I would like to allow them to enter URLs in the same way in my HTML 
forms and validate it with UrlValidator.
Is it possible to tell the UrlValidator to ignore if there is an http:// 
prefix or not?

Thank you in advance,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message