Custom Search
Provided by: Webucator

Spring-MVC Web Applications

Webucator
Training Provided by Webucator This course enables the experienced Java developer to use the Spring application framework to manage objects in a lightweight
This is primarily webinar training
Contact Webucator for more information
Training Presented in:English

Spring-MVC Web Applications Seminar Schedule

Date   Location    
5th Oct, 2009   Webucator Webinar   [Register]
30th Nov, 2009   Webucator Webinar   [Register]
Spring-MVC Web Applications

Spring-MVC Web Applications Class Overview

This course enables the experienced Java developer to use the Spring application framework to manage objects in a lightweight "IoC" (inversion-of-control) container; to create simple and complex web applications; and to manage persistent objects using Spring's support for DAOs and transaction control. Spring is a far-reaching framework that aims to facilitate all sorts of Java development, including every level of multi-tier distributed systems. Here we focus on the Core and Web/MVC modules, with a lighter (but by no means dismissive) touch on persistence through DAO and ORM modules.

The Core module gives the developer declarative control over object creation and assembly; this is useful for any tier of any Java application. So is Spring's validation framework, and so we study these things in a mix of standalone (Java SE) applications and web applications. Then students build web applications that use the Spring MVC framework to rationalize their designs into coherent request/response cycles. They use Spring command objects to manage HTML forms and their data, and connect these to the validation framework. We connect our applications to persistent stores and study the DAO and ORM modules, to better understand JDBC and JPA persistence models and declarative transaction control.

Spring-MVC Web Applications Class Goals

  • Build a web application as a Spring DispatcherServlet and associated application context, with declared beans acting as controllers, command objects, and view resolvers
  • Build and manage HTML forms with Spring command objects and custom tags
  • Use Spring interceptors to implement horizontal features in the web application
  • Connect business objects to persistent stores using Spring's DAO and ORM modules

Spring-MVC Web Applications Class Outline

  1. Introduction to Spring
    1. Overview of Spring
      1. Java EE: The Good, The Bad, and the Ugly
      2. Enter the Framework
      3. Spring Value Proposition
      4. The Spring Container
      5. Web Applications
      6. Persistence Support
      7. Aspect-Oriented Programming
      8. The Java EE Module(s)
      9. Integrating Other Frameworks
    2. The Container
      1. JavaBeans, Reconsidered
      2. The Factory Pattern
      3. Inversion of Control
      4. XML View: Declaring Beans
      5. Java View: Using Beans
      6. Singletons and Prototypes
    3. Instantiation and Configuration
      1. Configuring Through Properties
      2. Configuration Namespaces
      3. The p: Notation
      4. Bean (Configuration) Inheritance
      5. Configuring Through Constructors
      6. Bean Post-Processors
      7. Lifecycle Hooks
      8. Integrating Existing Factory Code
    4. Dependency Injection
      1. Complex Systems
      2. Assembling Object Graphs
      3. Dependency Injection
      4. Single and Multiple Relationships
      5. The Utility Schema
      6. Bean Aliases
      7. Inner Beans
      8. Autowiring
      9. Auto-Detecting Beans
      10. @Autowired Properties
      11. Best Practices with Spring 2.5 Annotations
    5. Assembling Object Models
      1. Collections and Maps
      2. Support for Generics
      3. The Spring Utility Schema (util:)
      4. Autowiring to Multiple Beans
      5. Order of Instantiation
      6. Bean Factory vs. Application Context
    6. Validation
      1. Validators
      2. The Errors Object
      3. ValidationUtils
      4. Error Messages and Localization
      5. Nested Property Paths
  2. Web Applications
    1. The Web Module
      1. Servlets and JSPs: What's Missing
      2. The MVC Pattern
      3. The Front Controller Pattern
      4. DispatcherServlet
      5. A Request/Response Cycle
      6. The Strategy Pattern
      7. JavaBeans as Web Components
      8. Web Application Contexts
      9. Handler Mappings
      10. "Creating" a Model
      11. View Resolvers
    2. Customizing Control Flow
      1. HandlerMapping Options
      2. ViewResolver Options
      3. Chaining View Resolvers
      4. Triggering Redirects
    3. Controllers and Commands
      1. Working with Forms
      2. Command Objects
      3. The Template Method Pattern
      4. Command Controllers
      5. Data Binding
      6. MultiActionController
      7. Scope and Granularity of Command Objects
      8. Auto-Detecting @Controllers
      9. The @RequestMapping Annotation
    4. Binding and Validation
      1. Property Editors
      2. Custom Property Editors
      3. Registrars
      4. Validating Form Input
    5. Form Controllers
      1. Form Controllers
      2. AbstractFormController
      3. SimpleFormController
      4. Spring Custom Tags
      5. <form:form> and Friends
      6. <form:errors>
      7. Reporting Errors
      8. @RequestMapping for Form Controllers
      9. @RequestMapping for Multi-Action Controllers
      10. Other Handler Annotations
      11. Controller vs. @Controller
    6. Refining the Handling Cycle
      1. The Intercepting Filter Pattern
      2. Exception Handling
      3. Interceptors
      4. The Decorator Pattern
      5. Context and Lifecycle
      6. Awareness Interfaces
      7. Support and Utility Classes
      8. "Death By XML"
  3. Persistence
    1. Templates and DAOs
      1. The DAO Pattern
      2. The DaoSupport Hierarchy
      3. The DataAccessException Hierarchy
      4. JDBC DAOs
      5. JdbcTemplate and RowMapper
    2. Working with JPA
      1. Object/Relational Mapping
      2. The Java Persistence API
      3. Blending Spring and JPA
      4. Entity Manager Factories
      5. Configuration Issues
    3. Transactions
      1. Transaction Managers
      2. Transaction Advice
      3. AOP vs. Annotations
      4. JDBC Transaction Manager
      5. JPA Transaction Manager

Spring-MVC Web Applications Class Prerequisites

Experience in the following areas is required:

  • Servlets programming
  • JSP

Spring-MVC Web Applications Class Materials

Each student will receive a comprehensive set of materials, including course notes and all the class examples.

Class Technical Requirements

Our computer technical requirements and setup process is easy, with support just a click away:

About The Training Provider: Webucator
Webucator - Webucator delivers customized onsite, instructor-led online and at-your-own-paced technical training throughout the United States and worldwide. Webucator has trained 40 percent of the Fortune 100. Onsite Class Delivery: Our onsite classes are delivered for private groups at your offices or a location of your choice. These classes can also be delivered through a web conference for...
tcw11-gfc-v396M-10/25/09-11:20:36-()[B]-[A]-[A] -16:29:19