Index Next |
iPlanet Web Server, Enterprise Edition Server-Side JavaScript Guide |
Contents
Preface
What's New in this Release
Support for JavaScript 1.4
What You Should Already Know
Changes to the JavaScript Application Manager
JavaScript Versions
Where to Find JavaScript Information
Upgrading from an Earlier Release
Backward Compatibility with Earlier Releases
Document Conventions
Chapter 1 JavaScript OverviewWhat Is JavaScript?
Core, Client-Side, and Server-Side JavaScript
Core JavaScript
JavaScript and Java
Client-Side JavaScript
Server-Side JavaScript
Debugging JavaScript
Visual JavaScript
JavaScript and the ECMA Specification
Relationship Between JavaScript and ECMA Versions
JavaScript Documentation vs. the ECMA Specification
JavaScript and ECMA Terminology
Part 1 Developing Server ApplicationsArchitecture of JavaScript Applications
System Requirements
Configuration Information
Enabling Server-Side JavaScript
Protecting the Application Manager
Setting Up for LiveConnect
Locating the Compiler
Chapter 3 Mechanics of Developing JavaScript ApplicationsBasic Steps in Building an Application
JavaScript Application Manager Overview
Creating Application Source Files
Compiling an Application
Installing a New Application
Application URLs
Controlling Access to an Application
Modifying an Application
Removing an Application
Starting, Stopping, and Restarting an Application
Running an Application
Debugging an Application
Using the Application Manager for Debugging
Deploying an Application
Using Debug URLs
Using the debug Function
Application Manager Details
Configuring Default Settings
Under the Hood
Part 2 Server-Side JavaScript Features
Chapter 4 Quick Start with the Sample ApplicationsAbout Server-Side JavaScript Sample Applications
Hello World
What Hello World Does
Hangman
Looking at the Source Script
Modifying Hello World
Looking at the Source Files
Debugging Hangman
Chapter 5 Basics of Server-Side JavaScriptWhat to Do Where
Overview of Runtime Processing
Server-Side Language Overview
Prototypes
Embedding JavaScript in HTML
Usage
Environment
Classes and Objects
The SERVER tag
Runtime Processing on the Server
Backquotes
When to Use Each Technique
Constructing the HTML Page
Generating HTML
Accessing CGI Variables
Flushing the Output Buffer
Changing to a New Client Request
Communicating Between Server and Client
Sending Values from Client to Server
Garbage Collection
Sending Values from Server to Client
Using Cookies
Error Handling in Server-Side JavaScript
Chapter 6 Session Management ServiceOverview of the Predefined Objects
The request Object
Properties
The client Object
Working with Image Maps
Properties
The project Object
Uniquely Referring to the client Object
Creating a Custom client Object
Properties
The server Object
Sharing the project Object
Properties
Techniques for Maintaining the client Object
Sharing the server Object
Comparing Client-Maintenance Techniques
Sharing Objects Safely with Locking
Client-Side Techniques
Server-Side Techniques
The Lifetime of the client Object
Manually Appending client Properties to URLs
Using Instances of Lock
Special Locks for project and server Objects
Avoiding Deadlock
Chapter 7 Other JavaScript FunctionalityMail Service
File System Service
Security Considerations
Working with External Libraries
Creating a File Object
Opening and Closing a File
Locking Files
Working with Files
Example
Guidelines for Writing Native Functions
Request and Response Manipulation
Identifying Library Files
Registering Native Functions
Using Native Functions in JavaScript
Request Header
Request Body
Response Header
Part 3 LiveWire Database Service
Chapter 8 Connecting to a DatabaseInteractions with Databases
Approaches to Connecting
Database Connection Pools
Single-Threaded and Multithreaded Databases
Guidelines
Managing Connection Pools
Sharing a Fixed Set of Connection Pools
Individual Database Connections
Sharing an Array of Connection Pools
Maintaining a Connection Across Requests
Waiting for a Connection
Retrieving an Idle Connection
Chapter 9 Working with a DatabaseInteracting with a Relational Database
Automatically Displaying Query Results
Executing Arbitrary SQL Statements
Manipulating Query Results with Cursors
Creating a Cursor
Managing Transactions
Displaying Record Values
Displaying Expressions and Aggregate Functions
Navigating with Cursors
Working with Columns
Changing Database Information
Using the Transaction-Control Methods
Working with Binary Data
Calling Stored Procedures
Exchanging Information
Steps for Using Stored Procedures
Registering the Stored Procedure
Defining a Prototype for a Stored Procedure
Executing the Stored Procedure
Working with Result Sets
Working with Return Values
Working with Output Parameters
Closing Stored Procedures
Informix and Sybase Exceptions
Chapter 10 Configuring Your DatabaseAbout LiveWire Database Service
Checking Your Database Configuration
Supported Database Clients and ODBC Drivers
DB2
Informix
Informix Remote
ODBC
Informix Local
ODBC Data Source Names (NT only)
Oracle
OpenLink ODBC Driver (Solaris only)
Visigenic ODBC Driver (Unix only)
Oracle Remote
Sybase
Oracle Local
Sybase Remote
Sybase Local
Sybase (Unix only)
Chapter 11 Data Type ConversionAbout Data Type Conversion
Working with Dates and Databases
Data-Type Conversion by Database
Chapter 12 Error Handling for LiveWireChecking for Error Conditions
Return Values
Number
Error Methods
Object
Boolean
String
Void
Status Codes
Chapter 13 Videoapp Sample ApplicationAbout the Videoapp Sample Application
Configuring Your Environment
Connecting to the Database and Recompiling
Running Videoapp
Creating the Database
Looking at the Source Files
Application Architecture
Modifying videoapp
Part 4 Working with LiveConnect
Chapter 14 LiveConnect OverviewWhat Is LiveConnect?
Glossary
Working with Wrappers
JavaScript to Java Communication
The Packages Object
Java to JavaScript Communication
Working with Java Arrays
Package and Class References
Arguments of Type char
Example of JavaScript Calling Java
Using the LiveConnect Classes
Data Type Conversions
Accessing Server-Side JavaScript
JavaScript to Java Conversions
Java to JavaScript Conversions
Index
Index Next
Copyright © 2000 Sun Microsystems, Inc. Some preexisting portions Copyright © 2000 Netscape Communications Corp. All rights reserved.
Last Updated August 09, 2000