You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by dgv <de...@gmail.com> on 2013/05/07 21:32:20 UTC
WebUtils.redirectToSavedRequest fails in Tomcat 7
Hi,
I have a shiro protected application what works just fine on Weblogic. I
moved the application onto Tomcat and noticed that
/*WebUtils.redirectToSavedRequest(request, response, "/index.jsp");*/ no
longer works. I call that after the user has been successfully logged in and
should be taking me to index.jsp.
however i noticed that using
*/request.getRequestDispatcher("index.jsp").include(request, response);/*
works fine.
Has anybody else experienced the same issue? I'm using Struts 1.3 on Tomcat
7.
Thanks
DGV
--
View this message in context: http://shiro-user.582556.n2.nabble.com/WebUtils-redirectToSavedRequest-fails-in-Tomcat-7-tp7578708.html
Sent from the Shiro User mailing list archive at Nabble.com.
Re: WebUtils.redirectToSavedRequest fails in Tomcat 7
Posted by Les Hazlewood <lh...@apache.org>.
Yep - the redirect only sets the flag on the request - you have to break
processing at that point to ensure it is performed.
--
Les Hazlewood | @lhazlewood
CTO, Stormpath | http://stormpath.com | @goStormpath | 888.391.5282
On Tue, May 7, 2013 at 1:30 PM, dgv <de...@gmail.com> wrote:
> found out whats going on...I had to put in a "return;" immediately
> following
> the redirect statement. Now it works.
>
>
>
> --
> View this message in context:
> http://shiro-user.582556.n2.nabble.com/WebUtils-redirectToSavedRequest-fails-in-Tomcat-7-tp7578708p7578709.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>
Re: WebUtils.redirectToSavedRequest fails in Tomcat 7
Posted by dgv <de...@gmail.com>.
found out whats going on...I had to put in a "return;" immediately following
the redirect statement. Now it works.
--
View this message in context: http://shiro-user.582556.n2.nabble.com/WebUtils-redirectToSavedRequest-fails-in-Tomcat-7-tp7578708p7578709.html
Sent from the Shiro User mailing list archive at Nabble.com.