Hi Vishwa,
There is a simple solution for your
problem.
The browser does not accept if there are any spaces or
any special character in your URL. TO get through
that situation, use a class called URLEncoder in
java.net package. so the usage would be
String yourModifiedURL =
java.net.URLEncoder.encode(yourOldURL);
so now if you pass this new URL, your browser should
not complain.
sreenu
--- Vishwa <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> Thanks for the replies. %20 worked fine.
>
> Thanks again
> vishwa
>
> Vishwa wrote:
> >
> > Hello,
> >
> > We have an url that refers to a folder name with
> space character in it.
> > Example the url is somewhat like this
> >
> > http://myhost.com/space dir/index.html
> >
> > I get a 404 error from the webserver saying it
> cant locate the file. I
> > also tried putting a '+' character in url. It dint
> work.
> >
> > like this :
> > http://myhost.com/space+dir/index.html
> >
> > Anybody there ?
> >
> > regards,
> > vishwa
> >
> >
>
___________________________________________________________________________
> > 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
>
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
___________________________________________________________________________
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