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.
Having problems? check the errata for this course.
1 |
Introduction |
Preview
6m 31s |
|
A quick overview of the course. | |||
2 |
Getting Started |
Watch
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. | |||
3 |
Spring MVC Controllers |
Preview
36m 10s |
|
We now write our first Spring-MVC controller. We'll see how to configure the "DispatcherServlet" and what the @RequestMapping annotation is. | |||
4 |
Automatic Controller Scanning |
Watch
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. | |||
5 |
Parameters and Sessions |
Watch
43m 15s |
|
We now see how to pass parameters from a web page to a controller, and then how to handle sessions. | |||
6 |
Form Handling |
Watch
33m 0s |
|
We'll now add a more complex form and we'll see how to "bind" an object to the form. | |||
7 |
Validation |
Watch
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. | |||
8 |
Declarative Validation (JSR-303) |
Preview
35m 20s |
|
An alternative to manual validation is "declarative validation", covered by a Java standard called JSR-303. | |||
9 |
Alternative Views |
Watch
27m 35s |
|
As well as JSP, Spring-MVC supports a range of different views. Here we look at PDF and Excel spreadsheets. | |||
10 |
View Resolvers |
Watch
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. | |||
11 |
Ajax and JSON |
Watch
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. | |||
12 |
WebFlow - Getting Started |
Watch
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. | |||
13 |
WebFlow - Complex Flows |
Watch
48m 31s |
|
Now we're set up, we'll see how to write a professional standard flow using a very expression XML description. | |||
14 |
WebFlow - Going Further |
Watch
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. | |||
15 |
Where to go Next |
Watch
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. | |||
16 |
Bonus Chapter - MVC JavaConfig |
Watch
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. |