Java 2: JSP and Servlets
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
Introduction to the Course
What is a JavaServer Page?
What is a Java Servlet?
The Container
Static and Dynamic Web Pages
The Container
Installation
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
The DTD
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
Packages
HTML and HTML Forms
Tables
Images
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
EJB
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
Logging
Files
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
Wrapup
Summary of the Course
About this Author