Documentation Home
> Oracle iPlanet Web Server 7.0.9 Developer's Guide to Java Web Applications
Oracle iPlanet Web Server 7.0.9 Developer's Guide to Java Web Applications
Book Information
Index
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
R
S
T
U
V
W
Preface
Chapter 1 Web Server Technologies Overview
Technologies and Enhancements in Web Server 7.0
Supported Standards, Protocols, and Technologies
Servlet 2.5 Support
JSP 2.1 Support
JSTL 1.2
Java Web Services Developer Pack 2.0 Support
JNDI Naming
JDBC Connection Pooling
Using JNDI to Access the jdbc-resource Within a Web Application
Tools Support
Lifecycle Listeners and Modules
Session Replication
API Changes from Web Server 6.1 to Web Server 7.0
Chapter 2 Web Applications Overview
Java Web Applications
Developing and Deploying Web Applications
Creating Web Applications
About Securing Web Applications
About Deploying Applications
About Virtual Servers
About Default Web Applications
Servlet Result Caching
JSP Cache Tags
Database Connection Pooling
To Configure a Simple Connection Pool
Sample Applications in Web Server
Sample Directories
Java Samples
Building the Samples
Documentation for the Samples
Chapter 3 Web Services Overview
Introducing Web Services
Technologies Supported in Web Server 7.0
Java Web Services Developer Pack 2.0 Technologies
Message Security (JSR-196)
Creating Web Services
Web Services Tools
To Create Web Services from a Java Source
To Create Web Services from Java Classes
To Create Web Services from a WSDL file
Securing Web Services
Understanding Message Security in the Web Server
Assigning Message Security Roles
System Administrator Tasks
Application Deployer Tasks
Application Developer Tasks
Security Tokens and Security Mechanisms
Username Tokens
Digital Signatures
Encryption
Message Protection Policies
Securing a Web Service
Configuring Application-Specific Web Services Security
Admin Console Tasks for Message Security
To Create a Message Security Provider
Enabling Providers for Message Security
To Delete a Message Security Provider
Enabling Message Security Clients
Deploying Web Services
Testing Web Services
To Invoke a Web Service Client
Web Services Samples
Chapter 4 Developing Servlets
About Servlets
Servlet Output
Caching Servlet Results
Features of Caching
Default Cache Configuration
CacheHelper Interface
Caching Example
CacheKeyGenerator Interface
Maximizing Servlet Performance
Servlet Internationalization Issues
Servlet Request
Servlet Response
Migrating Legacy Servlets
JSP file by Extension
Servlet by Extension of Servlet by Directory
Registering Servlets
Chapter 5 Developing JavaServer Pages
Introducing JSPs
Compiling JSPs Using the Command-Line Compiler
Package Names Generated by the JSP Compiler
Other JSP Configuration Parameters
Debugging JSPs
JSP Tag Libraries and Standard Portable Tags
JSP Cache Tags
cache Tag
Attributes
Example
flush Tag
Attributes
Examples
JSP Search Tags
searchForm Tag
Attributes
Usage
CollElem Tag
Attributes
Usage
collection Tag
Attributes
Usage
colIItem Tag
Attributes
Usage
queryBox Tag
Attributes
Usage
submitButton Tag
Attributes
Usage
formAction Tag
Attributes
Usage
formSubmission Tag
Attributes
Usage
formActionMsg Tag
Attributes
Usage
search Tag
Attributes
Usage
resultIteration Tag
Attributes
Item Tag
Attributes
resultStat Tag
Attributes
resultNav Tag
Attributes
JSP Internationalization Issues
JSP Character Encoding
Chapter 6 Session Managers
Introducing Sessions
Sessions and Cookies
Sessions and URL Rewriting
Sessions and Security
Using Sessions
Creating or Accessing a Session
Examining Session Properties
Binding Data to a Session
Binding Notification with HttpSessionBindingListener
Invalidating a Session
Invalidating a Session Manually
Setting a Session Timeout
Session Managers
memory Option
Enabling memory
Manager Properties for Memory
file Session Manager
Enabling the file Session Manager
Manager Properties for file
IWS60 Session Manager
Enabling IWS60
Manager Properties for IWS60
Source Code for IWS60
MMap Session Manager (UNIX Only)
Enabling MMap
Manager Properties for MMap
Chapter 7 Developing Lifecycle Listeners
Server Lifecycle Events
The LifecycleListener Interface
The LifecycleEvent Class
The Server Lifecycle Event Context
Deploying a Lifecycle Module
Considerations for Lifecycle Modules
Sample Lifecycle Configuration
Chapter 8 Securing Web Applications
Supported Security Features
Common Security Terminology
Authentication
Authorization
Realms
Java EE Application Role Mapping
Security Features Specific to the Web Server
Web Server Security Model
ACL-Based Authentication and Authorization
Java EE/Servlet-Based Authentication and Authorization
Web Application and URL Authorizations
Container Security
Programmatic Security
Declarative Security
User Authentication by Servlets
HTTP Basic Authentication
SSL Mutual Authentication
Form-Based Login
User Authentication for Single Sign-On
User Authorization by Servlets
Defining Roles
Defining Servlet Authorization Constraints
Fetching the Client Certificate
Using Web Services Message Security
Configuring the Web Server for Message Security
Actions of Request and Response Policy Configurations
To Configure Other Security Facilities
Security Enhancements to server.xml
Security Enhancements to sun-web.xml
webservice-endpoint Element
message-security-binding Element
message-security Element
message Element
Attributes of request-protection Element
response-protection Element
java-method Element
method-params Element
message-layer Entity
Using Message Security Provider in an Application
Programmatic Login
Precautions
Granting Programmatic Login Permission
ProgrammaticLogin Class
Enabling the Java Security Manager
The server.policy File
Default Permissions
Changing Permissions for an Application
Related Information
Chapter 9 Deploying Web Applications
Web Application Structure
Deployment Tools
Using Oracle Java Studio Enterprise 8.1
Using NetBeans IDE 5.5
To Install NetBeans IDE 5.5
To Register Web Server 7.0 in the NetBeans IDE 5.5
Deploying Web Applications
Creating Web Deployment Descriptors
Deploying Web Applications
To Deploy Using Admin Console
Deploying Using wadm
Deploying Using JSR 88
Auto-Deploying Web Applications
Auto-Deploying a Web Application
Removing an Auto-Deployed Web Application
Managing Web Applications
To Enable or Disable a Deployed Web Application
Enabling Web Applications
Enabling and Disabling Using the Admin Console
To Remove a Deployed Web Application
Dynamic Reloading of Web Applications
To Set Dynamic Reloading of Web Application
To Load a New Servlet or Reload a Deployment Descriptor
Classloaders
Chapter 10 Debugging Web Applications
Enabling Debugging
To Enable Debugging Through Admin Console
To Enable Debugging by Editing server.xml
JPDA Options
Using Developer Tools for Debugging
To Debug using NetBeans 5.5
Debugging JSPs
Generating a Stack Trace for Debugging
Displaying Stack Trace and Compiler Errors
To Display Stack Trace and Compiler Error
Using Logging for Debugging
To Change the Log Settings
Using Profiling for Debugging
Using the HPROF Profiler
To Install the HPROF Profiler
Using the Optimizeit Profiler
Appendix A Deployment Descriptor Files
About Deployment Descriptor Files
Migration Issues
Extension to Standard Descriptors
sun-web.xml
default-web.xml
Web Server Descriptors
The sun-web-app_2_5-0.dtd File
Subelements
Data
Attributes
Elements in the default-web.xml File
Using the Eclipse JDT Java Compiler
To Configure Web Server to Use the Eclipse JDT Java Compiler
Elements in the sun-web.xml File
General Elements
sun-web-app Element
Subelements
Attributes
Properties
context-root Element
Subelements
Attributes
property Element
Subelement
Attributes
description Element
Subelements
Attributes
Security Elements
security-role-mapping Element
Subelements
Attributes
servlet Element
Subelements
Attributes
servlet-name Element
Subelements
Attributes
role-name Element
Subelements
Attributes
principal-name Element
Subelements
Attributes
group-name Element
Subelements
Attributes
Session Elements
session-config Element
Subelements
Attributes
session-manager Element
Subelements
Attribute
manager-properties Element
Subelement
Attributes
Properties
store-properties Element
Subelement
Attributes
Properties
session-properties Element
Subelements
Attributes
Properties
cookie-properties Element
Subelement
Attributes
Properties
Reference Elements
resource-env-ref Element
Subelements
Attributes
resource-env-ref-name Element
Subelements
Attributes
service-ref Element
service-ref-name Element
Subelements
Attributes
port-info Element
Subelements
service-endpoint-interface Element
Subelements
Attributes
wsdl-port Element
Subelements
namespaceURI Element
Subelements
Attributes
localpart Element
Subelements
Attributes
stub-property Element
Subelements
call-property Element
wsdl-override Element
Subelements
Attributes
service-impl-class Element
Subelements
Attributes
service-qname Element
Subelements
resource-ref Element
Subelements
Attributes
res-ref-name Element
Subelements
Attributes
default-resource-principal Element
Subelements
Attributes
name Element
Subelements
Attributes
password Element
Subelements
Attributes
jndi-name Element
Subelements
Attributes
Caching Elements
cache Element
Subelements
Attributes
Properties
Cache Class Names
cache-helper Element
Subelement
Attributes
default-helper
Subelement
Attributes
Property
cache-mapping Element
Subelements
Attributes
url-pattern Element
Subelements
Attributes
cache-helper-ref Element
Subelements
Attributes
timeout Element
Subelements
Attributes
refresh-field Element
Subelements
Attributes
http-method Element
Subelements
Attributes
key-field Element
Subelements
Attributes
constraint-field Element
Subelement
Attributes
value Element
Subelements
Attributes
Classloader Element
class-loader Element
Subelements
Attributes
JSP Element
jsp-config Element
Subelement
Attributes
Properties
Internationalization Elements
parameter-encoding Element
Attributes
Subelements
Attributes
locale-charset-info Element
Subelements
Attributes
locale-charset-map Element
Attributes
message-destination Element
Subelements
message-destination-name Element
Subelements
webservice-description Element
Subelements
Attributes
webservice-description-name Element
Subelements
Attributes
wsdl-publish-location Element
Subelements
Attributes
Alphabetical List of sun-web.xml Elements
Sample Web Application XML Files
Sample web.xml File
Sample sun-web.xml File
© 2010, Oracle Corporation and/or its affiliates