Meaningless Drivel is fun!*
The moose likes Spring and the fly likes Web Flow View state identification parameter at client side 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 "Web Flow View state identification parameter at client side" Watch "Web Flow View state identification parameter at client side" New topic
Author

Web Flow View state identification parameter at client side

Moin Yadageri
Greenhorn

Joined: Jun 19, 2008
Posts: 10
Hi,
I have a query regarding spring web flow.
Is there any way i can determine what view state the user is shown at client side. i mean is there any parameter that is present in the flow/request scope which i can use in my jsps to get the value of the view state.
I know it can be done by setting a property in the form bean with a value for each view and using that property in the JSPs, i was kind of thinking whether spring web flow provides that by default.

~ Moin
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
You can use flowRequestContext, take look at RequestContext API.


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Moin Yadageri
Greenhorn

Joined: Jun 19, 2008
Posts: 10
requescontext would give me the view name in the action classes, i was looking at a view identifier which i can use in my JSP.
Something similar to flowExecutionKey (which i can access using ${flowExecutionKey}), i was looking for a property present in flow/request scope which can identify the view state rendered.

~ Moin
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
You can use RequestContext.getCurrentState().getId(). Is that what you want?
Moin Yadageri
Greenhorn

Joined: Jun 19, 2008
Posts: 10

i was able to identify the view state using the flowexecutionContext object in the jsp, ${flowExecutionContext.activeSession.state.id}.

Thanks.

~ Moin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web Flow View state identification parameter at client side
 
Similar Threads
JSF client side state saving
how to come enter web flow at a specific point
collection getting appended on refresh of page
Consuming 3rd Party web services
Pre-written servlett and view with spring mvc