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

Using Java with Oracle Web Applications

Java provides an alternative approach to Perl for enabling web communication with an Oracle database. In this section, we’ll provide a rough outline of using Java for web applications. Refer to Chapter 7 and Chapter 8 for much more detail about Java and its use with Oracle.

Java has its own version of an embedded HTML language, aptly called JavaServer Pages (JSP), and its .jsp pages are analogous to Microsoft’s .asp Active Server Pages. Using JSP, you add code to an HTML template page, rather than write a script that generates an HTML page, as is the case with Perl. The Java approach is similar to that of other embedded scripting languages such as PHP, which we’ll describe later in this chapter. In addition to accessing pure Java, a web page can also access precompiled Java Beans, which facilitates component-based code and interoperability and allows you to encapsulate functionality outside the page.

JavaServer Pages and Java Servlets

JavaServer Pages, like the various embedded scripting technologies discussed later in the chapter, allow you to embed code in your HTML pages. The code is preprocessed, and a complete HTML page is then returned by the web server.

Java servlets are bits of code which run on the server machine and are invoked by the web server. Java servlets are an alternative to JSPs. They operate in much the same way that other CGI programs do. But to make Java servlets work, you need a special module—namely, JServ for Apache, ...

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