request.getRequestDispatcher(path).forward(request,response)是请求转发,前后页面共享一个request!
response.sendRedirect()是重新定向 前后页面不是一个request。
request.getRequestDispatcher(path).forward(request,response)在实现在线支付接口请求的时候要用到。