commons-user mailing list archives

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

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

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

urlValidator.isValid("http://www.heise.de";) returns false
but
urlValidator.isValid("http://www.heise.de/newsticker";) 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,

Christoph



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message