Title: RE: Problems with Session Handling
ISTR that lifespan was a JSP 0.92 thing and scope is JSP 1.x whcih maybe your problem.
 
Derek,
 
what are you doing in JSP to handle the sessions - you say that you thought JSP would handle sessions for you - what exactly do you mean?
 
In JSP you can associate a bean with a session - in 1.0 you use the
<jsp:useBean id="fred" class="com.foo" scope="session" /> syntax.
 
Any request that comes in from the same session will 'see' this instance of the bean - requests from different sessions will all see different bean instances, each with their own data,
 
Kevin
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of krk661s
Sent: 03 August 1999 21:41
To: [EMAIL PROTECTED]
Subject: Re: Problems with Session Handling

This is how we defined our user Account bean -- it inherits from a UserAccount class. It will contain user ssn, name, etc for multiple users. When we had the code scope=session, the bean would be empty when we called another jsp and tried to reference the bean. When we changed scope=session to lifespan=session, we had no problems referencing the bean. I'm not sure if this has anything to do with your problem. <%@ page language="java" import="CUFBusiness.*" %><%@ errorpage="error.html" %>caucho.com also has many jsp examples that may be helpful. This is where we found the lifespan tag. >===== Original Message From Derek Conniffe <[EMAIL PROTECTED]>===== > > > > > >
No, I originally >I thought the problem was because the computers (with the browsers) I was >testing with are all behind a proxy server sharing the same IP address (the >Apache/J_Serv/Gnu-jsp server is outsite the firewall on its own IP >address).  I have since tested with other computers within our class C >subnet - all their own IP's.
>
 
>
I am using as >little JSP code as possible - All the major code is in beans used by the >JSP pages - in all cases scope="session".
>
 
>
All browsers >viewing the JSP pages seem to share the one session. 
>
 
>
I'm not doing any >kind of work to handle sessions - I kinda hoped that JSP would do that for >me.
>
 
>
size=2>Thanks,
>
 
>
Derek >:)
>
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px"> >
size=2>-----Original Message-----
From: Mike McElligott [ href="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED] ]
Sent: > Tuesday, August 03, 1999 5:42 PM
To: 'Derek Conniffe'; href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]
Su bject: > RE: Problems with Session Handling

>

Derek,

>

Are you using the same browser?  Multiple instances of > the same browser are in the same session..  Different browsers, however, > would not be..

>

-----Original Message-----
From: Derek > Conniffe [ href="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]]
size=2>Sent: Tuesday, August 03, 1999 9:18 AM
To: href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED] size=2>Subject: Problems with Session Handling

>


>

Hi,

>

I started using JSP & Beans with the development www > server (with the JSP
development kit).  Beans were > used in the pages with scope="session".  I had
size=2>a problem at that time with all browers sharing the same bean > information.

>

I have now moved to Apache, JSERV & Gnu-jsp & have the > same problem.

>

Is it up to me & the Bean coding to handle sessions?  > I have simply been
hoping that the whole JSP thing > magically handles multiple [unique]
instances of beans > with unique internal private variables.

>

Thanks for any help on this!

>

Derek :)

>

size=2>======================================================================= ====
size=2>To unsubscribe, send email to href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED] and include in > the body
of the message "signoff > JSP-INTEREST".  For general help, send email to
size=2>[EMAIL PROTECTED] and > include in the body of the message >"help".

Kara R. Krogh ==========================================================================To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to