Overview of HTTP Servlets

 

What Is a Servlet?

What You Can Do with Servlets

Overview of Servlet Development

Servlets and J2EE

HTTP Servlet API Reference

 


Introduction to Programming

 

Writing a Simple HTTP Servlet

Advanced Features

Complete HelloWorldServlet Example

 


Programming Tasks

 

Initializing a Servlet


Initializing a Servlet when WebLogic Server Starts
Overriding the init() Method

 

Providing an HTTP Response

Retrieving Client Input


Methods for Using the HTTP Request
Example: Retrieving Input by Using Query Parameters
Securing Client Input in Servlets
Using a WebLogic Server Utility Method

 

Session Tracking from a Servlet


A History of Session Tracking
Tracking a Session with an HttpSession Object
Lifetime of a Session
How Session Tracking Works
Detecting the Start of a Session
Setting and Getting Session Name/Value Attributes
Logging Out and Ending a Session
Using session.invalidate() for a Single Web Application
Implementing Single Sign-On for Multiple Applications
Exempting a Web Application for Single Sign-on
Configuring Session Tracking
Using URL Rewriting Instead of Cookies
URL Rewriting and Wireless Access Protocol (WAP)
Making Sessions Persistent
Scenarios to Avoid When Using Sessions
Use Serializable Attribute Values
Configuring Session Persistence

 

Using Cookies in a Servlet


Setting Cookies in an HTTP Servlet
Retrieving Cookies in an HTTP Servlet
Using Cookies That Are Transmitted by Both HTTP and HTTPS
Application Security and Cookies

 

Response Caching


Initialization Parameters

 

Using WebLogic Services from an HTTP Servlet

Accessing Databases


Connecting to a Database Using a JDBC Connection Pool
Using a Connection Pool in a Servlet
Connecting to a Database Using a DataSource Object
Using a DataSource in a Servlet
Connecting Directly to a Database Using a JDBC Driver

 

Threading Issues in HTTP Servlets


SingleThreadModel
Shared Resources

 

Dispatching Requests to Another Resource


Forwarding a Request
Including a Request

 

Best Practice When Subclassing ServletResponseWrapper

 


Administration and Configuration

 

Overview of WebLogic HTTP Servlet Administration


Using Deployment Descriptors to Configure and Deploy Servlets
web.xml (Web Application Deployment Descriptor)
weblogic.xml (Weblogic-Specific Deployment Descriptor)
WebLogic Server Administration Console

 

Directory Structure for Web Applications

Referencing a Servlet in a Web Application


URL Pattern Matching

 

Servlet Security


Authentication
Authorization (Security Constraints)

 

Servlet Development Tips

Clustering Servlets

Skip footer navigation  Back to Top Previous Next