views:

32

answers:

3

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
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
It says that a new scope will be created if it does not exist already. Anyway, I tried both the options.
n0weak
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