This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
If you redirect to a new action, it's a new instance, and the original action's properties are lost. You could consider using the store interceptor.
Joined: Feb 11, 2010
Unfortunately I'm trying not to use type="redirect-action", rather I want an include. (This is because of problems we have with handling redirects. Firewalls, etc..)
So everything is happening in the same request. I tried your suggestion. When I debugged the MessageStoreInterceptor, it went something like this:
MessageStoreInterceptor.before for EditAction -> do nothing
MessageStoreInterceptor.before for ViewAction -> try to retrieve error messages from session (they're not there yet)
MessageStoreInterceptor.after for ViewAction -> do nothing
MessageStoreInterceptor.after for EditAction -> try to store error messages to session (to late)