Book Image

Spring Web Flow 2 Web Development

By : Markus Stäuble, Sven Lüppken
Book Image

Spring Web Flow 2 Web Development

By: Markus Stäuble, Sven Lüppken

Overview of this book

<p>Many web applications need to take the user through a defined series of steps such as e-commerce checkouts or user registrations. Spring Web Flow works well for rich and flexible user interaction, additionally it helps you to describe the flow of websites in complex processes. Spring Web Flow 2 provides the perfect way to build these kinds of features, keeping them secure, reliable, and easy to maintain.<br /><br />This book provides a platform on which you can build your own applications and services. It gives detailed information on Spring basics and covers core topics involving testing, security, and so on. We develop a complete, robust web application using the latest version of Spring, where page navigation is done on-the-fly.<br /><br />This book teaches you how to work with Spring Web Flow. It covers both basic and advanced aspects and provides a detailed reference of the features Spring Web Flow. The book helps readers to extend the framework. <br /><br />The integration of Spring and Java Server Pages is clearly explained in the book. The book also explains the essential modules of the complete Spring framework stack and teaches how to manage the control flow of a Spring web application.<br /><br />The Spring Faces module will provide integration between Spring Web Flow and Java Server Faces (JSF). Testing, an important aspect of the software development process is covered towards the end; the question of how to test a Spring Web Flow application is answered.</p>
Table of Contents (14 chapters)
Spring Web Flow 2 Web Development
Credits
About the Authors
About the Reviewers
Preface
flow.trac:The Model for the Examples

Summary


In this chapter, we showed you what Spring Security is, how it works, and how to integrate it into your flows. You learned that Spring Security is a part of the Spring portfolio and a very flexible and easy-to-use security framework that you can use for all your security needs. This is true not only for web applications, but also for your rich-client applications which are based on Spring.

We explained how to configure Spring Security, the different types of AccessDecisionManagers, and how to write your own AccessDecisionVoter.

The chapter ended with a small example, which showed you how to use Spring Security in your own projects. All you have to do for this is:

  1. 1. Set up Spring Security. This includes your web.xml file and your application context configuration file. Think about which AccessDecisionManager you want to use and is suitable for your use case. By default, an AffirmativeBased manager will be used.

  2. 2. Add the secured element to your flow definition and include all roles...