spring - Access flashattribute in Springflow -


added value redirectattrs.addflashattribute("some", value); , redirect springflow

how access flashattribute some in springflow?

<on-start>  <evaluate expression="do.action(???)" result="flowscope.someobject" /> </on-start> 

try:

<evaluate expression="webflowutils.getflashattribute(externalcontext, 'some')"/> 

with:

@component public final class webflowutils {      public object getflashattribute(externalcontext context, string attributename) {         map<string, ?> flashmap = requestcontextutils.getinputflashmap((httpservletrequest) context.getnativerequest());         return flashmap != null ? flashmap.get(attributename) : null;     } } 

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -