To redirect the response to another resource, the __________ method is used in servlets.
- forward()
- forwardResponse()
- redirect()
- sendRedirect()
The sendRedirect() method is used to redirect the response to another resource in servlets.
Loading...
Related Quiz
- In MVC architecture, how does a servlet interact with the model to process business logic?
- The strategy of storing only the differences from the main data set in cache is known as __________ caching.
- What is the primary purpose of using filters in web applications?
- An ORM framework's ability to automatically generate SQL queries from object-oriented code is known as _________.
- A servlet needs to send a file to the client with a specific filename. Which response header should be set and by which method?