Threading Modal
In struts 1.2 action resources must be thread safe or synchronized, so actions are singleton and thread safe.
There should only be one instance of a class to handle all requests for that action. The singleton strategy places restrictions on what we can be done with struts 1.2. Actions and require extra care to develop.
In Struts 2.0, Actions objects are instantiated each request, so there are no thread-safety issues. In practice,
servlet containers generate many throw away objects per request, and
one more objet doesn’t impose a performance penalty or impact garbage collection.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.