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
Post a Comment