|
Servlet Chaining
|
|
|
Exercise 4:5:Showing the implementation of Servlet Chaining.
|
Exercise 4:5:Showing the implementation of Servlet Chaining.
|
|
|
|
|
Running ServletChain.
|
|
|
|
JDBC in Servlets
|
|
|
|
Overview
|
|
|
|
JDBC Drivers
|
|
|
Basic Flow followed by all JDBC Applications
|
Establishing the connection
|
|
Close the statement and connection
|
|
|
|
|
JDBC Example
|
|
|
Exercise 5:1: Simple Servlet connecting to the Database
|
Exercise 5:1: Simple Servlet connecting to the Database
|
|
|
|
Using ResultSetMetaData interface
|
Using ResultSetMetaData interface
|
|
|
|
Exercise 5:2:Using ResultSetMetaData interface
|
Exercise 5:2:Using ResultSetMetaData interface
|
|
|
|
|
Database Updating
|
|
|
Exercise 5:3:Using execute() and getResultSet( ) methods
|
Exercise 5:3:Using execute() and getResultSet( ) methods
|
|
|
|
Exercise 5:4:Using execute() and getUpdateCount( ) methods
|
Exercise 5:4:Using execute() and getUpdateCount( ) methods
|
|
|
|
|
Reusing Database Objects
|
|
|
|
Connection Reuse
|
|
|
Exercise 5:5: Connection Reuse
|
Exercise 5:5: Connection Reuse
|
|
|
|
Transactions
|
Using Transactions with JDBC
|
|
Exercise 5:6: Using Transactions with JDBC in servlets
|
|
|
|
Optimization of Transaction Process
|
Optimization of Transaction Process
|
|
|
|
|
Connection Pooling
|
|
|
Exercise 5:7: Servlet using ConnectionPooling
|
Exercise 5:7: Servlet using ConnectionPooling
|
|
|
|
|
Session Tracking
|
|
|
|
Overview
|
|
|
|
User Authorization
|
|
|
|
Hidden Form Fields
|
|
|
|
URL Rewriting
|
|
|
Exercise 6:1: URL Rewriting
|
Exercise 6:1: URL Rewriting
|
|
|
|
Cookies
|
Reading and Specifying Cookie Attributes
|
|
Placing Cookies in Response Headers
|
|
Reading Cookies from Client
|
|
|
|
Session Tracking API
|
HttpSession object associated with the current request
|
|
Information Associated with a Session.
|
|
Associating Information with a Session
|
|
Exercise 6:3: Session Tracking
|
|
Session Swapping and Persistence
|
|
|
|
Interservlet Communication
|
Interservlet Communication
|
|
|
|
|
Introduction
|
|
|
|
Servlet Manipulation
|
|
|
|
Servlet Reuse
|
|
|
|
Servlet Collaboration
|
|
|
Collaboration through the System Properties List
|
Collaboration through the System Properties List
|
|
|
|
Collaboration using a shared object
|
Collaboration using a shared object
|
|
|
|
Collaboration through inheritance
|
Collaboration through inheritance
|
|
|
|
Exercise 7:1: Saving state of servlets
|
Exercise 7:1: Saving state of servlets
|
|
|
|
Applet-Servlet Communication
|
Applet-Servlet Communication
|
|
|
|
Exercise 7:2: Applet Communicating to the Servlet.
|
Exercise 7:2: Applet Communicating to the Servlet.
|
|
|
|
|
Page Compilation
|
|
|
|
The Servlet Tag
|
|
|
Exercise 7:3: Page Compilation
|
Exercise 7:3: Page Compilation
|
|
|
|
|
Exercises and Solutions
|
|
|
|
Exercises
|
|
|
|
Solutions
|