Well so you say is good, thank you for your help.

I have another problem,
I save uploaded images(by users)  in folder place at "D:\storeg\data\uf\".
So when the URL is "http://localhost/test/uf/xyz.jpg"; then is redirect to
"D:\storeg\data\uf\xyz.jpg" 
And that so because i cunfigure in server.xml this part between the host
tag,
<Context path="/uf" docBase="D:\storeg\data\uf" debug="0"
crossContext="false"/>

Is ther way that i can do that by using the filter, how can i redirect the
request from the flter when is "/uf..." to
"D:\storeg\data\uf..." with out loading the image and print it out from the
filter ?

Thank you. (it take hourse to post amessage, my english is not good, sory)


Tim Funk wrote:
> 
> You won't even notice this code being run.
> 
> -Tim
> 
> prt wrote:
>> Hi,
>> My list is small only 5 URLS, 
>> I save it in (String[]), that load in the Filter init method by init
>> parameter in the web.xml.
>> Every request i take the ServletPath and to this part in function,
>> 
>> boolean bRunURL;
>> 
>> for(int i = 0, max = sArrAlowd.length; i < max && !bRunURL; i++)
>>     bRunURL = (sServletPath.indexOf(sArrAlowd[i],1) == 1);
>> 
>> return bRunURL;
>> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Servlet-Filtering---performance..-tf3356429.html#a9339522
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to