Your servlet may receive a request, which the servlet cannot handle. In such cases, you want to redirect the request to another resource which may or may not be a part of the same web application. Which of the following options can be used to achieve this objective?
A. response.sendRedirect("some url");
B. RequestDispatcher rd = this.getServletContext().getRequestDispatcher("some url");rd.forward(request, response);
C. RequestDispatcher rd = request.getRequestDispatcher("some url");rd.forward(request, response);
D. request.sendRedirect("some url");