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”);



Leave a Reply 5

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


sc0r

sc0r

Only C is correct in this question because the additional parameter (ServletContext) is not necessary here. Remember the ask is “the same Servlet Context”.