Oracle
1Z0-899 · Question #46
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?
The correct answer is B. AsyncContext.dispatch("/url"). AsyncContext Class, third paragraph)
Asynchronous Processing
Question
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?
Options
- AASyncContext.dispatch();
- BAsyncContext.dispatch("/url");
- CAsyncContext.dispatch(servletContext, "/url");
- DAsyncContext.start(runnable);
- ERequestDispatcher.fotward("/url");
- FRequestDispatcher.forward(servletContext, "/url");
- GRequestDispatcher.include("/url");
How the community answered
(27 responses)- B78% (21)
- C4% (1)
- E4% (1)
- F4% (1)
- G11% (3)
Explanation
AsyncContext Class, third paragraph)
Topics
#AsyncContext#dispatch API#async servlet#URL dispatch
Community Discussion
No community discussion yet for this question.