Sunday, January 5, 2014

What are the differences between Spring MVC and Spring Web Flow?

Ed
Mohammad Javed MandaryHas experience working with: 1. Spring Core 2. Spring MVC 3. Spring Batch 4. Spring Integration 5. Spring REST 
Votes by Alex Czar and Miguel Paraz.
Spring MVC is the standard MVC solution provided by SpringSource for your web applications , so you have the concept of a view which is for example your JSP page , a controller class (annotated with @Controller ) and a model which represents your data.

Spring Webflow is built on top of Spring MVC and differs slightly in purpose although it inherits most of the features of Spring MVC , webflow is more suited for wizard style applications where you enter data on a form and that has to pass a series of validations or capture of number of additional data on different pages before you complete your business process.
  
Comment •  • Thank • Report • 28 Jan, 2011
Mohammad Javed Mandary
Fahd AkbarDirector of Engineering, MashON.com 
Assuming you are:

a. trying to decide which one suits your use case
b. asking from a client request perspective
- in an MVC paradigm a request travels through a controller, gets updated with something from the model and ends up at the dictate View. 
- in a web flow paradigm a request may go through various paths and views depending on the rules. Credit card processing is a simple example of a paticular web flow. 

Following is worth reading for the latest on Spring Web Flow:http://blog.springsource.com/200...
  
Comment •  • Thank • Report • 19 Jan, 2011

No comments: