Hi Danny,
The the URL encoder from the java.net package was the solution. Got that
answer several days ago.
Tom K.
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Danny
Rubis
Sent: Wednesday, May 10, 2000 5:12 PM
To: [EMAIL PROTECTED]
Subject: Re: Space Character In URL
Hey!
I am coming in late to this discussion.
Is there a reason why you can't use the URL encoder
from the java.net package?
Sans adieu,
Danny Rubis
"blueads.com" wrote:
> - I am running into the same problem as another poster had with spaces in
a
> URL. I have tried replacing the space with a '+' sign using the code
below.
> This worked fine with Internet Explorer but Not with Netscape.
>
> // String phrase needs '+' signs between spaces for http links.
>
> int length = phrase.length();
> String temp = phrase;
> char linkPhrase[] = temp.toCharArray();
>
> for (int i = 0; i < length; i++) {
> if(linkPhrase[i] == ' '){
> linkPhrase[i] = '+';
> }
> }
>
> - Someone suggested that using %20 works. How would I implement it based
on
> the sample code above?
>
> Thanks,
>
> Tom K.
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html