Java Training Overview
This is a 5-day course that covers Java EE 5 with a focus on the Web tier and JDBC.. The Java EE platform offers all the advantages of developing in Java plus a comprehensive suite of server-side technologies. This course tells you what you need to know to design and build your own web applications. You'll learn the details of the key Java EE technologies and how to leverage the strengths of each, with special focus on Servlets and JSP. At the same time, you'll be learning about the big picture of Java EE and how to design web applications that are robust, efficient, and maintainable. A major part of the course is spent on Servlets and JavaServer Pages (JSP) with special focus on using the JSTL. It then covers JDBC, Java’s database access technology. The course concludes with an introduction to EJB and other important Java EE technologies.
Java Training Audience
Programmers interested in utilizing the capabilities offered by Java Enterprise Edition to create web applications.
Java Training Prerequisites
A working knowledge of Java.
Java Training Course duration
5 Days
Java Training Course outline
1. Java EE Introduction and Architecture
- Java EE Overview
- Java EE’s Place within Java
- Java EE – Distributed Multitier Applications
- Important Java EE 5 APIs
- Commercial Java EE Products
- Common Commercial Java EE App Servers
- Enterprise Applications- theThree Pillars
- Persistent Storage
- Business Components
- Presentation Logic – Servlets
- Presentation View – JavaServer Pages
- Java EE Containers
- Java EE Architecture
- Multitiered and Web-Based Architecture
- Web-Based Architecture with EJB
- Swing Client Architecture with EJB
- Supporting both Web Clients and Rich Clients
- Playing Server Games
- SOA – Service
2. Web Application Basics
- How the Web works, Thin Clients, TCP/IP
- Overview of J2EE
- Web Applications – Structure and Contents
- Servlet Basics and Capabilities
- Basics of Writing a Servlet
3. Servlet Basics
- HTML Forms Review
- HTTP Review: Request-response, headers, GET, POST
- How Servlets Work
- Servlet Lifecycle
- API: Servlet, ServletConfig, Request, Response, Generic
- Requests and Responses
- HTTP Servlets
- Accessing Parameters
- More About web. xml
4. Additional Servlet Capabilities
- Working with HttpServletResponse
- Status /Errors
- Response Headers
- MIME Types
- Initialization
- Error Handling: Error Pages & their Configuration
5. JavaServer Pages
- Basics and Overview
- Model View Controller (MVC)
- Servlets as Controllers
- Data Sharing in a Web App
- Object scopes or “buckets”
- Using JavaBeans to Hold Data
- Using the Scope Objects – get/set/remove Attributes
- JSP Expression Language (EL) and Data Access
- JavaBeans and the EL
- Predefined JSP EL implicit objects
- Jsp:include, jsp:forward, the page Directive
6. Using Custom Tags
- Custom Tag Libraries overview
- Issues with Vanilla JSP
- Sun’s Solution – Custom Tags
- Tag Libraries
- Using a Tab Library in a Web Application
- JSP Standard Tag Library (JSTL)
- The JSTL
7. HTTP Session Tracking
- HTTP as a stateless protocol
- Online Shopping with a Stateless Protocol
- Storing Contextual Information
- Hidden form fields
- Cookies
- Using Cookies, Persistent & Session
- Sessions
- Servlet/JSP Session, Support, HttpSession
- Using Sessions – Putting Data in, Retrieving Data From
- How Sessions Tracking Works
8. More JSP Capabilities
- Error Pages
- Error Pages and Exception Handling
- The implicit exception Object
- JSP 2.0+ Error Handling and errorData Object
- Directives (page, include, others)
- JSPs as XML Documents
- Scriptlets – Overview and Usage
9. More JSTL and EL
- More about the JSTL
- Core, Formatting, SQL, XML, Functions Libraries
- Custom Tag Architecture and Tag Library Structure
- c:if, c:choose, c:import
- Formatting
- Using Common Tags
- XML Action Example
- More About the JSP EL
- Syntax, Identifiers, Literals, Operators
- Implicit Objects
- The pageContext in Detail
- Type Coercion
- String concatenation
- Using Common Tags
10. Security
- J2EE Security Overview
- Role Based Security
- Declarative Security
- Web Authentication
- Using Basic Authentication
- Using Form-Based Authentication
- Programmatic Security
11. Additional Topics
- Custom Tags Using Tag Files
- Tag Attributes
- The Tag Directive
- Servlet Filters
- Java ServerFaces (JSF) Overview
- JSF Advantages
- JSF Disadvantages
12. JDBC Introduction and Architecture
- JDBC Architecture and API
- The DRIVERMANAGER Class
- What is a JDBC Driver
- Drivers Must Be Loaded
- Naming databases with JDBC URLs
- Database Connections
- Establishing a Database connection
13. Data Access with JDBC
- DAO – Data Access Objects, O-R Mapping, Value Objects
- Processing Database Data
- Creating Statements
- Extracting Data from a ResultSet
- SQL – Java Type Mappings
- Dealing with Result Set NULL Values
- Closing JDBC Objects –Revisited
14. Optional Additional Topics
- Java Persistence API
- JPA Goals
- More about O-R Mapping
- Entity Classes
- Advanced JDBC Features
- Batch Updates
- Result Set Concurrency Types
- The RowSet Interface
- Rowset Implementations
- BLOBs and CLOBs
- Database Integration and Additional Technologies
15. Java EE Database Integration
- DataSource, ENC and JNDI
- Java EE and JDBC
- How do Clients Get Access to a DataSource
- Defining a Resource Reference in web.xml
- Resource Injection
- JNDI – Java Naming and Directory Interface
- The ENC and JNDI
- Connection Pooling
16. Additional Topics
- What is EJB
- EJB Goals
- Bean Usage
- MDB Usage
- High-level EJB architecture
- Roles within EJB
- Defining a Session Bean
- Using EJB
- Web Services
|