What is the primary use of RequestDispatcher in servlets?
- Forwarding requests
- Initializing servlets
- Processing GET requests
- Sending redirect responses
The primary use of RequestDispatcher in servlets is for forwarding requests to another resource (servlet, JSP, or HTML) on the server.
Loading...
Related Quiz
- Why is it important to close resources like database connections in servlets?
- To read uploaded files in a servlet, the __________ method is commonly used.
- Which XML element is used to declare a filter in a web application's deployment descriptor?
- What is a common challenge when scaling stateful applications?
- What is URL rewriting in the context of session tracking?