You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Reynir Hübner <re...@hugsmidjan.is> on 2002/12/03 22:20:05 UTC

RE: Get the request path from a filter ..

How about request.getRequestURI() ?

It should return you a string with the uri..

Hope it helps
-reynir





> -----Original Message-----
> From: Eriam Schaffter [mailto:eriam@eriamschaffter.info] 
> Sent: 3. desember 2002 22:13
> To: tomcat-user@jakarta.apache.org
> Subject: Get the request path from a filter .. 
> 
> 
> Hi all ..
> 
> How can I get the request uri from a servlet filter .. ?
> 
> Thanks for any answear ..
> 
> Eriam Schaffter
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <ma...@jakarta.apache.org>
> 
> 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Get the request path from a filter ..

Posted by Eriam Schaffter <er...@eriamschaffter.info>.
Right ..

But in the filter I get a ServletRequest object and not an 
HttpServletRequest object ..

So ..

HttpServletRequest HttpRequest = (HttpServletRequest) request;
String URI = Requete.getRequestURI();

Thanks ..

Eriam

Reynir Hübner a écrit:

>How about request.getRequestURI() ?
>
>It should return you a string with the uri..
>
>Hope it helps
>-reynir
>
>
>
>
>
>  
>
>>-----Original Message-----
>>From: Eriam Schaffter [mailto:eriam@eriamschaffter.info] 
>>Sent: 3. desember 2002 22:13
>>To: tomcat-user@jakarta.apache.org
>>Subject: Get the request path from a filter .. 
>>
>>
>>Hi all ..
>>
>>How can I get the request uri from a servlet filter .. ?
>>
>>Thanks for any answear ..
>>
>>Eriam Schaffter
>>
>>
>>--
>>To unsubscribe, e-mail:   
>><mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
>>For 
>>additional commands, 
>>e-mail: <ma...@jakarta.apache.org>
>>
>>
>>    
>>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>-------------
>Ce courrier a ete considere comme non infecte par les virus 
>connu de notre outil de detection. Soyez cependant prudent 
>avec les pieces jointes. Merci.
>
>  
>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>