Thats true, so if you have https, we could always truncate the 's' after http and pass it to URL to check whether it throws MalformedURLException.
should work..... Panchasheel -----Original Message----- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 1:12 PM To: Struts Users Mailing List Subject: RE: URL validation with struts??? On Tue, 15 Jul 2003, Gandle, Panchasheel wrote: > That shoud do it right > Open a new URL with a specified URL, if it throws MalformedURLException > its bad URL Unfortunately, there's a gotcha to this approach -- the JVM you are running on has to understand the scheme part of the URL you are testing for. For example, you'll get a MalformedURLException on any "https:" URL (even if it's actually correct) if your JVM doesn't have the JSSE classes (or equivalent) that understands SSH. Craig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]