Index Next |
iPlanet Application Server 6.5 Programmer's Guide (C++) |
Contents
Preface
Using the Documentation
Chapter 1 Introduction to Applications
About This Guide
What You Should Already Know
How This Guide Is Organized
Naming Conventions
Documentation Conventions
Related Information
About iPlanet Application Server Applications
Chapter 2 Designing Applications
Applications as Part of a Three-Tiered Environment
Introduction to the iPlanet Application Server Foundation Class Library
Example Three-Tiered Application
Introduction to Interfaces and COM
What Is COM?
Benefits of COM
How to Use COM
What Is an Interface?
Benefits of Using Interfaces
Parts of an iPlanet Application Server Application
Chapter 3 Application Development Techniques
AppLogic Objects
Questions to Ask Before You Start
HTML Pages
Templates
Query Files
Other Code
Designing the Components of the Application
User Interface Design
Combining or Splitting Application Components
Designing an AppLogic Base Class
Designing a Login AppLogic Object
Designing Local, Distributed, and Global AppLogic Objects
Your Development Environment
Chapter 4 Writing Server-Side Application Code
Accessing Libraries
Using Interfaces
How to Reference Objects Through Interfaces
Instantiating Objects
How to Implement Interfaces
Getting Information About Interfaces
Declaring and Defining Methods
Reference Counting
Working with Data
Managing Memory Buffers
Exporting Classes
Using Spin Locks
Using Critical Sections
Working with Strings
Working with IGXValList Objects
Working with GUIDs
Working with Binary Large Objects (BLOBs)
Working with Dates and Times
Using Events
The Application Events API
Using Cookies
Creating a New Application Event
Using an Application Event
Sending a Cookie
Referencing a Cookie
What Is An AppLogic Object?
Chapter 5 Working with Databases
Introduction to Writing AppLogic Objects
Parts of a Typical AppLogic Object
Steps for Writing AppLogic Objects
Header File
Performing the Main Task in an AppLogic Object
Source File
Calling an AppLogic From Code
Requests, AppLogic Names, and GUIDs
Passing Parameters to AppLogic Objects
Passing Parameters To AppLogic From An HTML Page
Returning Results From an AppLogic Object
Passing Parameters to AppLogic From Code
Types of Results
Caching AppLogic Results to Improve Performance
Using the Return Value of Execute( )
Returning HTML Results
Streaming Results
Returning Output Parameters in an IGXValList Object
How to Cache Results
Using Cache Criteria
How To Specify Caching Criteria
How to Change Caching Criteria
How to Remove Cached Results
How to Stop Caching
Introduction to Working with Databases
Chapter 6 Querying a Database
Supported Databases
About Database Connections
Summary of Database Interaction
Opening a Database Connection
Getting Information About Columns or Fields
Closing a Database Connection
Inserting Records in a Database
Updating Records in a Database
Deleting Records From a Database
Using Pass-Through Database Commands
Using Prepared Database Commands
Using Parameters in Database Commands
Parts of Syntax in Which Parameters are Not Allowed
Using Stored Procedures
Using Parameters in a Flat Query
Using Parameters in an INSERT, UPDATE, or DELETE Command
Getting the Return Value of a Stored Function
Using Triggers
Creating a Stored Procedure
Running a Stored Procedure
Supported Stored Procedure Operations
Sample Stored Procedure
Creating a Trigger
Using Sequences
Disabling and Enabling Triggers
Deleting a Trigger
Creating a New Sequence
Managing Database Transactions
Using An Existing Sequence
Deleting a Sequence
Setting Up a Transaction
Committing a Transaction
Rolling Back aTransaction
Introduction to Queries
Chapter 7 Working with Templates
Types of Queries
Using Flat Queries
Writing Flat Queries
Using Hierarchical Queries
Running Flat Queries
Getting Data From a Flat Query's Result Set
Writing Hierarchical Queries
Buffering Result Sets From Queries
Running Hierarchical Queries
Getting Data From a Hierarchical Query's Result Set
Creating Database Reports
Types of Reports
Working with Query Files
Creating Tabular Reports
Creating Grouped Reports
Running Reports
Sample Reports
Writing a Flat Query in a Query File
Running Asynchronous Queries
Running a Flat Query in a Query File
Writing a Hierarchical Query In a Query File
Running a Hierarchical Query in a Query File
What are Templates?
Chapter 8 Managing Session and State Information
What is a GXML Template?
How to Write a GXML Template
What is an HTML Template?
Converting HTML Templates to GXML Templates
How to Write an HTML Template
Calling an AppLogic Object From an HTML Page
GX Markup Tag Syntax
TextBlock
Using a Template Map
TagAttributes
Using the Cell Attribute in a GX Markup Tag
Using the Tile Attribute in a GX Markup Tag
Using the Replace Attribute in a GX Markup Tag
Using the Include Attribute in a GX Markup Tag
Creating a User-Defined Tag
Using Your Own Template Map Class for Special Processing
Constructing a Hierarchical Result Set with GXTemplateDataBasic
Improving Performance When Using GXTemplateDataBasic
Using Conditionals in an HTML Template
Example HTML Template
Example GXML Template
What is a Session?
Chapter 9 Writing Secure Applications
Why Use Sessions?
Starting a Session
How Sessions Work
Setting the Session's Visibility
Using an Existing Session
Removing a Session and Its Related Data
Example AppLogic Using Sessions
Using Custom Sessions
Assigning Your Own Session IDs
Viewing the Number of Active Sessions
Using the State Layer
Adding a Node to a State Tree
Storing Data in an Existing Node in a State Tree
Introduction to iPlanet Application Server Security
Chapter 10 Integrating Applications with Email
About User Authentication
Providing Application Security in Code
About Role Authentication
About Access Control List Authorization
Secure Sessions
Starting a Secured Session
Writing a Login AppLogic Object
Checking a User's Authorization
Stopping a Secured Session
Prompting for ID and Password
Validating Input to AppLogic Objects
Writing Login Attempts to the Event Log
Secure Caching
Introduction to Email in iPlanet Application Server Applications
Chapter 11 Running and Debugging Applications
Security in Email
Receiving Email
Sending Email
Getting Ready to Run an Application
Chapter 12 Sample Code Walkthrough
Compiling Applications
Debugging with Third-Party Tools
Placing Files on the iPlanet Application Server
Placing Files on the Web Server (HTML Client)
Registering Code And Security Information
Saving and Restoring Registry Configurations
Debugging with MSVC (Version 4.2 or Higher)
About the Online Bank Sample Application
Appendix A Implementation Tips
AppLogic Objects in Online Bank
The Online Bank Base AppLogic
// required calls to GXDllLockInc() and GXDllLockDec().
Detailed Walk Through of Funds Transfer Functionality
CustomerMenu.html
Online Bank Registration File
OBShowTransferPage AppLogic
Transfer.html
OBTransfer AppLogic
Other Code
System Configuration Tips
Glossary
Memory Management Tips
Database and Query Tips
HTML Tips
Session Tips
Tips for Calling an Applogic From Another Applogic
Streaming Tips
Index
Index Next
Copyright © 2002 Sun Microsystems, Inc. All rights reserved.
Last Updated March 05, 2002