InterviewSolution
Saved Bookmarks
| 1. |
Why Actionservlet Is Singleton In Struts? |
|
Answer» In Struts FRAMEWORK, actionServlet acts as a CONTROLLER and all the requests made by users are controlled by this controller. ActionServlet is based onsingleton design patter as only one object needs to be CREATED for this controller CLASS. Multiple THREADS are created later for each user request. In Struts framework, actionServlet acts as a controller and all the requests made by users are controlled by this controller. ActionServlet is based onsingleton design patter as only one object needs to be created for this controller class. Multiple threads are created later for each user request. |
|