Application is based on Stripes & Spring. Every time I call FlashScope.getCurrent(..) method the new clean instance of FlashScope is returned. Though if I call FlashScope.getAllFlashScopes(..) I get an array with the FlashScope that was instantiated during previous request and contains all the parameters I stored there. Any thoughts about the reason of that trouble?
A:
You might want to ask this very specific Stripes question on the:
[email protected] mailing list
Kdeveloper
2010-10-20 12:11:27
A:
Did you by any chance wrote FlashScope.getCurrent(req, **true**)
?
Cos the doc says if the second argument is true, it'll create a new one...
Zefi
2010-10-23 01:49:15
It says that a new scope will be created if it does not exist already. Anyway, I tried both the options.
n0weak
2010-10-25 09:45:55
A:
I'm guessing you're not supposed to access whatever you've placed in the flash scope
that way.
Try creating a field in the ActionBean
you redirected to, with the same name as the parameter you've put in the flash scope. It should auto-bind to that field.
Zefi
2010-10-25 16:46:10