Re: Immediate redirect from session

2008-05-07 Thread Edvin Syse
- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -

Re: Immediate redirect from session

2008-04-29 Thread Johan Compagner
Doing this stuff in the session constructor is really the wrong place, then still the normal request processing will happen. Something like this should be done in RequestCycle.onBeginRequest() and then throw a RestartResponseException() instead of just setting a request target. Johan On 4/28/08,

Immediate redirect from session

2008-04-28 Thread Edvin Syse
Hi, I have a CMS-system that under some circumstances should do an immediate redirect when the session is created. I try with the following code in MySession's constructor: String host = ((ServletWebRequest) request).getHttpServletRequest().getHeader("host"); Instance instance = instanceDao.f