• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
I'd appreciate it if you pronounced my name correctly. Pinhead, with a silent "H". Petite ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic