
Course Description: JavaServer Pages (JSP)
Five Days — Instructor-led Lecture and Lab Sessions
Overview
This course takes a comprehensive look at
using one of Sun Microsystems latest technologies, JavaServer Pages, to develop dynamic websites. Students learn the
concepts involved in Client/Server Internet communications beginning with the HTTP protocol, and moving
into Servlet-oriented programming. Students will develop their own JavaBeans, and perform session tracking, as well
as connect to data sources. Exercises and examples include: login procedures, shopping carts, personalization, redirection, and more.
Course Objectives
At the end of the course, students will be able to:
- Recognize differences between static and dynamically created web content
- Understand and utilize HTTP to communicate between the client and server
- Build JavaServer Pages using the JSP syntax
- Build JavaBeans to improve design flexibility
- Use Java Database Connectivity (JDBC) to retrieve and store user data
- Track sessions, store information with cookies,
- Learn to use the Model-View-Controller design pattern to organize the flow control
- Handle Exceptions and consider threading issues
- Build custom library tags
- Use the implicit objects, understanding the difference between the various
scopes
- Create the same JSP implicit objects in a Servlet
- Communicate between Servlets, JSPs, beans, and the database
Pre-requisites
- Understanding of HTML and Java
programming is recommended, however, the first day covers both subjects.
Course Materials
The course materials are yours to keep. You will be
provided with all course notes, and lab solutions.
Course Outline
Day 1
HTTP, Java, and Servlets
Topics
- HTTP, HTML Forms, Client-Server Architectures
- Java Programming Review
- The Servlet Container and the Servlet/JSP APIs
- Developing Servlets
At the conclusion of day 1, students will be able to:
Build a simple Servlet to dynamically create a web page.
Day 2
JSP Tags and LifeCycle
Topics
- Servlets Continued
- Developing JavaBeans
- JSP Tags and Syntax
- Static and Dynamic forwards and includes
- The JSP Lifecycle
At the conclusion of day 2, students will be able to:
Develop an online poll, apply the JSP tags to create dynamic pages.
Day 3
JSPs and Beans
Topics
- Handling exceptions and make use of error pages
- Threading Issues
- Making Use of Implicit Objects including the page,
request, session, and application objects
- Using the session object to Track Preferences
At the conclusion of day 3, students will be able to:
Develop a shopping cart system, and manage objects that persist across requests.
Day 4
JDBC, Cookies, Tag Libraries
Topics
- Using Java Database Connectivity to Create Pages Based on database Information
- Creating Classes to Encapsulate SQL Operations
- Using Cookies to Maintain State
- Developing a Tag Library to represent Custom
Actions
At the conclusion of day 4, students will be able to:
Build a homepage users can customize, add database
functionality
to the shopping cart system, and create custom tag libraries.
Day 5
Model-View-Controller Design
Topics
- Separating Presentation, Business Logic, and Data
- Communicating between Servlets and JSPs
- Using RequestDispatchers to forward requests
- Using the Request and Session Objects in Designs
- Developing a login system
At the conclusion of day 5, students will be able to:
Develop a login system, and
customizable homepage based on the MVC Architecture.
copyright © 2000 - Technical Training Resource