struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From theron.kou...@webmd.net
Subject Hi Folks, 2 questions about Actions and their instance
Date Mon, 01 Apr 2002 16:46:50 GMT

In a book I have it says:

"It is also important to note that the Action class must be designed in a
thread-safe manner.   This is because there's only a single instance of an
Action class per action element in the action-mapping configuration file."

So here's my 2 question(s):

1.   I then assume that "perform()" is synchronized

2.  What about those cases where 2 different action mappings resort to the
same action class?
For example:

     <action
        path="/BillingAdd"
        type
="com.expressbill.actions.setup.billing.BillingActionPreloadForm"
          ...
     Rest of it snipped

and
     <action
        path="/BillingEdit"
        type
="com.expressbill.actions.setup.billing.BillingActionPreloadForm"
          ...

There are 2 different path elements but both refer to the same Action class
instance...    Does this mean 2 static instances of
BillingActionPreloadForm will exist or will only just 1 exist between the 2
different action mappings that link to the same class?

thanks,
Theron




--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message