: 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, 2004 1:52 PM
To: 'Tomcat Users List
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. To
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
Hi
... So problem here.
Meant: No problem here.
Sorry, regards,
Steffen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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 creating it?
Javas young
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:
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 Steffen,
Thanks
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
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 Steffen
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 creating it?
Javas
10 matches
Mail list logo