Hi Greg
        I tried with test%2B.gif also.  If the file is located in Apache, it
docodes properly.
        But if the file is in Tomcat, it throws resource not available
error.

-Surendra

----- Original Message -----
From: "Greg Ward" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, August 31, 2004 8:02 PM
Subject: Re: Tomcat 4.1.29 - Special chars in a file name


> On 31 August 2004, Surendra Kumar said:
> > Hi
> >    I am using Tomcat 4.1.29 + Apache 1.3.31.  In one of my webapp i have
a file named "test+.gif"
>
> Probably a URL encoding problem -- if a web page includes
>
>   <a href="test+.gif">
>
> then the browser will ask for "test .gif", because "test+.gif" is one of
> the ways to encode "test .gif" so it's a legal URL.  (The other is
> "test%20.gif".)
>
> Whatever code is generating
>
>   <a href="test+.gif">
>
> is wrong -- it should be
>
>   <a href="test%2B.gif">
>
> which the browser will decode to "test+.gif".
>
>         Greg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to