Re: Session object null

2010-05-19 Thread Dale Newfield
On 5/18/10 6:55 PM, Ken wrote: The problem has been resolved with what you said... Glad to hear it. However I'll fill you as I am new and looking for best practise. I can offer my advice, but I don't have the hubris to claim that's necessarily what others would agree to as best practice. :

Re: Session object null

2010-05-18 Thread Ken
Thank you, The problem has been resolved with what you said... However I'll fill you as I am new and looking for best practise. On Tue, 2010-05-18 at 15:25 -0400, Dale Newfield wrote: > On 5/18/10 2:17 PM, Ken wrote: > > Let me see if I understand this correctly. Since the action object has > >

Re: Session object null

2010-05-18 Thread Dale Newfield
On 5/18/10 2:17 PM, Ken wrote: Let me see if I understand this correctly. Since the action object has not been created yet, and this is in a different thread... I can not get the correct context... Although the session objects _is_ someplace... It will also not work in the constructor even if t

Re: Session object null

2010-05-18 Thread Ken
Thank you Dale, Let me see if I understand this correctly. Since the action object has not been created yet, and this is in a different thread... I can not get the correct context... Although the session objects _is_ someplace... It will also not work in the constructor even if the class is Sess

Re: Session object null

2010-05-18 Thread Ken
Thank you Dale, Let me see if I understand this correctly. Since the action object has not been created yet, and this is in a different thread... I can not get the correct context... Although the session objects _is_ someplace... It will also not work in the constructor even if the class is Sess

Re: Session object null

2010-05-18 Thread Dale Newfield
On 5/18/10 12:35 PM, Ken wrote: What I don't understand is I have an object who's constructor needs session data... So it calls: Map session = ActionContext.getContext().getSession(); But session is always null... http://struts.apache.org/2.1.8.1/struts2-core/apidocs/com/opensymphony/xwork2/Ac

Session object null

2010-05-18 Thread Ken
Hello Struts2 Forum, I've used the session object to get and set parameters. Where the set is done in an action() and the get is done in a jsp via OGNL. What I don't understand is I have an object who's constructor needs session data... So it calls: Map session = ActionContext.getContext().getSe