Re: Using RewriteFilter defined in web.xml within application
"Tim Maurer" <[email protected]> Thu, 15 Jun 2006 02:50:01 -0700
| Newsgroups | gmane.text.xml.resin.user |
|---|---|
| Message-ID | <[email protected]> |
Silly of me to think even if I do grab the instance of my RewriteFilter it'd be of any use. Nevermind that. Still, though, I'd like to retrieve the browser's original pre-rewrite request URI without having to manually reverse the rewrites. Tim On 6/14/06, Tim Maurer <[email protected]> wrote: > Hi all, > In my web app I'd like to use request.getRequestURI() to dynamically > construct URIs for various redirection purposes, but I'm > inconvenienced by the fact that my app makes use of a RewriteFilter > and request.getRequestURI() returns the true servlet's URI as opposed > to the pre-rewrite URI used in the request. > > Am I missing an obvious way of making use of the RewriteFilter within > my app? I've looked at com.caucho.server.webapp.Application for any > hints in grabbing the filter from the context, but I'm stumped. > > Here's an example of a workflow in my app where I'd like this to work: > > 1. Unauthenticated user attempts to access a restricted resource > 2. Servlet redirects user to login page, appending original request > URI as a query parameter > 3. User logs in, servlet redirects to originally requested URI via the > query param > > Thanks for any help, > Tim >