On Sat, 12 Feb 2005 12:49:08 +1300, Jason Lea <[EMAIL PROTECTED]> wrote: > Hmm, I think something like this might do it: > > inside your doFilter(ServletRequest request, ServletResponse response, > FilterChain chain) method: > > HttpServletRequest req=(HttpServletRequest ) request; > req.getRequestURI()
That's the right method, but you should remember that on the way *in*, this URL will be the one of the action that was posted to, not the JSP that displayed the previous page. Likewise, on the way *out* there is nothing in the response that says what JSP page was actually used. If that matters, you might want to save a request scope attribute or something, so that the filter can retrieve it. Craig > > > Eric Lemle wrote: > > >>From inside a filter how do I get the name of the jsp that was > >requested? > > > >Eric D. Lemle > >Senior Programmer / Analyst > >Intermountain Health Care > >36 South State Street, Suite 1100 > >Salt Lake City, Utah 84111 > >United States of America (USA) > >(801) 442-3688 -- e-mail: [EMAIL PROTECTED] > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > -- > Jason Lea > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 2005.02.10 > > > --------------------------------------------------------------------- > 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]