Skip Navigation Links

Course Length:
5 Days
Course Description:
This course is an introduction to writing JEE-compliant Web applications using JBoss 4 and the JBoss Eclipse IDE. An overview of JEE 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:
Experienced Java programmers and software engineers preparing to write components for JEE Web applications hosted on JBoss 4 Application Server.
Benefits of Attendance:
Upon completion of this course, students will be able to:
  • Start, stop, and configure JBoss Application Server
  • Write, deploy, and test JEE components using the JBoss Eclipse IDE development tool
  • Use JNDI to access JDBC data sources
  • Write and deploy servlets and JavaServer pages
  • 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 Editions
    2. Characteristics of "Enterprise" Computing
    3. Java EE Technologies
    4. Multi-Tier Architectures
    5. Advantages of Multi-Tier Architectures
    6. Container-Based Approach
    7. Java EE Application Models
  • Chapter 2: Introduction to JBoss Eclipse IDE
    1. What is JBoss Eclipse IDE?
    2. Starting JBoss Eclipse IDE
    3. Configuring an Installed JRE
    4. Setting Compiler Preferences
    5. Configuring the JBoss Test Environment
    6. Verifying Server Start-Up
    7. The JMX Console
    8. Stopping and Starting the JBoss Server
    9. Web Applications
    10. Creating a Project
    11. Setting Up a Packaging Configuration
    12. Setting Up an XDoclet Configuration
    13. Deploying the Web Application
    14. Testing the Web Application
  • Chapter 3: Servlets
    1. A Simple Servlet
    2. Configuring Servlets
    3. Servlets in JBoss Eclipse IDE
    4. Servlet Initialization Parameters
    5. Generating and Validating Forms
    6. Servlets and Threads
    7. 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. Invalidating Sessions
    7. Configuring the Session Timeout
  • Chapter 5: JavaServer Pages
    1. JavaServer Pages
    2. A Simple JSP
    3. JavaServer Pages in JBoss Eclipse IDE
    4. JSP Core Tags
    5. JSP Directives
    6. JSP Actions
    7. JSP Example with Forwarding
    8. JavaServer Pages and JavaBeans
    9. JSP with JavaBean Example
    10. Running the JSP Bean Example
    11. 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. Building the Examples
    6. Simple Tags
    7. Tags with Attributes
    8. Using JSP Expressions as Attributes
    9. Including the Tag Body
    10. Optionally Including the Body
    11. Including the Body Multiple Times
    12. Creating A New Tag Handler
  • 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. Configuring Authentication for Web Applications
    8. Configuring Authorization for Web Applications
    9. Securing the Survey Application
  • 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 Client Program
  • Chapter 9: Database Access using JDBC
    1. A Simple JDBC Program
    2. JDBC Driver Types
    3. Connection Pools
    4. JDBC Data Sources
    5. Creating Tables
    6. Running the JDBC Examples
    7. Executing a Query
    8. Deleting a Row
  • Chapter 10: Design Concepts for Web Applications
    1. Architecture and Design
    2. Tiered Architectures
    3. Model-View-Controller Architecture
    4. J2EE 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. Example - Read Mail
    5. 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. Optional Settings in web.xml
    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. JBoss
  • 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 and Why It is Important?
    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. Non-Text Elements
    9. Multimedia Presentations
    10. Color and Style Sheets
    11. Image Maps
    12. Tables
    13. Frames, Frequency and Equivalents
    14. Scripting
    15. Programming
    16. Forms
    17. Repetitive Navigation Links
    18. Timed Responses
    19. 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