I use,
redirectAttributes.addFlashAttribute("msg","Level complete")
to access message on the redirected jsp.
How can I use this redirect attribute when I am redirecting to a Webflow ?
I use,
redirectAttributes.addFlashAttribute("msg","Level complete")
to access message on the redirected jsp.
How can I use this redirect attribute when I am redirecting to a Webflow ?
When flash attribute is used to send data from one controller to a webflow we have to bind redirected flash attribute (from controller) to the response JSP page of the webflow. For this purpose we can maintain a backend FormAction class to bind the value to any scope of webflow. In flow xml we can can call custom method on entry of a view state.
Custom Method of FormAction class would be like
This method call should be included in the entry section of a view state. So flow xml should have these portion.