aspose file tools*
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
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.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Webflow - How to get the request parameters from query string in my form