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.
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,
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
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
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 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
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+\@)?(
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
Hi
> ... So problem here.
Meant: No problem here.
Sorry, regards,
Steffen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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 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
11 matches
Mail list logo