--- Billy Ng <[EMAIL PROTECTED]> wrote:
> Hi folks,
> 
> I have a address book page that has the previous and next buttons.  I
> notice if 2 different users try to access the address books, last one
> who 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's
> Action.  Would anybody tell me if Strut will instantiates a new acton
> everytime it is called?  

Actions are Singletons.  They are only instantiated once and reused for
the life of the app.  This is why your Actions must be thread safe and not
use instance variables to hold state.

David


> Did I miss something on the configuration to
> make it thread dependent?
> 
> Thanks!
> 
> Billy Ng


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to