Skip to Main Content
Java Servlet Programming
book

Java Servlet Programming

by Jason Hunter
November 1998
Intermediate to advanced content levelIntermediate to advanced
526 pages
14h 38m
English
O'Reilly Media, Inc.
Content preview from Java Servlet Programming

Recap

To summarize, there are three sorts of interservlet communication:

  • Servlet manipulation, where one servlet directly invokes the methods of another. These servlets can get references to other servlets using getServletNames() and getServlet(String name), but they must be careful not to use stale references to servlets that have been reloaded.

  • Servlet reuse, where one servlet uses another’s abilities for its own purposes. In some cases, this requires forcing a servlet load using a manual HTTP request. These servlets also have to be careful not to use stale references.

  • Servlet collaboration, where cooperating servlets share information. Servlets can share information using the system properties list (saving strings or objects), using a shared object (a singleton found in the server’s classpath), or using inheritance.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Servlet Programming, 2nd Edition

Java Servlet Programming, 2nd Edition

Jason Hunter, William Crawford

Publisher Resources

ISBN: 156592391XSupplemental ContentCatalog PageErrata