Which method of the RequestDispatcher interface is used to forward a request from a servlet to another resource?
- dispatch()
- forward()
- forwardRequest()
- redirect()
The forward() method of the RequestDispatcher interface is used to forward a request from a servlet to another resource within the same server.
Loading...
Related Quiz
- How can a servlet efficiently handle large file uploads without running out of memory?
- Which method is used to get a reference to the ServletContext?
- Describe a scenario where it's more efficient to use local variables instead of instance variables in a servlet.
- To maintain a separation of concerns, servlets in MVC should not directly manipulate the __________.
- What is the significance of the path attribute in a cookie?