Dispatching to Other Resources

The Servlet specification defines a mechanism for all servlet containers to facilitate the dispatch of requests from one Web component to other Web components such as JSP, servlets, or HTML pages. This can be achieved either directly or indirectly. In the indirect scenario, a Web component such as a servlet returns a page to the browser. This page contains an embedded URL (META REFRESH tag) that points to a different Web component. The browser then redirects the client to the other Web component. In a direct dispatch, a servlet might forward the request to another servlet or JSP for further processing, or might include the output of another servlet or JSP in the final output back to the requestor.

The Request Dispatcher ...

Get BEA WebLogic Server™ 8.1 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.