How does the sendRedirect() method communicate the new URL to the client's browser?
- Via HTTP headers
- Via HTTP status code
- Via URL parameters
- Via server-side cookies
The sendRedirect() method communicates the new URL to the client's browser by sending an HTTP redirect response with the new URL in the HTTP headers.
Loading...
Related Quiz
- A web application requires users to log in for access. Which servlet feature should be implemented for this requirement?
- In a chat application using WebSockets, when a message is sent to a closed connection, what happens and how should it be handled?
- What is the difference in the URL seen by the client when using forward() vs sendRedirect() in servlets?
- Filters are configured in the __________ file of a web application.
- To manage memory efficiently during file upload, using a __________ approach is recommended.