This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
VenkataPrasad Regula
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, hoping it would be useful to you I am pasting my todo-flows.xml file below


 
VenkataPrasad Regula
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic