request.getRequestDispatcher("/index.jsp").forward()
和
final AsyncContext actx = request.startAsync();
actx.dispatch("/index.jsp");
请问,这两种有什么区别?
request.getRequestDispatcher("/index.jsp").forward()
和
final AsyncContext actx = request.startAsync();
actx.dispatch("/index.jsp");
请问,这两种有什么区别?
request的转发就不说了
AsyncContext的dispatch,自己看吧
http://book.2cto.com/201301/14823.html