On Thu, 25 Oct 2001, Greg Lehane wrote:

>   If I declare variables outside of the perform() method in my action
> classes, does this mean that multiple simultaneous users will overwrite
> each others variables? i.e. does struts spawn a new action object for
> every user session, or does it keep the same object and just call the
> perform() method each time a user calls the action?

no, there is only one instance of each action class, so yes, concurrent
calls will overwrite each other's variables.  consider it the same as a
servlet in the way you code it.

hth
dim

Reply via email to