Skip Navigation Links

Course Length:
5 Days
Course Description:
This course is an introduction to writing Java EE-compliant Web applications using IBM WebSphere Application Server 6.1 and Rational Application Developer 7. An overview of Java EE technology is provided, followed by hands-on experience with JNDI, JDBC, Java servlets, and JavaServer pages. Other topics covered include servlet filters, custom JSP tags, JavaMail, and an overview of JavaServer Faces (JSF).
Who Should Attend:
This course is for experienced Java programmers and software engineers preparing to write components for Java EE Web applications hosted on WebSphere Application Server.
Benefits of Attendance:
Upon completion of this course, students will be able to:
  • Start, stop, and configure WebSphere Application Server.
  • Write, deploy, and test Java EE components using the RAD7 development tool.
  • Use JNDI to access JDBC data sources.
  • Write and deploy servlets and JavaServer pages on WebSphere Application Server.
  • Use JDBC to read and update a database.
  • Create and process HTML forms.
  • Work with cookies and HTTP sessions.
  • Assemble and configure a J2EE-compliant Web application.
  • Use servlet filters for pre- and post-processing HTTP requests.
  • Create custom JSP tags.
  • Use the JavaMail API to send email from Web applications.
  • Create security principals and roles.
  • Apply security to Web pages.
  • Implement the Model View Controller architecture.
  • Write simple applications using the JavaServer Faces framework.
Prerequisites:
Students should be comfortable with Java programming and object-oriented concepts. A minimum of six months coding experience is suggested. In addition, students should be familiar with writing simple Web pages using HTML. Prior experience using SQL and/or JDBC will be helpful.
Course Outline:
  • Chapter 1: Overview of Java EE
    1. Java Platforms
    2. Characteristics of “Enterprise” Computing
    3. Java EE Technologies
    4. Multi-Tier Architectures
    5. Advantages of Multi-Tier Architectures
    6. Container-Based Approach
    7. Parties Involved in Java EE Deployment
    8. Java EE-Compliant Application Servers
    9. Java EE Application Models
    10. HTTP Services Application Model
    11. N-Tiered Application Model
  • Chapter 2: Introduction to RAD
    1. What is WebSphere®?
    2. What is Rational® Application Developer?
    3. Starting RAD
    4. Starting and Stopping WebSphere
    5. Creating an Enterprise Application Project
    6. Creating a Dynamic Web Project
  • Chapter 3: Servlets
    1. A Simple Servlet
    2. Web Applications
    3. WebSphere Deployment Descriptors
    4. Running Servlets in RAD
    5. Configuring Servlets
    6. Configuring Servlets in RAD
    7. Servlet Initialization Parameters
    8. Generating and Validating Forms
    9. Servlets and Threads
    10. Other Settings in web.xml
  • Chapter 4: Session Management
    1. Cookies
    2. Sessions
    3. Session Id's
    4. Session Management
    5. Session Management Example
    6. URL Rewriting
    7. Invalidating Sessions
    8. Configuring the Session Timeout
  • Chapter 5: JavaServer Pages
    1. JavaServer Pages
    2. A Simple JSP
    3. Running JavaServer Pages in RAD
    4. JSP Syntax
    5. Configuring JavaServer Pages
    6. JSP Directives
    7. JSP Actions
    8. JSP Example with Forwarding
    9. JavaServer Pages and JavaBeans
    10. JSP with JavaBean Example
    11. Running the JSP Bean Example
    12. Creating a New JSP
  • Chapter 6: Custom JSP Tags
    1. Using Custom Tags
    2. Types of Tags
    3. Defining Tags
    4. The tag Element
    5. Simple Tags
    6. Tags with Attributes
    7. Using JSP Expressions as Attributes
    8. Including the Tag Body
    9. Optionally Including the Body
    10. Including the Body Multiple Times
    11. Running the Examples
  • Chapter 7: Web Application Security
    1. HTML Form for Survey Application
    2. HTML Code for Survey Form
    3. Servlet Code for the Survey Application
    4. JavaBean Class for the Survey Application
    5. Running the Survey Application
    6. Java EE Security
    7. Authentication
    8. Configuring Authentication for Web Applications
    9. Authorizing Access to Resources in a Web Application
    10. Web Application Security – Example
    11. Configuring Web Application Security in RAD
    12. Enabling Security for the WebSphere Server
  • Chapter 8: Java Naming and Directory Interface
    1. What is JNDI?
    2. Benefits of JNDI
    3. Naming Services
    4. Directory Services
    5. Using JNDI
    6. Context Operations
    7. JNDI Utility Class
    8. JNDI Example
    9. Running the JNDI Example
    10. Naming Exceptions
    11. Creating a New Standalone Program
  • Chapter 9: Database Access Using JDBC
    1. A Simple JDBC Program
    2. JDBC Driver Types
    3. Using the Derby Database
    4. JDBC Data Sources
    5. Data Source Example
    6. Configuring a JDBC Provider
    7. Configuring a Data Source
    8. Running the JDBC Examples
    9. Using the Database Explorer
    10. Using JDBC in a Servlet
    11. Using JDBC in a JSP
  • Chapter 10: Design Concepts for Web Applications
    1. Architecture and Design
    2. Tiered Architectures
    3. Model-View-Controller Architecture
    4. Java EE Design Patterns
    5. Composite View Pattern
    6. Composite View Strategies
    7. Running the Demo Application
    8. View Helper Pattern
    9. Front Controller Pattern
    10. Intercepting Filter Pattern
  • Chapter 11: Servlet Filters
    1. What is a Filter
    2. Sample Filter
    3. The Filter API
    4. Initializing Filters
    5. Blocking the Response
    6. Modifying the Response
    7. Running the Filter Examples
    8. Creating A New Filter
  • Chapter 12: JavaMail
    1. JavaMail
    2. Example - Send Mail
    3. Example - Read Mail
    4. Running the Examples
  • Chapter 13: JavaServer Faces
    1. What is JavaServer Faces?
    2. JSF Development Roles
    3. Developing a JSF Application
    4. JSF Components
    5. Component Tags
    6. Validators
    7. Example – Creating a Form
    8. Running the First Example
    9. Backing Beans
    10. Example – Processing a Form
    11. Backing Bean Class
    12. The faces-config.xml file
  • Appendix A: Web Resources
    1. Java Technology
    2. WebSphere
    3. Derby Database
  • Appendix B: HTML Reference
    1. Introduction
    2. A Simple HTML Document
    3. Basic Tags
    4. Formatting Tags
    5. Links
    6. Forms
  • Appendix C: Web Accessibility
    1. What is Accessibility?
    2. What is Section 508?
    3. Accessibility Initiatives and Related Legislation
    4. Types of Disabilities
    5. Assistive Technologies
    6. Benefits of Accessible Design
    7. General Coding Practices
    8. Other Recommendations
  • Appendix D: A JSP Template Mechanism
    1. A Sample Application
    2. A JSP Template Mechanism
    3. Implementing the Template Mechanism with Custom JSP Tags
    4. Classes in the Sample Application
    5. Tag Library Descriptor
    6. Running the Sample Application