Excellent way to learn new software and programs. Exceeded my expectations. More Testimonials »

Spring-MVC Web Applications

Delivery Options

Class Date and Time Price Pricing Information
$2,375.00
or 5 vouchers vouchers
$2,375.00 or 5 vouchers vouchers
$2,375.00 or 5 vouchers vouchers

Class Description

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.

Class Goals

  • Understand the scope, purpose, and architecture of Spring
  • Use Spring's bean factories and application contexts to declare application components, rather than hard-coding their states and lifecycles
  • Use dependency injection to further control object relationships from outside the Java code base
  • Use annotations to take advantage of Spring post-processors for automated bean instantiation and wiring
  • Create validators for business objects, and associate them for application-level and unit-testing uses
  • 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

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

Class Materials

Each student in our Live Online and our Onsite classes receives a comprehensive set of materials, including course notes and all the class examples.

Class Prerequisites

Experience in the following areas is required:

  • Java programming
  • Basic knowledge of XML
  • Servlets programming
  • JSP

Technical Requirements

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


  • Java ®, all Java-based marks, Hibernate ®, and all Hibernate-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. or its subsidiaries in the U.S. and other countries.
Client Success
  1. Independent Survey
  2. Client List
  3. Testimonials
Join The Team
  1. Learn how you can become a Webucator Trainer
  2. Career Opportunities
Locations
Compare Us
Watch 3-minute Demo Video
of Live Online Training:
Learn the benefits of online training with Webucator
Webucator is a Registered Education Provider (R.E.P.) approved by PMI to issue professional development units (PDUs) for our training courses.

Free Webinars

A Crash Course in CSS

Wed, 3/21 1:00 PM EST

Recent Blog Articles

Java Frameworks: Why You Should Care

Posted on May 14, 2010 by rsakowski

In previous articles, I talked a lot about the Model/View/Controller design pattern. Using it is recommended for all programming ...

© Webucator, Inc. All rights reserved. | Toll Free: 1-877-932-8228 | From outside the USA: 315-849-2724| Fax: 315-849-2723