Re: Getting Parameters from URL

2011-05-15 Thread Jeremy Thomerson
Hielke's response is spot-on. The real question is: why do you need to access parameters in your session? At least your example is concerning - it's not typically a good sign to be pulling the User ID from the request (where it looks like you're using it to create a session for a user). -- Jer

RE: Getting Parameters from URL

2011-05-12 Thread Hielke Hoeve
This is because a session is created only once for each user, until it expires ofcourse... If you wish to check url parameters for each request I would suggest you do this in RequestCycle.onBeginRequest(). There is also RequestCylce.onEndRequest() if you need to do anything at the end of the cycle

Re: Getting Parameters from URL

2011-05-12 Thread Andrea Del Bene
Hi, in your you can use static method RequestCycle.get().getRequest() to get the current request and extract parameters. We have code in our session object as follows: public class OurSession extends WebSession { public OurSession(Request request)}{ super(request) // GET P