Usually frames are involved when something like this happens. My involvement with Tomcat is through an IDE I work on, so I haven't done a lot of real world webapp development. Thus, I don't know why the frames get different sessions. I would expect them to get the same session as the main page. When I get a chance, I'll try to do some experimentation and see if there is something that can be done.
Cheers, Larry > -----Original Message----- > From: Rong Li [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 16, 2002 6:28 PM > To: Tomcat Users List > Subject: Re: Urgent: works on TC 3.2.2, but not on TC 3.3 !!! > > > Larry Isaacs wrote: > > >For Tomcat 3.3, it's not clear if you are getting one instance > >in two separate sessions or two instances being stored in > >the same session. Can you supply a more complete test case > >so I can attempt to duplicate the problem? > > > >Note that Tomcat 3.3 is noticably faster than Tomcat 3.2.x. > >If your web application has the potential to have competing > >requests step on each other's session attributes, you are more > >likely to actually see it happen in Tomcat 3.3 than Tomcat > >3.2.2. There isn't enough info here to say if this case > >is an example of this, or something else. > > > >Cheers, > >Larry > > > >>-----Original Message----- > >>From: Rong Li [mailto:[EMAIL PROTECTED]] > >>Sent: Wednesday, January 16, 2002 5:44 PM > >>To: [EMAIL PROTECTED] > >>Subject: Urgent: works on TC 3.2.2, but not on TC 3.3 !!! > >> > >> > >>I have two jsp pages with the same statement: > >><jsp:useBean id="chatBean" scope="session" > >>class="com.cellit.cpchatbean.CPChatBean"/> > >> > >>On TC 3.2.2, only one instance was created and successfully shared. > >>However, on TC 3.3, two instances were created, and cannot > be shared. > >> > >>Anybody knows what happened? How to resolve that? > >> > >>Thanks, > >>Rong Li > >> > >> > >> > >>-- > >>To unsubscribe: > <mailto:[EMAIL PROTECTED]> > >>For additional commands: > <mailto:[EMAIL PROTECTED]> > >>Troubles with the list: > <mailto:[EMAIL PROTECTED]> > >> > > > >-- > >To unsubscribe: <mailto:[EMAIL PROTECTED]> > >For additional commands: <mailto:[EMAIL PROTECTED]> > >Troubles with the list: <mailto:[EMAIL PROTECTED]> > > > Hi Larry, > > You are right. I made a mistake. I tried to print out the session Ids > for those two jsp pages. They did have different Ids. So it > means that > the two jsp pages have been associated with two different > sessions. But > how? It works great under TC 3.2.2. > > Here is some details. > > I put ChatReceive.jsp and ChatSend.jsp in two frames within > ChatMain.jsp. > In ChatReceive.jsp and ChatSend.jsp, each includes the same statement: > > <jsp:useBean id="chatBean" scope="session" > class="com.cellit.cpchatbean.CPChatBean"/> > > Basically, I want those two pages to share the same bean > instance which > opens a socket connection with Chat Server. > > I also tried to use session.set(get)Attribute() to work around the > problem. It still does not work. > > Thanx, > Rong Li > > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>