• 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

Data transfer within web flow using links in Spring web-flow

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to create Spring web flow application. I have following situation-

flow.xml :




signup.jsp:


Inside method myActionBean.lookupUser(user), I can see that user.loginName is being passed which was entered in the form.
However, if I use link instead of button to submit the form



I can see that user.loginName is null.

Can anybody explain me the reason and workaround ?
Thanks in advance!

Regards,
Snehal Masne
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well with the link way your not submitting the values in your input fields. When you click the submit button it serializes the form and appends the request parameters i.e. ?name=value. If you want to do this via a link you will need a jquery/javascript function to intercept that link click serialize the form and post it to the server.

 
reply
    Bookmark Topic Watch Topic
  • New Topic