Data Deliverance Courseware

J2EE™ Foundations

Summary

This five-day course covers some basic elements of the J2EE™ platform. It consists of three units, each introducing one major technology. Database connectivity with JDBC™ is covered in the first unit. Following this the emphasis shifts to web technologies, with Java™ Servlets and Java Server Pages.

Prerequisites
Prerequisites: Experience in Java Programming is essential. The student must be comfortable with object-oriented Java, interfaces and abstract classes. Understanding of basic SQL usage or other work with relational databases will be helpful, but is not required. Exposure to HTML and Web page design are also beneficial but not necessary.

Length
5 Days

Format
Instructor-led course, with practical computer-based exercises.

Unit 1: JDBC
This one-day unit covers the fundamentals of database programming in Java using JDBC (Java Database connectivity) in an incremental fashion, to get the programmer up to speed quickly and then to layer a deeper understanding of JDBC upon that foundation. This unit has been designed to work with any of three relational database management systems:

Apache Derby, version 10

MySQL, version 4.1

Oracle, version 9i or 10g

Lab exercises use SQL99 constructs whenever possible in order to be relevant to databases from all vendors. The software also includes an optional overlay of workspace and project files to support use of the Eclipse IDE in the classroom.

Unit Objectives
On completion of this unit, the student should be able to
Unit Outline


Unit 2: Introduction to Java Servlets
This practical, application-oriented unit teaches Java Servlets technology and shows how to use it to develop simple to complex Web applications. It is intended for experienced Java (J2SE) programmers who want to build Web applications or J2EE components and systems. The unit begins with an overview of server-side Java programming and Web protocols. Then students learn the Java Servlets architecture, the request/response cycle, and servlet life cycle, and how to build interactive Web applications that parse and/or generate HTML forms. Several prominent patterns for servlet application architecture are considered. Sessions are studied as a means to developing sophisticated client/server conversations over several HTML pages. Multi-tier applications are developed using servlets and JDBC for access to relational databases. The unit develops the important concept of the separation of programmatic and declarative development: use of configuration and context information in lieu of hard-coded values, resource locations, etc., to make the Web application as portable and easy to administer as possible. The unit introduces JavaBeans as a standard for business and data objects that can be shared among servlets and JSPs, and develops techniques for sharing such objects at session scope or by request forwarding. Finally, students learn how to implement filters to adapt existing servlets by pre- and post-processing the request and response.

Unit Objectives
On completion of this unit, the student should be able to

Unit Outline


Unit 3: Introduction to Java Server Pages

This two-day unit introduces JavaServer Pages, or JSP™, which is the standard means of authoring dynamic content for Web applications under the Java Enterprise platform. The unit begins with an introduction of Web applications in general, shows how Java servlets and JSPs establish a framework for writing Web applications, and then covers JSP 2.0 features in detail, from scripting elements to use of dedicated JavaBeans to JSP expressions, and quick introductions of JSTL and custom tag development.

By the end of the unit students will be able to create their own JSP applications, including interactive applications using HTML forms and pages that perform fairly complex processing using scripts and or actions. Although scripting is covered, the scriptless authoring style encouraged by the JSP 2.0 specification is emphasized, and students will be well equipped to develop concise and effective JSP applications.

Unit Objectives
On completion of this unit, the student should be able to

Unit Outline

Hardware and Software Requirements
Unit 1

This course has been tested on Windows 2000 and XP. The J2SE™ 1.4.2 SDK is required. The course supports the following database software:

Apache Derby 10 (formerly Cloudscape) this product is included with the course software and is the default

MySQL 4.1 this is a free downloadable and the Connector/J driver is included with the course software

Oracle 9i or 10g no license or software is included with the course

Hardware requirements are modest: a minimal system for this module would have a Pentium 500MHz or equivalent CPU, 256 meg of RAM and at least 500 megabytes of free disk space for tools installation and lab software. For Oracle systems, significantly better processing power and memory is recommended see Oracles own documentation for this.

The basic course uses command-line scripts and a freeware text editor. An optional package is available with workspace and project definitions for Eclipse 3.01.

Unit 2

This unit can be presented on Windows or Linux systems. Tools required are all free downloadables available for either platform: the J2SE™ SDK, the Tomcat 5 Web server, the MySQL RDBMS and a MySQL JDBC driver. Hardware requirements are modest: a good minimal system for this unit would have a Pentium 500MHz or equivalent CPU, 256 meg of RAM and at least 500 megabytes of free disk space for tools installation and lab software.

Unit 3

This unit can be presented on Windows or Linux systems. The J2SE™ SDK and the Tomcat 5 Web server are required both are free downloadables available for either platform. Hardware requirements are modest: a good minimal system for this module would have a Pentium 500MHz or equivalent CPU, 256 meg of RAM and at least 500 megabytes of free disk space for tools installation and lab software.