The difference between forwarding and redirecting in jsp:

Redirection realizes page jump through the sendRedirect(String location) method of the response object. It is executed on the client side. The address bar of the client browser will change. The most important thing is that the user's information cannot be brought to the page after the jump. .

 

Forwarding is realized by the forward(request,response) method of the RequestDispatcher object of the request. It works on the server side. The address bar of the client browser will not change. It is the transfer of the internal control of the server. The user's information can be brought to the submission. the following page.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325000047&siteId=291194637