which of the following API would you use?

When using Servlet asynchronous API if you want to dispatch the request back to a particular url -“/url” within the same Servlet Context which of the following API
would you use?

When using Servlet asynchronous API if you want to dispatch the request back to a particular url -“/url” within the same Servlet Context which of the following API
would you use?

A.
ASyncContext.dispatch();

B.
AsyncContext.dispatch(“/url”);

C.
AsyncContext.dispatch(servletContext, “/url”);

D.
AsyncContext.start(runnable);

E.
RequestDispatcher.fotward(“/url”);

F.
RequestDispatcher.forward(servletContext, “/url”);

G.
RequestDispatcher.include(“/url”);

Explanation:
http://blogs.oracle.com/enterprisetechtips/entry/asynchronous_support_in_servlet_3 (Topic: AsyncContext Class, third paragraph)



Leave a Reply 1

Your email address will not be published. Required fields are marked *