tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: ResponseWrapper and sendRedirect not working
Date Mon, 24 Jul 2006 20:01:08 GMT

> The servlet class checks, if the user is authenticated using a variety
> of conditions. If the user is not authenticated, then the servlet sends
> a redirect to the login page.
> When debugging using Eclipse, I can see that my response wrapper class
> has the redirect url ( set in it. But I never see
> the login page on my browser.

What /does/ happen?

Is your filter supposed to do the redirect? In either case, the redirect
did not appear in the code you posted.

> Should I implement any special methods in
> my wrapper which is currently an empty class?

Assuming that your class subclasses an existing ServletRequest class,
then you should be okay. If you merely implemented the ServletRequest
interface but left the methods empty, then it is not surprising that
nothing is happening.

Please provide more details.


View raw message