问题
Is this possible?
RequestDispatcher rd = request.getRequestDispatcher("index.html");
rd.forward(request, response);
回答1:
Yes. you can dispatch a request to a HTML page.
回答2:
Yes it will work. You can get the request dispatcher for static/dynamic pages.
来源:https://stackoverflow.com/questions/11223556/can-we-dispatch-request-to-an-html-inside-servlet