tomcat-users mailing list archives

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

> 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 (http://my.com/login) 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.

-chris


Mime
View raw message