How does redirection differ from request dispatching in servlets?
- Redirection happens on the client side
- Redirection is done by forward()
- Request dispatching involves changing the URL on the client side
- Request dispatching is faster
Redirection in servlets is done using the sendRedirect() method, while request dispatching is done using the forward() method.
Loading...
Related Quiz
- The __________ pattern used in MVC frameworks centralizes request handling in a single servlet.
- For which purpose is the ServletRequestListener used in servlets?
- How does a servlet typically report an error back to the client?
- For form submission with file upload, the __________ content type and the _______ method are used.
- Which XML element is used to declare a filter in a web application's deployment descriptor?