Hi Greg, Excellent work. i am looking for the same solution. i tried implementing your interceptor , but it is throwing exception ... "java.lang.UnsupportedOperationException: Don't use default servlet session".
near session.setAttribute(ACTION_MESSAGES_KEY,actionMessages); can you help me solving this issue? Thanks in advance. On Mon, Jul 7, 2008 at 7:32 PM, Greg Lindholm <[EMAIL PROTECTED]> wrote: > > > dusty wrote: > > > > I have found > > <interceptor-ref name="messages"> > > <param > > name="operationMode">AUTOMATIC</param> > > </interceptor-ref> > > to work great for addActionMessage. To tell you the truth I haven't > tried > > it for addActionError or fieldErrors. You would redirect after an error > > that should render input? Really? > > > > > > Sorry, don't know what "messages" is, it's not part of the > struts-default.xml (2.0.11.1). > > I wanted an Interceptor that didn't require any per-action configuration > and > would preserve all messages across a redirect. I have it configured as > part > of my default stack. > (I don't have a use-case where the fieldErrors would be useful across a > redirect but somebody may and it was easy enough to include them.) > > > -- > View this message in context: > http://www.nabble.com/-S2--Preserving-messages-across-a-Redirect-in-Struts-2-tp18245061p18317448.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >