Saturday, September 16, 2017

Spring MVC vs Web Flow

Spring MVC is an implementation of MVC design pattern.
Spring Webflow is an implementation of a "web flow" state machine.

Spring Web flow sits on top of Spring MVC and allows you to define complex navigational flows i.e you can not use spring web flow without spring mvc.

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. With this you will have fine control on entire flow.

Simple rule of thumb:-
If you have lots of independent single pages, which don't do much and don't interact, use plain old MVC.
If you have a set of pages that represent a workflow, use webflow to model the workflow.

No comments:

Post a Comment

Web Development

Design Phase:- Below all these represent different stages of the UX/UI design flow:- Wireframes represent a very basic & visual repr...