TheCoursewareShop.com

Need a sample?

To download free sample courseware, click here


Search for Courseware
We have hundreds of courses on offer, from individual courses to packages.
Click here to seach for courses.

Want to buy a selection of courses?
If you need a selection of courses, make us an offer we can't refuse! 80% of offers for multiple courses are accepted.
Click to make an offer.

Java Servlets Courseware

Our Java Servlets Courseware

The Courseware Shop offers Java Servlets courseware, as follows:

Java Servlets Courseware Two Day Course

Objectives

  • Server Side Programming
  • Servlet Basics
  • Advanced Servlet Features like Session Tracking and Interservlet Communication.

Aimed at

This course is essential for those who are interested
in extending the functionality of a web server e.g. to generate dynamic content. It is also helpful for CGI programmers, Server-Side JavaScript programmers and Java applet programmers.

Experience Needed

Prior Knowledge of:

  • Core Java Programming
  • Applets & HTML Programming

Courseware Content

1. Introduction to Servlets

Overview
Comparing Servlets with other Technologies
Current Applications
Future Applications
Advantages of Java Servlets

2.   HTML Form Loading
Overview
The Form Tag
The Input Tag
The Text Input Type
Exercise 2:1: For Text Input Type
The Password Input Type
Exercise 2:2: For Password Input Type
The Button Input Type
Exercise 2:3: For Button Input Type
The Reset Input Type
The Submit Button Input Type
Exercise 2:4: For Submit Button Input Type
The Check Box Input Type
Exercise 2:5: For Check Box Input Type
The Radio Button Input Type
Exercise 2:6: For Radio Button Input Type
The Textarea Tag
Exercise 2:7: For Textarea Tag.
The Image Input Type
Exercise 2:8: For Image Input Type               
The File Input Type
Exercise 2:9: For File Input Type
The Select Tag
Exercise 2:10: Select Tag

3.  Java Servlet
What are Servlets?
Uses of Servlets
Requirements for writing Servlets
What Do You Need to Run Servlets?
Architecture of the ServletPackage
Servlet Interface
The ServletRequest Interface
The ServletResponse Interface
Additional Capabilities of HTTP Servlets
Exercise 3:1:Simple Servlet generating text document
Exercise 3:2:Simple Servlet generating dynamic HTML content
Requests and Responses
HttpServletRequest Objects
HttpServletResponse Objects
Handling GET and POST Requests
Handling GET requests
Exercise 3:3: Handling GET requests
Handling POST Requests
Exercise 3:4: Handling POST requests
Handling Header Data
Request Headers
Response Headers
Common Response Headers
Exercise 3:5: Handling Header Data.

4.    Servlet Life Cycle, SSI and Servlet Chaining
Servlet Life Cycle
Initializing a Servlet
Initialization Parameters
Interacting with Clients
Destroying a Servlet
Instance Persistence
Servlet Reloading
Exercise 4:1: init and destroy method
Server-Side Include
Steps in loading an HTML page that contains SSI.
Server-side Include tag syntax.
Exercise 4:2:Simple Server Side Include Servlet.
Exercise 4:3:Displaying initialization parameters using SSI.
Exercise 4:4:Setting Footer and Header using SSI.
Servlet Chaining
Exercise 4:5:Showing the implementation of Servlet Chaining.
Running ServletChain.

 5.   JDBC in Servlets
Overview
JDBC Drivers
Basic Flow followed by all JDBC Applications
Import java.sql.package
Registering the Driver
Establishing the connection
Create a statement
Execute the statement
Retrieve the results
Close the statement and connection
JDBC Example
Exercise 5:1: Simple Servlet connecting to the Database Using ResultSetMetaData interface
Exercise 5:2:Using ResultSetMetaData interface
Database Updating
Exercise 5:3:Using execute() and getResultSet() methods
Exercise 5:4:Using execute() and getUpdateCount( ) methods
Reusing Database Objects Connection Reuse
Exercise 5:5: Connection Reuse Transactions
Using Transactions with JDBC
Exercise 5:6: Using Transactions with JDBC in servlets
Optimization of Transaction Process
Connection Pooling
Exercise 5:7: Servlet using ConnectionPooling

6.   Session Trcking
Overview
User Authorization
Hidden Form Fields
URL Rewriting
Exercise 6:1: URL Rewriting
Cookies
Creating Cookies
Reading and Specifying Cookie Attributes
Placing Cookies in Response Headers
Reading Cookies from Client
Exercise 6:2: Cookies
Session Tracking API
HttpSession object associated with the current
request
Information Associated with a Session.
Associating Information with a Session
Exercise 6:3: Session Tracking
Session Swapping and Persistence

7.   Interservlet Communication
Introduction
Servlet Manipulation
Servlet Reuse
Servlet Collaboration
Collaboration through the System Properties List
Collaboration using a shared object
Collaboration through inheritance
Exercise 7:1: Saving state of servlets
Applet-Servlet Communication
Exercise 7:2: Applet Communicating to the Servlet.
Page Compilation
The Servlet Tag
Exercise 7:3: Page Compilation

8.   Exercises and Solutions
Exercises
Solutions

 

Download Java Servlets Specification

Only £35

Our Full Java Technologies Package

For our full Java Technologies courseware package, including Java Servlets, is available at a greatly reduced price. For more information about this courseware package, click here.

Restrictions on use of courseware

Courseware bought on this site is subject to certain terms and conditions. In particular, courseware bought on this site may not be resold, although you may edit, add contact details and branding and distribute to your own staff, students or deligates. For further information, please see our terms of sale.

'Java' is a trademark or registered trademark of Sun Microsystems, Inc. or its subsidiaries in the United States and other countries. Courseware and training material offered at The Courseware Shop is in no way approved by, endorsed by or connected to Sun Microsystems, Inc. or its subsidiaries.