请求转发:
访问一次服务器,同样的request和response
request.getRequestDispatcher(path).forward(request, response);
重定向:
访问两次服务器,新的request和response
response.sendRedirect(location);
标签:post forward response oca request rect 转发 patch 访问
请求转发:
访问一次服务器,同样的request和response
request.getRequestDispatcher(path).forward(request, response);
重定向:
访问两次服务器,新的request和response
response.sendRedirect(location);
标签:post forward response oca request rect 转发 patch 访问
原文地址:https://www.cnblogs.com/zhengsonglin/p/8119604.html