aspose file tools*
The moose likes Spring and the fly likes How do you pass command related parameters from page to page in Spring Web Flow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How do you pass command related parameters from page to page in Spring Web Flow" Watch "How do you pass command related parameters from page to page in Spring Web Flow" New topic
Author

How do you pass command related parameters from page to page in Spring Web Flow

VenkataPrasad Regula
Ranch Hand

Joined: Jun 30, 2011
Posts: 63
In Spring web flow I am finding something as below where you can set variables to a request scope or probably any other required scope as session, flash etc. I have a form in a jsp page which has a command object named(toDO) assigned to it. The same command object is used in all the three pages and finally the command object is suppose to be passed as a parameter to be added at the backend. My doubt is how do we set the varables of command object in a request scope or else add the variable to the command, once the page is passed over. In mvc we have something called action attribute for the form element. Here i am not knowing how to set a specific action for each page on the jsp form. I am finding action in the web flow. I am not sure if that action and the action we use for a form submit are the same. If I say flow.html as the action on the jsp page, to my understanding it has to go to the begining of a webflow, because for all the pages we have tha same flow.html as the action which is the begining of the flow.
Setting a value in request scope

VenkataPrasad Regula
Ranch Hand

Joined: Jun 30, 2011
Posts: 63
Hi, hoping it would be useful to you I am pasting my todo-flows.xml file below


VenkataPrasad Regula
Ranch Hand

Joined: Jun 30, 2011
Posts: 63
The following url has answerd the second part of the question. How to save parameters to a command object and form submission issue. The thing left out is how to pass parameters to a method in web flow 2

http://www.javalobby.org/articles/spring-webflow/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do you pass command related parameters from page to page in Spring Web Flow