Re: Retrieve certain session data inside a servlet

2006-06-06 Thread Carlos Alonso Vega
: Friday, June 02, 2006 9:11 PM Subject: Re: Retrieve certain session data inside a servlet On Fri, Jun 02, 2006 at 11:15:03AM +0200, Carlos Alonso Vega wrote: Bob, Thanks for the reply. My problem is that the session info I need is not of the session that makes the request. I need to check

Re: Retrieve certain session data inside a servlet

2006-06-03 Thread Martin Gainty
without making a copy. Thank you. - Original Message - From: Eric Haszlakiewicz [EMAIL PROTECTED] To: Carlos Alonso Vega [EMAIL PROTECTED] Cc: Tomcat Users List users@tomcat.apache.org Sent: Friday, June 02, 2006 9:11 PM Subject: Re: Retrieve certain session data inside a servlet

Retrieve certain session data inside a servlet

2006-06-02 Thread Carlos Alonso Vega
I am trying to obtain data about a session inside a servlet, the code seems to be simple as localSession = Ctx.getManager().findSession(sessionId); My problem is that I do not know how to obtain the Ctx object from a request (HttpServletRequest) Thanks in advance

Re: Retrieve certain session data inside a servlet

2006-06-02 Thread Bob Hall
--- Carlos Alonso Vega [EMAIL PROTECTED] wrote: I am trying to obtain data about a session inside a servlet, the code seems to be simple as localSession = Ctx.getManager().findSession(sessionId); My problem is that I do not know how to obtain the Ctx object from a request

Re: Retrieve certain session data inside a servlet

2006-06-02 Thread Carlos Alonso Vega
Bob, Thanks for the reply. My problem is that the session info I need is not of the session that makes the request. I need to check other sessions in the same context. I can use the request because it is in the same context, so the manager is the same. This servlet is called internally

Re: Retrieve certain session data inside a servlet

2006-06-02 Thread Bob Hall
Carlos, The javadoc indicates that the methods are deprecated, but it looks like you could use: HttpSession mySess = request.getSession(); // getSessionContext() is deprecated HttpSessionContext sessCtx = mySess.getSessionContext(); // getSession(String) is deprecated HttpSession otherSess =

Re: Retrieve certain session data inside a servlet

2006-06-02 Thread Eric Haszlakiewicz
On Fri, Jun 02, 2006 at 11:15:03AM +0200, Carlos Alonso Vega wrote: Bob, Thanks for the reply. My problem is that the session info I need is not of the session that makes the request. I need to check other sessions in the same context. I can use the request because it is in the same

Re: Retrieve certain session data inside a servlet

2006-06-02 Thread Frank W. Zammetti
I may be wrong about this, but I thought that it was expressly forbidden by the servlet spec to be able to get arbitrary sessions. That is, even if you store the session ID in some table, you wouldn't be able to get any session other than that associated with the current request. Now, that