File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes In Spring Webflow Is the execution URL request parameter necessary ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "In Spring Webflow Is the execution URL request parameter necessary ?" Watch "In Spring Webflow Is the execution URL request parameter necessary ?" New topic
Author

In Spring Webflow Is the execution URL request parameter necessary ?

Praveen Reddy
Ranch Hand

Joined: Jul 12, 2006
Posts: 51
In my website I am ussing Spring Web Flow depend on an 'execution' request parameter in the URL? It's making our application rather brittle. SWF appends ?execution=(some flow execution key).

for example:
http://www.mywebsite.com/swf/booking.do?execution=e2s2
http://www.mywebsite.com/swf/reservation.do?execution=e3s2


I am having two issues

1) When user bookmark the above url and try to acesses later its going to 404 page because its not able to get execution key e2s2. Can someone guide me how to handle this for diffrent pages.

2) If user leaves the browser unused for 5 to 8 min its not able to get the flow execution key and goes to 404 page.
We're getting way too many exceptions along the lines of:
org.springframework.webflow.execution.repository.F lowExecutionRestorationFailureException: A problem occurred restoring the flow execution with key...


Can I either suppress the flow id completely or hide it via a hidden form field?


Can someone please suggest me something.

Thanks in advance,
Praveen
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

That is what Spring WebFlow is using to do the WebFlow. It is an integral part of WebFlow.

You can bookmark

http://www.mywebsite.com/swf/booking.do

Because the is the entire WebFlow URL. You can also set things like WebFlow's timeout such that it will hold the flow for longer time.

The whole purpose of WebFlow is when you have multiple request responses in a use case, and Spring WebFlow will manage it so that the back button and multiple tabs don't cause havok, among other things. The way that it can do that is by some special key that Spring holds onto to manage it all, that is the execution key.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: In Spring Webflow Is the execution URL request parameter necessary ?