Course Details
Course Code: RAD6C2
Course Title: Servlet and JSP Programming for WebSphere using Rational Developer 6
Units: 16
Duration: 4 classroom equivalent days
Discussion Access: 4 months1
1. Up to 12 months access when purchased as part of a Curriculum Package.
Summary Description
Continue your WebSphere education with this advanced programming course which focuses on Servlets, JavaServer Pages, JDBC, and integration with Domino. Learn how to manage user sessions to add shopping cart functionality to your site. Add error handling to Servlets and JavaServer Pages. Discover how to use and create tag libraries to create dynamic JavaServer Pages. Build a JavaBean and then use it in a JavaServer Page. Use JDBC to integrate your WebSphere application with relational databases. Learn how to test and deploy your WebSphere application using the tools included in Rational Developer 6.
Servlet and JSP Programming for WebSphere using Rational Developer 6 is completely integrated and plugs into Rational Developer 6. The lessons are viewed using Rational Developer's Help system. The many live demonstrations and activities included in the course are done right in Rational Developer 6. Below is a screen shot of a lesson from the course. The course outline is on the left and the actual lesson is on the right. The course outline can be toggled on or off to show more of the lesson.
Audience and Prerequisites
Experienced developers with a basic understanding of Java, Rational Developer 6, and the J2EE architecture. The recommended prerequisite course is:
- TLCC's Introduction to WebSphere using Rational Developer 6 course
- An understanding of the Java programming language
System Requirements
The system requirements for this course are:
- IBM Rational Developer V6, one of the following editions:
- A current web browser
- Access to the Internet for instructor support
Course Modules
Module 1 - Managing Web Sessions
Learn how to maintain information about your users as they move around your website to build applications like shopping carts. This module will teach you how to maintain information from the web client in between calls to the web server using Servlets and Java Server Pages. You will build a shopping cart application using servlets and Java Server Pages as the final activity in this course.
- Understand the stateless nature of the Web and how to overcome this
- Identify the different ways to maintain session state
- Maintain session state using Servlets
- Maintain session state using JavaServer Pages
- Expire sessions
- Build a shopping cart application using Servlets and JavaServer Pages
Module 2 - Servlet Programming
Take your servlet development to the next level. This module will teach you how to implement error handling using Java's try-catch block. Learn how to trap specific errors. Call and use external Java classes in your servlets to modularize your solutions and use code from other sources. Understand the complete servlet life cycle and how it affects your application including the scope of variables. Discover how servlets are multi-threaded and how to create thread-safe applications. Use initialization parameters to store information which can be used by servlets at runtime.
- Implement error trapping with servlets using a try-catch-finally block
- Learn how to trap and handle specific errors that may occur
- Create and call an external Java class from a servlet
- Use the Call Hierarchy view to locate all code that makes a call to a method
- Understand the Servlet Life Cycle and how it affects your web applications
- Learn how servlets are multi-threaded and how to create a thread-safe servlet
- Create and use initialization parameters in your servlets
Module 3 - JSP Programming
A JavaServer Page (JSP) is also a Java program and is subject to the same run-time errors as servlets. In this module you will learn how to handle errors in JSP. You will discover how to create a JSP which functions as an "error page" to process all errors that occur in your application. You will learn how to process a JSP with another JSP to handle the validation of input. Learn how to implement and use JSP tag libraries and the Java Standard Tag Library (JSTL). Finally, you will learn how to create and use a custom tag library.
- Understand the JSP life cycle, objects, variables and threading
- Process application errors using a JSP error page
- Use a JSP to process another JSP
- Use JSP tag libraries
- Use the Java Standard Tag Library (JSTL)
- Create a custom tag library
- Add Struts and Java ServerFaces support to a Web module
Module 4 - Integrating JavaBeans and JavaServer Pages
Learn how to integrate JavaBeans with JavaServer Pages in a Model-View-Controller (MVC) application design. Learn the JavaBean Coding Guidelines and use a wizard to create a JavaBean and generate its getter and setter methods. Use JSP action element tags to access and use a JavaBean in a JSP. Use a JavaBean to validate input data submitted by a JSP and to share data among several JavaServer Pages.
- Learn the JavaBean Programming Interface and the JavaBean Coding Guidelines
- Use a wizard to create a JavaBean and generate its getter and setter methods
- Use JSP action element tags to access and use a JavaBean in a JSP
- Use a JavaBean to validate input data submitted by a JSP
- Use a JavaBean to share data among several JavaServer Pages
- Transfer data from a servlet to a JSP using a JavaBean
Module 5 - Using JDBC in Web Applications
The need to interface with a Relational Database Management Systems (RDBMS) is a common requirement for many applications. Organizations have long relied on RDBMS to store, track, organize and report data. This module will teach you how to use tools in the Data Perspective to connect to an RDBMS data source and to create database, schema and tables definitions. You will learn to access and modify data in an RDBMS data source using JDBC. Create servlets to read, update and insert records in an RDBMS data source. Use Prepared Statements to improve performance of SQL statement execution. Implement Connection Pools to improve performance when connecting to an RDBMS data source.
- Use tools in the Data Perspective to connect to an RDBMS data source
- Use tools in the Data Perspective to create database, schema and tables definitions
- Use tools in the Data Perspective to create and test SQL statements against an RDBMS data source
- Understand the JDBC programming interface
- Use JDBC to issue SQL commands against an RDBMS data source
- Create servlets to read, update and insert records in an RDBMS data source
- Use Prepared Statements to improve performance of SQL statement execution
- Implement Connection Pools to improve performance when connecting to an RDBMS data source
- Learn how to code a servlet to access and then forward data from an RDBMS data source to the JSP as XML
Module 6 - Application Testing, Management and Deployment
Rational Developer provides many tools to test, manage and deploy applications.
- Recover deleted resources from the local history
- Restore previous versions of resources from the local history
- Use the refactoring tool to automatically update all references when a Java source file is moved or renamed
- Configure and use the test server in Rational Developer to test an application
- Export an application as an EAR file for deployment on a WebSphere Application Server
- Publish an application directly to a WebSphere Application Server for remote testing
- Use the profiling tool to monitor and analyze the performance and memory utilization of an application
- Use JUNIT testing to test your Java code