Re: session is null!

2007-05-26 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > (5) Or trying to access the session in the Action > constructor. > > I am not sure if this was my mistake. I would like > to hear form some one. As I've alluded to twice now, I believe it *is* your mistake, at least if you're using SessionAware. d. _

Re: session is null!

2007-05-26 Thread Mansour
You missed one. Paul Benedict wrote: Most people who have this problem do so because of four things: (1) they are switching protocols from HTTP/HTTPS (2) they are switching contexts (3) they are switching domains (4) they are invalidating the session. (5) Or trying to access the session in t

Re: session is null!

2007-05-26 Thread Paul Benedict
Most people who have this problem do so because of four things: (1) they are switching protocols from HTTP/HTTPS (2) they are switching contexts (3) they are switching domains (4) they are invalidating the session. -- Paul On 5/26/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Mansour <[EMAIL

Re: session is null!

2007-05-26 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > Thank you Dave for replying. I think I need a lot of > help on this. The problem is even if I implement > SessionAware, using chaining doesn't work as the > setSession method is never called. Are you talking about the *second* action's setSession()? Are

Re: session is null!

2007-05-26 Thread Mansour
Thank you Dave for replying. I think I need a lot of help on this. The problem is even if I implement SessionAware, using chaining doesn't work as the setSession method is never called. Dave Newton wrote: --- Mansour <[EMAIL PROTECTED]> wrote: Still this didn't help. i am still getting nu

Re: session is null!

2007-05-26 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > Still this didn't help. i am still getting nulls for > the session in Action 2. CAn some one point me to a > link where I can get What I need ? At this point I have no idea what state your code is in. You shouldn't need to deal with ActionContext at all if

Re: session is null!

2007-05-26 Thread Mansour
OK, Here's what I was to get so far. I need to store and retrieve EntityManagers in the session Map. I am using action chaining. Action 1 can get the session using ActionContext.getContext.getSession(). However, action 2 always returns null. To make things easier for myself I created a Top Level

Re: session is null!

2007-05-26 Thread Mansour
I followed the dox and created an Action that implements SessionAware. I set a break point and found the setSession is never called. Can someone explain please? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: session is null!

2007-05-26 Thread Mansour
I found out what I was looking for: http://struts.apache.org/2.0.6/docs/how-do-we-get-access-to-the-session.html but still wondering why would ActionContext.getContext().getSession() returns a session the first time it's called then it returns null? Mansour wrote: I am trying to setup a value

session is null!

2007-05-26 Thread Mansour
I am trying to setup a value in my session. IT works the first time I call the action, and breaks the second time. I get null pointer exception. This code is from my constructor. Map session = ActionContext.getContext().getSession(); if (session.containsKey("InvoiceManager"))