commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duncan Lyall <lyal...@yahoo.co.uk>
Subject [commons-validator-1.1.4] I'm missing something.
Date Thu, 30 Dec 2004 17:59:55 GMT
Sorry about that last one .... I'll try again

I have the following code

String[] schemes = {"http","https"};
UrlValidator urlValidator = new UrlValidator(schemes);
String url = "http://www.foo.com";
if (urlValidator.isValid(url)) {
       System.out.println("url is valid");
} 
else {
       System.out.println("url is invalid");
}

this FAILS validation

if I change the url to 
http://www.foo.com/x it passes ?

I'm confused. What is wrong with http://www.foo.com ?

I've checked the wiki and the faq

Cheers
Duncan



   
    

---------------------------------------------------------------------
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