Skip to Main Content
Oracle and Open Source
book

Oracle and Open Source

by Andy Duncan, Sean Hull
April 2001
Intermediate to advanced content levelIntermediate to advanced
432 pages
13h 2m
English
O'Reilly Media, Inc.
Content preview from Oracle and Open Source

Java and the Web

To round off our discussion of Java, especially those aspects of special interest to Oracle developers using Java on the Web, we’ll take a look at servlets, JavaServer Pages, and servlet runners in the following sections.

Java Servlets

A Java servlet is nothing more than a Java program that sits on a web server delivering web content, doing much the same thing that a Perl CGI program might do. In fact, Java servlets are essentially just “Java CGI” programs. The name “servlet” itself is a sort of pun on “applet.” If it weren’t such a tongue-twister, applets might have been called “clientlets” (try saying that after a glass of Chardonnay).

Java servlets are becoming hugely important in the world of Oracle web applications, and in servlets Java has found itself a valuable niche, especially within the realm of the Apache JServ web server covered later in this chapter. Servlets have some advantages over traditional CGI scripting techniques, in particular:

They are highly portable.

Java servlets written on your Windows NT machine can be transferred later to your Solaris or Linux machines without any code changes.

They avoid the areas where Java is weak.

For example, they don’t require the AWT (Abstract Windowing Toolkit).

They benefit from the strengths of the core Java APIs.

These strengths include JDBC, multi-threadability, networking, and so on.

They are remarkably efficient.

Servlets usually remain as object instances in memory until the web server is shut down. If they ...

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

Oracle Procure-to-Pay Guide

Oracle Procure-to-Pay Guide

Melanie Cameron
Expert Oracle Exadata

Expert Oracle Exadata

Kerry Osborne, Randy Johnson, Tanel Pöder
Expert PL/SQL Practices for Oracle Developers and DBAs

Expert PL/SQL Practices for Oracle Developers and DBAs

John Beresniewicz, Adrian Billington, Martin Büchi, Melanie Caffrey, Ron Crisco, Lewis Cunningham, Dominic Delmolino, Sue Harper, Torben Holm, Connor McDonald, Arup Nanda, Stephan Petit, Michael Rosenblum, Robyn Sands, Riyaj Shamsudeen
Achieving Extreme Performance with Oracle Exadata

Achieving Extreme Performance with Oracle Exadata

Rick Greenwald, Robert Stackowiak, Maqsood Alam, Mans Bhuller

Publisher Resources

ISBN: 0596000189Catalog PageErrata