Can we dispatch request to an HTML inside servlet

JAVAGeek picture JAVAGeek · Jun 27, 2012 · Viewed 10.1k times · Source

Is this possible?

RequestDispatcher rd = request.getRequestDispatcher("index.html");
rd.forward(request, response);

Answer

Pramod Kumar picture Pramod Kumar · Jun 27, 2012

Yes. you can dispatch a request to a HTML page.