Spring MVC and WebFlow

Try for free!

Subscribe and stream all our courses
from just $30.00 per month
Start my free trial

Spring MVC and WebFlow

featuring Session Handling, Validation with JSR 303, PDF and Excel Views, Ajax and WebFlow

contains over 8 hours of video - equivalent to 3 days of live training.

  • By the end of this Spring MVC Training course, you will be able to work on professional standard Spring-MVC projects.
  • Starting from a basic Spring system with just a console and test harness, we build up a web application front end and demonstrate the major concepts in Spring-MVC.
  • The final three chapters cover the related topic of WebFlow. We explain when it should be used (and when not), and as always we build a full working system together, from scratch.
  • All software needed is provided (except for an IDE - any will do).
  • Note that this course covers Spring-MVC 2.5, 3.x and 4.x, the legacy method of writing controllers in Spring-MVC 1 and 2 is only mentioned briefly.
You will need at least basic knowledge in fundamental Spring (dependency injection and configuring the Spring XML). You can get this by following our standard Spring Training Course.

We also assume you are familiar with Java - writing classes, creating objects and the basic Java syntax.

Some HTML knowledge will be useful and a little background research might be needed if you are new to HTML.

Contents

Having problems? check the errata

Introduction 6m 31s

A quick overview of the course.

Preview

Getting Started 26m 19s

We configure your development environment and Tomcat. In case you need a review of plain MVC, we give a quick overview. You may not need this chapter if you have already done web development and are familiar with MVC.

Watch

Spring MVC Controllers 36m 10s

We now write our first Spring-MVC controller. We'll see how to configure the "DispatcherServlet" and what the @RequestMapping annotation is.

Preview

Automatic Controller Scanning 10m 52s

Although the controller we previous wrote works, many projects use an alternative approach which reduces the amount of XML you need. In this short chapter we show how this works.

Watch

Parameters and Sessions 43m 15s

We now see how to pass parameters from a web page to a controller, and then how to handle sessions.

Watch

Form Handling 33m 0s

We'll now add a more complex form and we'll see how to "bind" an object to the form.

Watch

Validation 38m 50s

The most important aspect of Forms is how to check they are valid before you process them. Here, we add "manual validation" to your form.

Watch

Declarative Validation (JSR-303) 35m 20s

An alternative to manual validation is "declarative validation", covered by a Java standard called JSR-303.

Preview

Alternative Views 27m 35s

As well as JSP, Spring-MVC supports a range of different views. Here we look at PDF and Excel spreadsheets.

Watch

View Resolvers 28m 47s

Many projects use View Resolvers with Spring-MVC - these remove hardcoding from your controllers. We'll add two view resolvers to our code and see the benefit.

Watch

Ajax and JSON 43m 14s

We give a full overview of Ajax in case you're new to it. Then we see how a simple annotation is used to make a Spring controller work with an Ajax client.

Watch

WebFlow - Getting Started 44m 23s

WebFlow is an add-on to Spring-MVC. We'll see when it should be used, and then go through the configuration steps.

Watch

WebFlow - Complex Flows 48m 31s

Now we're set up, we'll see how to write a professional standard flow using a very expression XML description.

Watch

WebFlow - Going Further 51m 43s

We need another chapter to complete our WebFlow knowledge! We'll see how the back button and refresh buttons work, and what Flash Scope is.

Watch

Where to go Next 9m 52s

We've aimed to get you to a professional standard in Spring-MVC and WebFlow. We can't quite cover everything, so we now describe your next steps. We also briefly cover the legacy Spring-MVC controllers.

Watch

Bonus Chapter - MVC JavaConfig 47m 34s

After the course was released, it became very popular to use JavaConfig instead of XML for configuration. We have a separate module available on JavaConfig, but we thought it only fair to add the MVC section of the course to here. The project used on the course is different, but all of the concepts should apply. The chapter assumes you've already learnt JavaConfig - you can find details of this in the Spring Fundamentals course, or our separate JavaConfig module.

Watch
Copyright ©2021 VirtualPairProgrammers.com