The method __________ is used when the servlet needs to redirect the client to a different domain.
- forwardResponse
- redirectToDomain
- sendForward
- sendRedirect
The method sendRedirect is used when the servlet needs to redirect the client to a different domain.
Loading...
Related Quiz
- A cookie's security can be enhanced by setting the _________ flag, which prevents its access via JavaScript.
- When no connections are available in the pool, the request is put into a __________ until a connection becomes available.
- Which Java statement is used for handling SQL exceptions?
- In a resource-constrained environment, what servlet coding practice would you recommend to optimize memory usage?
- What is the impact of calling request.getParameter() after request.getInputStream() or request.getReader() in a servlet?