Tutorial Spring MVC and WebFlow

Para quem entende inglês e está interessado em aprender um pouco mais sobre o Spring eu sugiro que acompanhe a série de vídeos do pessoal do Virtual Pair Programmers no canal de VPPChesterwood (http://www.youtube.com/user/VPPChesterwood) do youtube.

Trata-se de uma série de vídeos do curso deles de Spring e Webflow, obviamente os vídeos não são completos pois o negócio dos caras é vendê-los o que vale a pena fazer já que concedem desconto de 20% para estudantes, bastando entrar em contato por e-mail e solicitar o código promocional.

Para quem não sabe o que é Webflow segue uma breve explicação: é um plugin do mesmo fabricante do Spring, o Spring Source Community, capaz de controlar fluxo de navegação do usuário com mais propriedade. Indicado quando é necessário o controle mais preciso da navegação. Para saber mais leia este post.

Abaixo você encontra os vídeos na forma cronológica do curso e com a descrição do capítulo. Aproveitem!

 

1 – Introduction
A quick overview of the course.

 

2 – Getting Started
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
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
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
We now see how to pass parameters from a web page to a controller, and then how to handle sessions.

 

6 – Form Handling
We’ll now add a more complex form and we’ll see how to “bind” an object to the form.

 

7 – Validation
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)
An alternative to manual validation is “declarative validation”, covered by a Java standard called JSR-303.

 

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

 

10 – View Resolvers
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
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
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
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
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
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 – Practicals and Code
All the code you need for the course.

Comente este artigo!