Billy Ng wrote:
I don't think I used instance variables for referencing the address book entries, but the last guy always wins. The screen of the guy who first clicks on the next button will not display anything until the screen of the guy who clicks later finishes.
Billy Ng
----- Original Message ----- From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Billy Ng" <[EMAIL PROTECTED]> Sent: Thursday, July 03, 2003 6:42 PM Subject: Re: Is Action Instantiated Once?
On Thu, 3 Jul 2003, Billy Ng wrote:notice if 2 different users try to access the address books, last one who
Date: Thu, 3 Jul 2003 18:21:53 -0700 From: Billy Ng <[EMAIL PROTECTED]> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>, Billy Ng <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Is Action Instantiated Once?
Hi folks,
I have a address book page that has the previous and next buttons. I
clicks on the button always get what it should display. This sounds very
like they are both are using the same Action.
The address book action extends a ActionBase that extends Strut'sNo ... one instance only (just like servlets).
Action. Would anybody tell me if Strut will instantiates a new acton
everytime it is called?
Did I miss something on the configuration to make it thread dependent?
You're probably using instance variables in the Action class to store things relevant only to a particular request. If so, use local variables or request/session scope attributes instead.
Thanks!Craig
Billy Ng
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

