Public (Open Enrollment) Training Course:

Web Application Development with Servlets and JSP

October 13-17 2008, Laurel MD


This class is now over. Next public version is tentatively set for spring or summer 2009. In the meantime, please contact hall@coreservlets.com for information on a customized onsite version at your location. Lower price, more convenient for your developers, and customizable content.

“Wonderful.  In 20 years,
this is the best organized,
most pragmatic and
enjoyable course I've taken.”

“The best instructor-led
course I have attended, by far.”

“Best short course ever!”

more student reviews

This page describes the public (open enrollment) training course on intermediate servlet and JSP development to be held October 13-17 at JHU/APL in Laurel, Maryland. The entire course is personally developed and taught by leading JSP/servlet developer, speaker, and author Marty Hall. No contract instructor teaching someone else's materials! Marty has taught this course onsite for dozens of organizations in the US, Canada, Mexico, Australia, Japan, Puerto Rico, and the Philippines, all to rave reviews.

If you are looking for customized Java EE training courses taught on-site at your company, please see this page.

Register Early! Five of Marty's previous public short courses were full, so reserve your spot today. Registrations are taken in the order they are received.


Overview

Marty normally runs on-site training courses at customer locations. This is easier administratively, is better for clients since the topics can be customized, and is more cost effective for students since no travel is required. However, due to demand from those who do not have enough students for an on-site course, Marty will be running a public (open enrollment) servlet and JSP training course October 13-17 2008.

The course is developed and taught by Marty Hall, and experienced developer, award-winning instructor, popular conference speaker (5 times at JavaOne), and author of several popular J2EE books. The course is based on the second edition of Core Servlets and JavaServer Pages, and each student will receive their own copy as well as a bound student notebook.

Venue

The course will be held at JHU/APL in Laurel, Maryland (between Baltimore and Washington, minutes from BWI airport). This is a modern, comfortable venue with separate computers for each student, fast internet connections, and several nearby hotels.

Registration

The 5-day course costs $2395 per student and includes an extensive course notebook, a copy of Marty's new book, exercises, and exercise solutions. Compare this price to courses from Sun, Learning Tree, GlobalKnowledge, and Oracle University that cost around $2400 for 4-day courses and $3000 for 5-day courses. Besides, those courses use an unknown instructor who did not develop the course materials and often lacks significant real-world J2EE development experience.

To register, fill out and send in the course registration form. Space is limited: five previous offerings of Marty's courses were full. Bonus: Register by September 15 and get a $50 gift certificate from amazon.com.

Prerequisites

The course consists of an approximately equal mixture of lecture and hands-on lab time. The course assumes that all students already have at least moderate previous Java experience, but not necessarily any experience with server-side Java or HTTP. Although the course will use Java 5, previous experience with earlier Java versions is sufficient. Working knowledge of HTML is helpful but not absolutely required.

More Information


  • Want details on the topics? See the detailed curriculum below.
  • Have questions on the topics even after reading that? Email the instructor at hall@coreservlets.com.
  • Want information on the instructor? See this brief bio. Please note that the instructor (also the book author) personally developed all of the course materials and exercises. You won't get a contract instructor presenting someone else's materials.
  • Want to register? See the course registration form.
  • Registration questions? Email the registrar at registrar@coreservlets.com or phone (410) 429-5535.

Syllabus

Overview and Setup

  • Understanding the role of servlets
  • Evaluating servlets vs. other technologies
  • Understanding the role of JSP
  • Configuring the server
  • Configuring your development environment
  • Testing the server setup

Servlet Basics

  • The basic structure of servlets
  • A simple servlet that generates plain text
  • A servlet that generates HTML
  • Servlets and packages
  • Some utilities that help build HTML
  • The servlet life cycle
  • Servlet debugging strategies

Handling the Client Request: Form Data

  • The role of form data
  • Creating and submitting HTML forms
  • Reading individual request parameters
  • Reading the entire set of request parameters
  • Handling missing and malformed data
  • Dealing with incomplete form submissions
  • Filtering special characters out of the request parameters

Handling the Client Request: HTTP Request Headers

  • Reading HTTP request headers
  • Building a table of all the request headers
  • Understanding the various request headers
  • Reducing download times by compressing pages
  • Differentiating among types of browsers

Generating the Server Response: HTTP Status Codes

  • Format of the HTTP response
  • How to set status codes
  • What the status codes are good for
  • Shortcut methods for redirection and error pages
  • A servlet that redirects users to browser-specific pages
  • A front end to various search engines

Generating the Server Response: HTTP Response Headers

  • Format of the HTTP response
  • Setting response headers
  • Understanding what response headers are good for
  • Building Excel spread sheets
  • Generating JPEG images dynamically
  • Sending incremental updates to the browser

Handling Cookies

  • Understanding the benefits and drawbacks of cookies
  • Sending outgoing cookies
  • Receiving incoming cookies
  • Tracking repeat visitors
  • Specifying cookie attributes
  • Differentiating between session cookies and persistent cookies
  • Simplifying cookie usage with utility classes
  • Modifying cookie values
  • Remembering user preferences

Session Tracking

  • Implementing session tracking from scratch
  • Using basic session tracking
  • Understanding the session-tracking API
  • Differentiating between server and browser sessions
  • Encoding URLs
  • Storing immutable objects vs. storing mutable objects
  • Tracking user access counts
  • Accumulating user purchases
  • Implementing a shopping cart
  • Building an online store

JSP Intro and Overview

  • Understanding the need for JSP
  • Evaluating the benefits of JSP
  • Comparing JSP to other technologies
  • Avoiding JSP misconceptions
  • Understanding the JSP lifecycle
  • Installing JSP pages
  • Looking at JSP in the real world

Invoking Java Code with JSP Scripting Elements

  • Static vs. dynamic text
  • Dynamic code and good JSP design
  • JSP expressions
  • Servlets vs. JSP pages for similar tasks
  • JSP scriptlets
  • JSP declarations
  • Predefined variables
  • Comparison of expressions, scriptlets, and declarations

Controlling the Structure of Generated Servlets: The JSP page Directive

  • Understanding the purpose of the page directive
  • Designating which classes are imported
  • Specifying the MIME type of the page
  • Generating Excel spreadsheets
  • Participating in sessions
  • Setting the size and behavior of the output buffer
  • Designating pages to handle JSP errors
  • Controlling threading behavior

Including Files and Applets in JSP Pages

  • Using jsp:include to include pages at request time
  • Using <%@ include ... %> (the include directive) to include files at page translation time
  • Understanding why jsp:include is usually better than the include directive
  • Using jsp:plugin to include applets for the Java Plug-in

Using JavaBeans Components in JSP Documents

  • Understanding the benefits of beans
  • Creating beans
  • Installing bean classes on your server
  • Accessing bean properties
  • Explicitly setting bean properties
  • Automatically setting bean properties from request parameters
  • Sharing beans among multiple servlets and JSP pages

Integrating Servlets and JSP: The Model View Controller (MVC) Architecture

  • Understanding the benefits of MVC
  • Using RequestDispatcher to implement MVC
  • Forwarding requests from servlets to JSP pages
  • Handling relative URLs
  • Choosing among different display options
  • Comparing data-sharing strategies

Simplifying Access to Java Code: The JSP 2.0 Expression Language

  • Motivating use of the expression language
  • Understanding the basic syntax
  • Understanding the relationship of the expression language to the MVC architecture
  • Referencing scoped variables
  • Accessing bean properties, array elements, List elements, and Map entries
  • Using expression language operators
  • Evaluating expressions conditionally

Ajax: Asynchronous Page Updates

  • The basic Ajax process
  • Using dynamic content and JSP
  • Using dynamic content and servlets
  • Sending GET data
  • Sending POST data
  • Displaying HTML results
  • Parsing and displaying XML results
  • Ajax toolkits

Using and Deploying Web Applications

  • Purpose of Web applications
  • Structure of Web applications
  • Setting up Web applications with Tomcat
  • Giving custom addresses to servlets
  • Sharing data among Web applications

Controlling Web Application Behavior with web.xml

  • Location and purpose of web.xml
  • Custom URLs
  • Initialization parameters
  • Preloading pages
  • Welcome pages
  • Error pages

Creating Custom JSP Tag Libraries: The Basics

  • Java-based tags
    • Components of a tag library
    • Basic tags
    • Tags that use body content
    • Tags that optionally use body content
  • JSP-based tags (tag files)
    • Components of a tag library
    • Basic tags
    • Tags that use attributes
    • Tags that use body content

Custom JSP Tag Libraries: Advanced Topics

  • Tags with dynamic attribute values
  • Tags with complex objects for attributes
  • Manipulating the tag body
  • Looping tags
  • Nested tags
  • Using SAX and TagLibraryValidator to validate tag library syntax