To redirect a client to another resource, the HTTP servlet uses the __________ method.
- forward()
- redirect()
- sendRedirect()
- transfer()
The sendRedirect() method in an HTTP servlet is used to redirect the client to another resource, typically specified by a URL.
Loading...
Related Quiz
- When a servlet context is initialized or destroyed, the ___________ interface is used.
- What role does the JDBC API play in connection pooling?
- When a connection is closed in a connection pool, what actually happens to that connection?
- In HTTP servlets, which method is commonly used for handling form submissions?
-
In the context of filter configuration, what is the purpose of the
tag in web.xml?