This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Spring Webflow - How to get the request parameters from query string in my form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring Webflow - How to get the request parameters from query string in my form" Watch "Spring Webflow - How to get the request parameters from query string in my form" New topic
Author

Spring Webflow - How to get the request parameters from query string in my form

Priyanka Dandekar
Ranch Hand

Joined: Aug 06, 2008
Posts: 52
Hi experts,
I am using SPRING MVC webflow using FlowController. When I submit a request using input page with same parameters

myid and zip code I get the response properly. but when I send the request using url like shown below it does not find the parameter values




I tried using following method call but the value is null



Let me know if I am doing something wrong here. Why spring MVC doesn't recognize query string parameters but works for normal form based submissions.

I would want to open my page to all kind of requests, and thats why I want to allow query String parameters.

Let me know your comments/ suggesttion



Priya - Mockup Tool | Java | Struts2 | Lucene
Priyanka Dandekar
Ranch Hand

Joined: Aug 06, 2008
Posts: 52
I figured out the issue and here is the solution for others benifit

Add a action state instead of view state in the flow xml like below



I still don't understand the reason why it doesn't get the request parameters from query string when I am using view state though. Let me know if you have some clue.


 
 
subject: Spring Webflow - How to get the request parameters from query string in my form
 
Similar Threads
Converting a Get Request into Post Request
I face some problem with any kind of jee framework. Think my learning process is not ok.
spring web flow-tiles
Webflow2: not pre-populating the form on back button
Configuring app url with welcome-file