Java Servlets
We describe how to implement java servlets. Based on
Jason Hunter,
Java Servlet Programming, Second Edition
, 2001.
servlets.com
.
Marty Hall and Larry Brown.
Core Servlets and JavaServer Pages
. Prentice Hall PTR. 2003.
1
Dynamic Content
1.1
Common Gateway Interface
1.2
FastCGI
1.3
mod_perl
1.4
Server Extensions
1.5
Embedding Code in HTML
1.6
Servlet Process
2
Why Servlets?
3
Basic HTTP Servlet
3.1
HelloWorld
3.2
Hello Forms
3.3
Handling POST
3.4
Handling HEAD
3.5
Web Applications
3.6
Deployment Descriptor
4
Threads in the Server
4.1
Simple Counter
4.1.1
Synchronicity Problems
4.2
Counting with Globals
4.3
Init and Destroy
4.4
In the Background
4.5
Avoid Sending Unchanged Data
5
Getting Information
5.1
Information About the Server
5.2
Context Init Parameters
5.3
What Machine?
5.4
Who Are You?
5.5
Getting at the Parameters
5.6
Getting the Path
5.7
What Did You Want?
5.8
Request Headers
5.9
Reading the Input Stream
6
Sending A Response
6.1
Persistent Connections
6.2
Buffering
6.3
Response Code
6.4
Setting Headers
6.5
Client Refresh
6.6
Handling Errors
6.7
Log Files
6.8
Exceptions
6.9
The Stop Button
7
Serving Dynamic Images
7.1
About Images
8
Serving Compressed Content
9
Session Tracking
9.1
User Authentication
9.2
Hidden Form Fields
9.3
URL Rewriting
9.4
Cookies
9.4.1
Cookies Example
9.5
Session Tracking API
9.5.1
Session Tracking Customizations
9.5.2
Session Tracking: Behind the Scenes
10
Security
10.1
HTTP Authentication
10.2
Form-Based Authentication
10.3
Custom Authentication
10.4
Custom Form-Based Authorization
10.5
Digital Certificates
10.6
Configuring SSL Security
10.7
Security Summary
11
Enterprise Servlets
11.1
Load Distribution
11.2
J2EE Integration
11.3
Referencing External Resources
12
Element Construction Set
13
JavaServer Pages
13.1
JSP Includes
13.2
Available Variables
13.3
Directives
13.3.1
Page Import
13.3.2
More Page Attributes
13.4
JSP:Include
13.4.1
Include
13.5
JavaBeans in JSP
13.5.1
StringBean Example
13.5.2
Setting Properties to Parameter Values
13.5.3
Sharing Beans
14
Model View Controller
14.1
MVC Example
14.2
Scope
14.3
Forwarding from JSP
14.4
Multiple Included JSP
15
JSP Expression Language
15.1
JSP Expressions Example
15.2
Beans as Values
16
Struts
16.1
Struts Flow
Entire Presentation with Notes
Copyright © 2009
José M. Vidal
.
All rights reserved.
04 February 2008, 04:00PM