Search Interview Questions | Click here and help us by providing the answer. Click Correct / Improve and please let us know. |
|
|||
|
| ||||
| - Interview Questions and Answers for 'Struts 2' - 2 question(s) found - Order By Newest | ||||
| Ans. Struts 1 actions are singleton. So all threads operates on the single action object and hence makes it thread unsafe. Struts 2 actions are not singleton and a new action object copy is created each time a new action request is made and hence its thread safe. | ||||
| Ans. No, because they are not longer required. As action classes are no more singleton in Struts 2, user inputs can be captured in action itself. | ||||