aspose file tools*
The moose likes Spring and the fly likes Question on Spring Webflow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Question on Spring Webflow" Watch "Question on Spring Webflow" New topic
Author

Question on Spring Webflow

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9521
    
    2

What is this? Is this something like Struts? How different is it from Spring MVC?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Sagar Kale
Ranch Hand

Joined: May 02, 2008
Posts: 188
In traditional web application development, we have to manage UI flows programmatically, so these flows are hard to maintain. Spring Web Flow offers a flow definition language that can help separate UI flows from presentation logic in a highly configurable way, so the flows can be easily changed and reused.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9521
    
    2

How different is this from Struts then?
Sagar Kale
Ranch Hand

Joined: May 02, 2008
Posts: 188
I do not know Spring Web flow. But what I know about it is meant for making things easier for a developer when he/she is dealing with a flow of pages like user move from one page to another for specific goal. Struts do not provide you anything for special when you do coding for set of pages which will are considered as a group of pages for flow. This is what my concept of Spring Web flow. But I am not very sure about it.
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Jothi Shankar Kumar wrote:How different is this from Struts then?

It's for handle complex flow.
If you have a flow like this:


Imagine how you can implement this with Struts.

SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9521
    
    2

Then could we integrate WebFlow into an application which already employs Struts 2? Ok I understood the potential here but another question is how does WebFlow differ from Spring MVC?
Markus Staeuble
Author
Greenhorn

Joined: Apr 12, 2009
Posts: 16
"Spring Web Flow is the module of Spring for implementing flows. The Web Flow engine plugs into the Spring Web MVC platform and provides declarative flow definition language." (from the reference documentation)

Spring Web Flow is a optimal addition to Spring MVC, but it can't replace a controller framework.


Author of the book Spring Web Flow 2 Web Development. Available at http://www.packtpub.com/develop-powerful-web-applications-with-spring-web-flow-2/book
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9521
    
    2

But I'm not able to see te difference between a Controller that decides the page flow from this explicit Spring Web Flow??
Padmapriya Ranganathan
Greenhorn

Joined: Mar 04, 2009
Posts: 25
I'm also got confused, why do we need a separate Spring WebFlow for page flow? Can't we just deal this with Spring MVC itself?


Padmapriya
Sagar Kale
Ranch Hand

Joined: May 02, 2008
Posts: 188
Padmapriya Ranganathan wrote:I'm also got confused, why do we need a separate Spring WebFlow for page flow? Can't we just deal this with Spring MVC itself?


We can do it through programming. But spring web flow makes it far much easier do code and maintain that is what I feel.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question on Spring Webflow