Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

startAsyn() method in servlet specification 3.0

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
I'm so happy! And I wish to make this tiny ad happy too:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic