When does it make sense to use Spring WebFlow on top of Spring MVC?

LeoNYC picture LeoNYC · Jul 27, 2010 · Viewed 7.4k times · Source

Spring MVC has become a very popular framework for building enterprise web applications. Any complex web application has certain flows that need to be coded, including some conditional flows (i.e., show order processed if the credit card information was correct, or validation errors if something was not entered correctly).

When does it make sense to use Spring WebFlow on top of Spring MVC? What should be the decision making process regarding using Spring WebFlow?

Answer

John Vint picture John Vint · Jul 27, 2010

If you have a web application that has some application process. For example, if you have some kind of sign up process that one button can go to one page while another can go to a different page. Spring Webflow can handle transitioning to different sets of processes very well.

Basically, if some part of your application is linked and pages depend on each other during the course of an execution SWF is good to use.