RE: [Semi OT] When does a servlet get a session?

2003-10-16 Thread Mainguy, Mike
That does not compute Your servlet HttpSession is associated with a set of requests that a specific user makes to a particular servlet. You will, at any point have many sessions for 1 instance of your servlet. I believe a session will be created when you call getSession() if one does not

RE: [Semi OT] When does a servlet get a session?

2003-10-16 Thread Jarnot Voytek Contr AU HQ/SC
If your servlet never services http requests, how is an http session useful? You can only access the session through a request - which you'll never have. Would the servlet context work? getServletContext().setAttribute(...) -- Voytek Jarnot Quantum materiae materietur marmota monax si marmota

RE: [Semi OT] When does a servlet get a session?

2003-10-16 Thread Chappell, Simon P
back and forth between the boxes. Simon -Original Message- From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 11:47 AM To: 'Struts Users Mailing List' Subject: RE: [Semi OT] When does a servlet get a session? If your servlet never services

Re: [Semi OT] When does a servlet get a session?

2003-10-16 Thread Craig R. McClanahan
Chappell, Simon P wrote: You're right that we'll never have an HTTP request, so I can see why you're confused as to why we'd want a session. The reason is for performance. We want to avoid the overhead of writing and reading a database. This is very short term information, but now that we're

RE: [Semi OT] When does a servlet get a session?

2003-10-16 Thread Chappell, Simon P
Craig, -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 4:19 PM To: Struts Users Mailing List Subject: Re: [Semi OT] When does a servlet get a session? Chappell, Simon P wrote: You're right that we'll never have an HTTP request, so

Re: [Semi OT] When does a servlet get a session?

2003-10-16 Thread Joseph Fifield
session. Joe - Original Message - From: Chappell, Simon P [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, October 16, 2003 5:31 PM Subject: RE: [Semi OT] When does a servlet get a session? Craig, -Original Message- From: Craig R. McClanahan

RE: [Semi OT] When does a servlet get a session?

2003-10-16 Thread Chappell, Simon P
To: Struts Users Mailing List Subject: Re: [Semi OT] When does a servlet get a session? I suppose you could fake the http requests yourself, couldn't you? When the DF1 request comes in, translate it to an http get or post request and send it off to your existing struts system. Translate the http

RE: [Semi OT] When does a servlet get a session?

2003-10-16 Thread Mahesh Joshi
-- Mahesh Joshi W- 408-543-7214 M- 408-829-8051 [EMAIL PROTECTED] -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 4:56 PM To: Struts Users Mailing List Subject: RE: [Semi OT] When does a servlet get a session? Funny you should suggest