<IMG SRC="fla_train.gif" WIDTH=200 HEIGHT=400 BORDER=0> <IMG SRC="fla_fill.gif" WIDTH=200 HEIGHT=400 BORDER=0> <IMG SRC="fla_fill.gif" WIDTH=200 HEIGHT=400 BORDER=0> <IMG SRC="fla_fill.gif" WIDTH=200 HEIGHT=400 BORDER=0>
Click Here for the Outline in PDF Version
Course Outline: Java Servlet Programming

(2 Days) with Hands-On Labs
    Learning Objectives

  • Understand the relationship between Clients, Servers, and Servlets
  • Understand how and when a servlet is loaded, and how and when it is executed
  • Understand the way a servlet can extend the services of a server
  • Understand the request/response paradigm as it relates to servlets
  • Write servlets that process HTML form data
  • Write servlets that are thread safe
  • Write servlets that can communicate with one another
  • Understand how a servlet can generate HTML, return errors, redirect requests, and write data to the server log
  • Understand how servlets maintain state and session information


This course description should be used to determine whether the course is appropriate for you based on your current skill and technical training needs. Technical information is provided on the intended audience, course prerequisites, and covered topics. Course content, prices, and availability are subject to change without notice.


Course Audience

This course is designed for people who will be coding and/or maintaining application programs using JAVA, primarily application developers.

Course Description

This 2-day course covers Java servlet programming. Prior to Java servlets, dynamic content from your Web server was accomplished by CGI and proprietary APIs. This course details a third way - the Java Servlet Development Kit (JSDK). The JSDK lets you extend a Java-enabled Web server with servlets, server-side components written in Java. These components are platform and protocol independent. Servlets can be used to replace CGI, process forms, interact with the database or as a middle tier in a three-tiered architecture.

Prerequisites

Experience with fundamental Java programming.

TOPICS COVERED IN LECTURE & LAB

Introduction

  • Servlets
  • The HTTP protocol
  • The request/response paradigm
  • HTTP methods
  • Servlet Classes
  • A Simple Servlet
  • Preparing the Servlet
  • Creating your Web Application
  • Starting the Server
  • Running DateServlet
  • Servlet Engines
  • Processing HTML form data with a servlet
  • The Servlet Life Cycle
Handling Request Information

  • Request Information
  • HttpServletRequest
  • Processing POST Data
  • Initialization Parameters
  • JSWDK Initialization Parameters
  • Server Information
  • Extra Path Information
  • What Was Requested?
Generating HTTP

  • Servlet Responses
  • Status Codes
  • Writers and Streams
  • Content Type
  • Keep-Alive Connections
  • Automatic HTML generation
  • Additional Response headers
  • Server Redirection
  • Client Pull
  • Error Handling
  • Send Error
  • Logging Errors
Threads And Servlets

  • Thread
  • Synchronization
  • Locks
  • Terminology
  • wait() and notify()
  • Threads and Servlets
  • Single Thread Model
Session Management

  • Cookies
  • Sessions
  • The HTTP Protocol Problem
  • Session IDs
  • Session Management using the Servlet API
  • Invalidating Sessions
Servlet Communication

  • ServletContext
  • Saving the State of a Servlet
  • Deprecated Methods
  • Using Property Lists
  • Using Attributes
  • Using a Shared Object
  • Servlet Chaining
Appendix A. An HMTL Primer

  • Preview
  • Basics
  • Formatting Basics
  • Links
  • Forms
Appendix B. Java Server Pages

  • Java Server Pages
  • Syntax of JSP
  • JSP Bean Example
Appendix C. JDBC and Servlets

  • Client/Server Architectures
  • JDBC
  • A JDBC Query
  • A Servlet with JDBC
Policy