Re: [S2] newly-created Session context

2008-07-14 Thread Pierre Thibaudeau
Thanks for the heads up! I'm learning every day! And yes, I concur: this definitely needs to be documented! 2008/7/14 Gabriel Belingueres <[EMAIL PROTECTED]>: > Seems like something is not correctly initialized in OGNL when you get > the session from the HTTPServletRequest object this way (it sho

Re: [S2] newly-created Session context

2008-07-14 Thread Gabriel Belingueres
Seems like something is not correctly initialized in OGNL when you get the session from the HTTPServletRequest object this way (it should be documented somewhere or otherwise fix it.) But you don't need to get both the HTTPSession and the Map to put something in session scope. The SessionMap is an

Re: [S2] newly-created Session context

2008-07-14 Thread Pierre Thibaudeau
2008/7/14 Gabriel Belingueres <[EMAIL PROTECTED]>: > Please test your interceptor using the following to get the session: > Map session = invocation.getInvocationContext().getSession(); Well, Gabriel: a) I'll be d*mned! b) You're a genius! ;) (I would never have thought of looking that way!)

Re: [S2] newly-created Session context

2008-07-14 Thread Gabriel Belingueres
Please test your interceptor using the following to get the session: Map session = invocation.getInvocationContext().getSession(); 2008/7/14 Pierre Thibaudeau <[EMAIL PROTECTED]>: > 2008/7/14 Gabriel Belingueres <[EMAIL PROTECTED]>: > >> That's strange. >> Which S2 version are you using? >> > > St

Re: [S2] newly-created Session context

2008-07-14 Thread Pierre Thibaudeau
2008/7/14 Gabriel Belingueres <[EMAIL PROTECTED]>: > That's strange. > Which S2 version are you using? > Struts 2.1.2

Re: [S2] newly-created Session context

2008-07-14 Thread Gabriel Belingueres
That's strange. Which S2 version are you using? 2008/7/14 Pierre Thibaudeau <[EMAIL PROTECTED]>: > Extra update. > > What makes this even more puzzling is that EL can find the object while OGNL > cannot. On the first request, > ${userLanguage} will display the correct value, but > will display n

Re: [S2] newly-created Session context

2008-07-14 Thread Pierre Thibaudeau
Extra update. What makes this even more puzzling is that EL can find the object while OGNL cannot. On the first request, ${userLanguage} will display the correct value, but will display nothing. On the second request, both expressions will display the same (and correct) value.

Re: [S2] newly-created Session context

2008-07-14 Thread Pierre Thibaudeau
2008/7/14 Gabriel Belingueres <[EMAIL PROTECTED]>: > Where in the interceptor chain do your custom interceptor execute? > The interceptor I mentioned in my earlier post is the first one: userLanguage.

Re: [S2] newly-created Session context

2008-07-14 Thread Gabriel Belingueres
Where in the interceptor chain do your custom interceptor execute? 2008/7/14 Pierre Thibaudeau <[EMAIL PROTECTED]>: > I have an interceptor that puts an object in the Session scope. > > The interceptor calls the following when retrieving the Session: > >public String intercept(ActionInvocation

[S2] newly-created Session context

2008-07-14 Thread Pierre Thibaudeau
I have an interceptor that puts an object in the Session scope. The interceptor calls the following when retrieving the Session: public String intercept(ActionInvocation invocation) throws Exception { ActionContext context = invocation.getInvocationContext(); HttpServletReques