On Fri, 04 Jan 2008, Andrew Berman wrote:
> I am having an issue migrating from 1.2.6 to 1.3.  I changed my Application
> class so it would compile for 1.3 and the method in question is
> newRequestCycle(Request request, Response response).  Before I was looking
> at the URL and based on the URL selecting a skin for the site and logging in
> as a particular user which creates the new session.  With 1.3 I am now
> getting an exception of java.lang.IllegalStateException: you can only locate
> or create sessions in the context of a request cycle.  Is there some other
> method I can use to do the URL testing and creating of the session?

Maybe you can do it by overriding newSession() in your
Application subclass and creating your custom session
there? RequestCycle (and Request from it) can be found
anywhere by RequestCycle.get() .

Best wishes,
Timo

-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to