Struts1 ActionForm are Singleton, If Yes, how different request attributes are stored

301 Views Asked by At

Struts1 ActionForm are Singleton, If Yes, how different request attributes are stored in Struts Application

1

There are 1 best solutions below

0
On BEST ANSWER

No, ActionForms are not Singleton. There is a component (RequestProcessor) which parses your request, instantiates a new ActionForm, populates it as best as it is able with the request information and then passes it to the Action object (and yes, Actions can be thought of as Singleton objects)