What's the use case? Session events won't always occur within the
context of a RequestCycle, say, expiry.
Even If the use case is related to a request something like this might
be cleaner:
YourPage
if (getYourApp().getYourSession().isWhatever())
{
RequestCycle.get().setRedirect(true);
RequestCycle.get().setResponsePage(SomePage.class);
} else { ....
Ed.
On Sat, Mar 13, 2010 at 7:06 AM, Nishant Neeraj
<[email protected]> wrote:
> Hi,
>
> In my custom session, I have a method which, on certain condition, wants to
> redirect the request to some page, other than the original.
> This is what I am doing, in the method:
>
> RequestCycle.get().setRedirect(true);
> RequestCycle.get().setResponsePage(SomePage.class);
>
> But the response continues to land on the originally requested page
> requested page.
>
> Is there any way to do this without invalidating the session?
>
> Thanks
> Nishant
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]