InterviewSolution
| 1. |
What is a Request Processor and a Request Dispatcher in context with Java? |
|
Answer» Request Processor: Request processor is a class given by the struts framework that is responsible for handling requests and responses. If we want to change our controller, we can do so in this class. Since version 7.16, the Request processor has been able to perform asynchronous requests in a dedicated thread pool. The majority of RequestProcessor use cases begin with building your own RequestProcessor instance (which by itself is quite LIGHTWEIGHT). Request DISPATCHER: Request Dispatcher is an interface that allows requests to be dispatched from one page to another within an application (page may be a servlet file, JSP, etc.). The RequestDispatcher interface offers the following two approaches:
|
|