Tutorials and Online Training Videos

Java 2: JSP and Servlets Tutorial

JavaServer Pages and Java Servlets are programs executed by a Web server to produce Web pages which are sent to a client Web browser in response to a request from the browser. This course by Arthur Griffith not only demonstrates how to write them, it also shows how to deploy them to a server and make them run in response to a request. Both Servlets and JavaServer pages can read from files, including the use of SQL to read from a relational database, and use the information to construct a Web page. To begin learning today, simply click on one of the Java 2: JSP and Servlets lessons.


Introduction to the Course
What is a JavaServer Page?
What is a Java Servlet?

The Container

Static and Dynamic Web Pages
The Container
The Environment
Starting the Server

Basic Servlets

Writing and Compiling a Servlet
Creating an Application
Two Ways to Deploy
Yet Another Deploy
Servlet Mapping
An Interception Servlet

Basic JSPs

Writing a JSP
JSP to Java Translation
JSP Elements
Imports/Globals/Methods pt. 1
Imports/Globals/Methods pt. 2
Tracking an Error
The Custom Error Page

XML and Ant

Introduction to XML
Parameters and Error Pages
Download and Install Ant
Tasks and Properties
Basic War Building
Compiling and Deploying
A Jar File pt. 1
A Jar File pt. 2
JSPs and HTML Files

HTML and HTML Forms

Style Sheets
Coding a Form
Text Boxes and Text Areas
Check Boxes and Radio Buttons
Pull Down and Scrolled List

JSP Tags

A JSP Tag Handler
A Tag with a Body
A Tag with Attributes pt. 1
A Tag with Attributes pt. 2
Before and After the Body
Tag Libraries
A Few Handy JSTL Tags
Parameters and Looping
Looping forEach
Import and Choose
Running Timestamp

Cookies and Session Tracking

The Purpose of a Cookie
Setting and Getting Servlet Cookies
Setting and Getting JSP Cookies
URL Encoding in a JSP
Explicit URL Encoding
Session Timeout

Errors and Exceptions

Declaring Error Handling in web.xml
An Error Sending Servlet
Servlet Throwing an Exception
JSP Errors and Exceptions


A Servlet to Setup a Download
A More General Download Servlet
Viewing a Resource File
Request Headers
An Applet in a JSP
An Applet with Parameters in a JSP
An Applet in a Servlet
JavaScript in a JSP
JavaScript in a Servlet
Thread Safe Code


Summary of the Course
About this Author

Related Books on Java 2: JSP and Servlets

Save $80 on the
by Motorola with Verizon Wireless service for less than from Verizon Wireless directly.
Save $80 on DROID BIONIC
More Cell Phone Discounts