OverviewAuthored and field tested by James White, Java author, this four day instructor led course delivers comprehensive coverage of tag libraries, JSF, and Spring MVC.
Contents Course Manual, Lab Manual, Lab Exercises, Lab Solutions, and Slides
Length4 days
Target Audience Engineers, Developers, Programmers, and Software Development Professionals
Course Abstract
Complete Java Web Development is a crash course in developing cutting edge Web applications using the latest Java EE 5 technologies from Sun and the open source community. The course builds a strong understanding of Servlet technology as the cornerstone of Java's Web platform. It shows how JSPs build on the Servlet architecture and help your development teams achieve clear role separation. Allowing Web developers to focus on functionality while the Web designers create the layout - without stepping on each other's toes. Additionally, the class will show you how to use JSTL, custom tags and JSP expression language to reduce Java code in Web pages while adding tremendous power and capability to those pages. Attendees will also learn JavaBean component development and how these components can be easily integrated into JSPs. The class culminates in an exploration of Java MVC frameworks and compares some of the more popular offerings like Struts and Spring MVC.
While focusing on Web technologies, the course also exposes developers to the constant trade off between application robustness and complexity. This is not a class that focuses on theory. Participants will find the course is loaded with practical labs and simulations. After taking this class, your developers will be able to build Web applications faster, that are more scalable, and that are easier to maintain.
Learning Objectives
- How to create custom tags and how to integrate with JSP
- How to develop JSF applications
- How to use the Spring MVC
Download: Table of Contents and Excerpt
Java Enterprise Edition (Java EE)
- Java Editions
- Multi-Tiers
- Containers
- Java EE APIs
HTTP Basics
- HTTP 101 – Web basics
- Client to Server Interaction
- HTTP Message Initial Line
- HTTP Methods
- HTTP Status Codes
- HTTP Header Fields
- The Message Body
Introduction to Servlets
- What is a servlet?
- The Basic HTTP Servlet
- Servlet Life Cycle
- The service() method
- Web server versus Web Container
- Application Configuration and Web.xml
- Welcome pages and Error pages
- Standard Deployment with War files
- Proprietary Configuration Information
- Servlets and the Competition
Request Data
- Getting Servlets Data
- Query String
- HTML Forms
- Collecting Data
- Header Parameters
- Init Parameters Revisited & ServletConfig
Cookies
- Cookies Defined
- Creating Cookies
- Retrieving Cookies
HTTP Session
- Session Tracking
- Using HTTPSession
- URL Rewriting
- Container Session Support
- Attribute Data and Scope
- Servlet Context
- Multithreading
Invoking Resources
- Servlet and Other Resources
- Redirecting
- Client Redirects
- Server-Side Redirects
- Which Redirect?
- Includes
Filters
- Servlet Filters
- Making a Filter
- Deploying Filters
JSP Introduction
- Why JSPs?
- What is a JSP?
- The JSP HelloWorld
- Scriptlets
- Implicit Objects
- How are Implicit Objects Implemented?
- Expressions
- Declarations
- JSP Comments
JSP Directives
- Page Directive
- JP Thread Safety
- Buffer and AutoFlush
- Exception Handling
- The ‘exception’ Implicit Object
- Include Directive
Expression Language (EL)
- What is JSP Expression Language?
- EL Syntax
- EL Operators
- EL Variables
- EL Implicit Objects
- Deactivating EL
Standard Tags
- JSP Actions
- Tag Syntax
- jsp:forward
- jsp:include
- The Include Directive Revisited
- jsp:plugin
- Additional Action Tags
JavaBeans and JSPs
- More Standard Actions
- JavaBeans
- JavaBean Standard Actions
- jsp:useBean
- jsp:getProperty
- jsp:setProperty
JSTL
- What is JSTL?
- Why JSTL?
- JSTL Tag Categories
- JSTL HelloWorld Example
- Two sets of JSTL Libraries
- Core Tags
- Formatting
- XML Tags
- SQL Tags
- Functions
MVC and Java Web Frameworks
- Model 2 Architecture
- Model 1 Architecture
- MVC Frameworks
Struts 2
- Sruts 2 Architecture
- Struts 2 Setup
- Struts Actions
- Results and Result Handling
- Struts JSP Tags
- Validation
- Interceptors
- I18N/L10N
Addendix A: Custom Tag Libraries
- Creating a Custom Tag
- The Tag Library Descriptor (TLD)
- Taglib Directive and Use in the JSP
- TLD Alias
- Handler Class
- Regular Tag Handlers
- PageContext
- Tags with BodyContent
- Tags with Attributes
- BodyTag Handlers
Appendix B: JavaServer Faces
- What is JSF and why use it?
- JSF Setup
- JSF Basics
- Faces Servlet Configuration
- JSF Custom Tags
- Component Tree
- Actions and Navigation
- Static Navigation
- 118N/L10N
- JSF Lifecycle
- Validation
Appendix C: Spring MVC
- What is Spring and why use it?
- Spring Modules
- Inversion of Control
- Spring Setup
- Spring MVC Architecture
- Basic Spring MVC
- DispatcherServlet
- Wiring Spring MVC
- Handler Mappings
- Controllers
- View Resolvers
- Spring MVC Tags
A 10 unit minimum is required on courseware purchases.Java Courseware, Java Curriculum, Java Training Guide