The JavaTM Tutorial

| Start of Tutorial > Start of Trail | Search Feedback Form

Trail: Servlets

## Lesson: Servlet Communication

> To satisfy client requests, servlets sometimes need to access network resources: other servlets, HTML pages, objects shared among servlets at the same server, and so on.

> If your servlet requires a network resource, such as a servlet running in a different server, one can make an HTTP request of the other. This lesson, however, shows you what to do if your servlet requires a resource available from its own server:

> - Using Other Server Resources such as other servlets, HTML pages, and so on, with a `RequestDispatcher` object.
> - Sharing Resources Among Servlets, where the resource is an object in the Java programming language, made available as an attribute.

| Start of Tutorial > Start of Trail | Search Feedback Form

Copyright 1995-2001 Sun Microsystems, Inc. All rights reserved.