SyntaxFix
Write A Post
Hire A Developer
Questions
Your response object is declared as a ServletResponse. To use the sendRedirect() method, you have to cast it to HttpServletResponse. This is an extended interface that adds methods related to the HTTP protocol.
ServletResponse
sendRedirect()
HttpServletResponse