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] Am I missing something ?
Date Thu, 30 Dec 2004 17:53:06 GMT
Hi

I have the following code

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


    }
    

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