What is the limitation of creating ActionServlet instances per web application?

Options
- Two
- Three
- Unlimited
- One


CORRECT ANSWER : One

Discussion Board
ActionServlet Instance

Only one instace of ActionServlet can run per web application that is the restriction from the application side. ActionServlet provides the "controller" in the Model-View-Controller (MVC) design pattern for web applications that is commonly known as "Model 2".

"Model 2" application is created in the following manner:

1) The user interface is created with server pages, which doesn't contain any business logic. These pages represent the "view" component of an MVC architecture.
2) Forms and hyperlinks in the user interface that require business logic to be executed will be submitted to a request URI that is mapped to this servlet.
3) There can be one instance of this servlet class, which receives and processes all requests that change the state of a user's interaction with the application. The servlet delegates the handling of a request to a RequestProcessor object. This component represents the "controller" component of an MVC architecture.
4) The RequestProcessor selects and invokes an Action class to perform the requested business logic, or delegates the response to another resource.

Rohit Sharma 10-1-2014 04:01 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement