• Post Reply Bookmark Topic Watch Topic
  • New Topic

startAsyn() method in servlet specification 3.0  RSS feed

 
Suresh KumarPandey
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi I am just confused in one of the code given in servlet specification 3.0

1.REQUEST to /url/A
FORWARD to /url/B

getRequestDispatcher("/url/B").forward(request,response)) ;
AsyncContext ac =request.startAsync();
ac.dispatch() <- This dispatches the request to original url /url/A as the startAsync is called on the original request only and the first request was for /url/A.


2. REQUEST to /url/A
FORWARD to /url/B

getRequestDispatcher("/url/B").forward(request,response)) ;
AsyncContext ac =request.startAsync(;

ac.dispatch() <- This dispatches the request to /url/B . can anybody please explain whether this will be not called on the original request and how deos it work.


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!