| |
GeekInterview.com > Interview Questions > J2EE > Struts
| Print | |
Question: Struts ActionServlet
Answer: why do we have only one ActionServlet in Struts? (Asked in Polaris Interview for Java Experienced people , on April 11, Chennai) |
| May 05, 2008 07:08:15 |
#2 |
| jaquline.phoenix |
Member Since: May 2008 Total Comments: 1 |
RE: Struts ActionServlet |
The ActionServlet is the Controller comonent that handle the client request and determines which Action class will process each received request. As in MVC2 architecture only one controller component should govern the flow of application -i mean when request is generated ,it should be served by action class and based on the outcome next view is selected (internally RequestDispatcher forward() method is used to choose next view). All business logic is executed by Action class ,so ActionServlet does not have such overhead that we need multiple instances .
What is ur take ? |
| |
Back To Question | |