Re: [S2] MessageStoreInterceptor

2007-09-23 Thread Adam Hardy
Digging deeper into the struts2 architecture I can see now how the ActionErrors tag is quite a lightweight thing. I'd rather avoid setting up my own mechanism for handling session usage in an action superclass as I did with struts1 - I prefer the idea of an interceptor handling it, but as I im

Re: [S2] MessageStoreInterceptor

2007-09-20 Thread Don Brown
I agree it could be made easier. I'd like to see it combined with a flash scope-type interceptor so that more than just messages could be passed via the session automatically. As for your solution, you could implement the SessionAware interface and get the session map directly, then you could do

[S2] MessageStoreInterceptor

2007-09-20 Thread Adam Hardy
From the javadocs, this interceptor seems to have a relatively complicated configuration that caters for situations over and above what I need relating to message and error caching when redirects are involved. A solution to simplify MessageStoreInterceptor would be where it puts the msgs and e