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 Spring and the fly likes Flowscope outside Spring Web Flow 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 » Spring
Bookmark "Flowscope outside Spring Web Flow " Watch "Flowscope outside Spring Web Flow " New topic
Author

Flowscope outside Spring Web Flow

Arun Prasath
Ranch Hand

Joined: May 23, 2007
Posts: 80
Hi,

I am using Spring Web Flow 2.0. Could anyone please let me know how to access flow scoped variables outside spring web flow, may be in servlet, filter or mvc controller ?

I tried to use flow execution key to get the FlowExecution from flow repository, but it always returns null, which I found found here, http://www.ervacon.com/products/swf/tips/tip1.html. But, It does not seem to be working.

Please help to solve this !.

Arun Prasath
Ranch Hand

Joined: May 23, 2007
Posts: 80
Could anyone clarify my question ?
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

Looks like there are some thread bound context holder classes

ExternalContextHolder and RequestContextHolder

I am not sure if these will help you or not.



Alternatively if you have an evaluate action you can pass it in, and have your Controller method accept a RequestContext.



[How To Ask Questions][Read before you PM me]
 
 
subject: Flowscope outside Spring Web Flow
 
Similar Threads
Spring, JSF , SWF & Struts- doubt???
ProSpring or Spring in Action
Seam and Spring Web Flow
In Spring Webflow Is the execution URL request parameter necessary ?
Thoughts on using Spring Web-Flow with Ajax-ian type wizards [pros/cons]