Which of the following is performed by ActionServlet and RequestProcessor?

1.Receiving the HttpServletRequest
2.Populating JavaBean from the request parameters
3.Displaying response on the web page Issues
4.Content type issues handling
5.Provide extension points

Options
- 1,2,4,5
- 2,3,4,5
- 3, 4, 5
- 1 and 4


CORRECT ANSWER : 1,2,4,5

Discussion Board
ActionServlet and RequestProcessor

Servlet 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.

Out of the following options 1,2,4,5 matches the process that gets carried by ActionServlet and RequestProcessor.

Rohit Sharma 10-1-2014 04:14 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