Skip Headers

Table of Contents Image Oracle9i Application Server Application Developer's Guide
Release 2 (9.0.2)

Part Number A95101-01
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Index
Index

Go to next page

Contents

Title and Copyright Information

Send Us Your Comments

Preface

1 Creating Applications: Overview

1.1 Overview of Oracle9iAS
1.1.1 J2EE
1.1.2 Enterprise Portals
1.1.3 Wireless Support
1.2 Development Steps
1.3 Development Tools
1.4 What This Guide Covers and Does Not Cover

2 The Sample Application

2.1 Requirements for the Sample Application
2.2 Screenshots of the Sample Application
2.3 Database Schema

3 Application Design

3.1 Design Goals
3.2 Chaining Pages
3.3 Using Model-View-Controller (MVC)
3.3.1 MVC Diagram
3.3.2 Controller
3.3.3 Model (Business Logic)
3.3.4 View

4 Implementing Business Logic

4.1 Objects Needed by the Application
4.2 Other Options Considered But Not Taken
4.2.1 Conditions that Favor Using EJBs
4.2.2 Conditions that Favor Using Servlets
4.2.3 Conditions that Favor Using Normal Java Objects
4.3 Controller
4.4 Action Handlers
4.5 Employee Data (Entity Bean)
4.5.1 Home Interface
4.5.2 Remote Interface
4.5.3 Persistence
4.5.4 Load Method
4.5.5 EmployeeModel Class
4.5.6 Data Access Object for Employee Bean
4.5.6.1 Interface
4.5.6.2 Implementation
4.5.6.3 Load Method
4.6 Benefit Data (Stateless Session Bean)
4.6.1 Home Interface
4.6.2 Remote Interface
4.6.3 Benefit Details
4.7 EmployeeManager (Stateless Session Bean)
4.7.1 Home Interface
4.7.2 Remote Interface
4.8 Utility Classes

5 Creating Presentation Pages

5.1 HTML Files
5.2 Servlets
5.2.1 Automatic Compilation of Servlets
5.2.2 Example
5.2.3 Example: Calling an EJB
5.3 JSPs
5.3.1 Tag Libraries
5.3.2 Minimal Coding in JSPs
5.3.3 Multiple Client Types

6 Interaction Between Clients and Business Logic Objects

6.1 Client Interface to Business Tier Objects
6.2 Query Employee Operation
6.2.1 High-Level Sequence
6.2.2 Querying the Database and Retrieving Data
6.2.3 findByPrimaryKey Method
6.2.4 Getting Benefit Data
6.3 Add and Remove Benefit Operations
6.4 Add Benefit Operation
6.4.1 High-Level Sequence of Events
6.4.2 Getting Benefits That the User Can Add
6.4.3 Updating the Database
6.5 Removing Benefit Operation
6.5.1 High-Level Sequence of Events
6.5.2 Getting Benefits That the User Can Remove
6.5.3 Updating the Database

7 Supporting Wireless Clients

7.1 Changes You Need To Make To Your Application
7.2 Presentation Data for Wireless Clients
7.2.1 Screens for the Wireless Application
7.2.2 Differences Between the Wireless and the Browser Application
7.3 Deciding Where to Put the Presentation Data for Wireless Clients
7.3.1 Determining the Origin of a Request
7.3.2 Combining Presentation Data in the Same JSP File
7.3.3 Separating Presentation Data into Separate Files
7.4 Header Information in JSP Files for Wireless Clients
7.4.1 Setting the XML Type
7.4.2 Setting the Content Type
7.5 Operation Details
7.5.1 Query Operation
7.5.2 queryEmployeeWireless.jsp
7.5.3 Add and Remove Benefits Operations
7.6 Accessing the Application
7.6.1 Using a Simulator
7.6.2 Using an Actual Wireless Client

8 Adding Web Cache to the Application

8.1 Choosing Which Pages to Cache
8.2 Analyzing the Application
8.2.1 Specifying the Pages to Cache
8.2.2 Invalidating Pages
8.2.3 Setting up Triggers on the Underlying Tables

9 Running in a Portal Framework

9.1 How Portal Processes Requests
9.2 Screenshots of the Application in a Portal
9.3 Changes You Need to Make to the Application
9.3.1 Set up a Provider and a Portal Page
9.3.2 Edit the Application
9.4 Update the Links Between Pages Within a Portlet
9.4.1 The parameterizeLink Method
9.4.2 The next_page Parameter
9.4.3 Linking to the ID Page
9.5 Use include instead of the forward Method
9.6 Protect Parameter Names
9.6.1 Retrieving Values
9.6.2 Setting Values
9.7 Make All Paths Absolute
9.7.1 <a> and <link> Tags
9.7.2 <form> Tag

10 Enhancements to the Application

10.1 Adding Security Features
10.2 Publishing the Application as a Web Service

A Configuration Files

A.1 server.xml
A.2 default-web-site.xml
A.3 data-sources.xml

Go to next page
Oracle
Copyright © 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Index
Index