RequestDispatcher.forward() vs HttpServletResponse.sendRedirect()

前端 未结 9 815
萌比男神i
萌比男神i 2020-11-22 03:18

What is the conceptual difference between forward() and sendRedirect()?

9条回答
  •  灰色年华
    2020-11-22 03:45

    The main important difference between the forward() and sendRedirect() method is that in case of forward(), redirect happens at server end and not visible to client, but in case of sendRedirect(), redirection happens at client end and it's visible to client.

提交回复
热议问题