Hi,
If you post the code it may be easy to help you out. Also check for instance
variables (not necessarily the static variables). They can cause such
trouble in a multithreaded environment.
regds,
Gokul
----- Original Message -----
From: "John Bateman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 23, 2000 7:10 PM
Subject: [SERVLET-INTEREST] Problems with servlets 'sharing' information.
> Hi
>
> I have a page that shows a listing of hockey players picked in a pool. I
> pass an id of the "GM" and it gives me a list of my players.
>
> The problem, we found accidentally, is if there are two concurrent
requests
> to the servlet "DraftServlet" then the page show the 'gm' request but with
> the listing of players from BOTH gm's clicked on.
>
> My architecture is as follows
> request.jsp calls a servlet "DraftServlet" which create an Arraylist of
> players and then adds them to the request object (as an ArrayList) via a
> request dispatcher; this information is then sent to another jsp
> showList.jsp
>
> So if I do a test with me at home clicking on GM ("1001") and another
person
> at their home clicking on gm ("1004") I may see a page that says it's
> displaying GM 1001 but it will show me the players from 1001 and 1004.
>
> I have no static methods and no static variables so shouldn't the object
(in
> the ArrayList) be unique copies with no information being shared (I.E.
> through static or class variables/methods)?
>
> Does this have anything to do the context manager?
>
> Thanks.
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> John Bateman
> Cyber World Group Inc.
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html