RE: URL validation

2004-06-11 Thread Shapira, Yoav
Hi, >I had this in the new >URL(http://4526353&[EMAIL PROTECTED]@##$#$$%(()))*(*&&^%^%^) and >it passed. I was expecting to get some error. Should I? No, you shouldn't get an error. It's a valid but nonsensical URL. If you're not clear why this is valid, and are interested, look at RFC 2396.

RE: URL validation

2004-06-11 Thread Ikonne, Ike
t Users List Subject: RE: URL validation Hi, Can you give examples and/or cases that show java.net.URL doesn't meet the RFC specifications? Yoav Shapira Millennium Research Informatics >-Original Message- >From: Ikonne, Ike [mailto:[EMAIL PROTECTED] >Sent: Tuesday, June 08,

RE: URL validation

2004-06-08 Thread Shapira, Yoav
ers List' >Subject: RE: URL validation > >Hi Steffen, > >Thanks, new URL(url) doesn't work consistently. I have tried it, >one can throw in an url that doesn't meet RFC 1738 but URL(url) will >not catch it. > >Thanks, > >Ike > > >-Original

RE: URL validation

2004-06-08 Thread Ikonne, Ike
Hi, No, I have not. I haven't thought about it. Ike -Original Message- From: Vy Ho [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 2:22 PM To: Tomcat Users List Subject: Re: URL validation Did you file a bug report at java.sun.com yet? Ikonne, Ike wrote: >Hi

Re: URL validation

2004-06-08 Thread Vy Ho
Did you file a bug report at java.sun.com yet? Ikonne, Ike wrote: Hi Steffen, Thanks, new URL(url) doesn't work consistently. I have tried it, one can throw in an url that doesn't meet RFC 1738 but URL(url) will not catch it. Thanks, Ike --

RE: URL validation

2004-06-08 Thread Ikonne, Ike
Hi James, Thanks, I will try your suggestion and let you know if it meets my requirements. Ike -Original Message- From: James Black [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 2:06 PM To: Tomcat Users List Subject: Re: URL validation Ikonne, Ike wrote: >Hi Stef

Re: URL validation

2004-06-08 Thread James Black
Ikonne, Ike wrote: Hi Steffen, Thanks, new URL(url) doesn't work consistently. I have tried it, one can throw in an url that doesn't meet RFC 1738 but URL(url) will not catch it. You could try regular expressions. Here is a relatively simple one: (?:ftp\:|http\:|mailto\:)?(\w+\@)?(

RE: URL validation

2004-06-08 Thread Ikonne, Ike
2:30 PM To: 'Tomcat Users List' Subject: RE: URL validation Hi > Here is my problem, I am looking for a way to syntactically valid a given URL without having to actually creating an URL object. try { new URL( myUrl ); return true; } catch ( Throwable t ) { return false; } Why not c

RE: URL validation

2004-06-08 Thread SH Solutions
Hi > ... So problem here. Meant: No problem here. Sorry, regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: URL validation

2004-06-08 Thread SH Solutions
Hi > Here is my problem, I am looking for a way to syntactically valid a given URL without having to actually creating an URL object. try { new URL( myUrl ); return true; } catch ( Throwable t ) { return false; } Why not creating it? Javas young generation garbage collection should dispose

URL validation

2004-06-08 Thread Ikonne, Ike
Hi all, I don't know if this is the right forum to posse this question, but I will go ahead and give it a try. Here is my problem, I am looking for a way to syntactically valid a given URL without having to actually creating an URL object. Is there a piece of code out there that would enable me