RE: [S2] ActionMessages and redirects

2007-06-05 Thread Gunnar Hillert
Hi, Thanks for your response. Yes, I think the interceptor will do. However, it just feels a bit clumsy to write 6 lines of XML in order to get functionality that Struts 1 provided in one. It may be a great solution for cases where your action messages have to survive multiple redirects but in 99

Re: [S2] ActionMessages and redirects

2007-06-04 Thread Al Sutton
Dave, The problem is that if your action uses addActionError and returns INPUT to get a redirect to another action the validation also uses teh input result of the action you've been redirected to. I agree that upon an error you want to go back to the input page, but if your error is added i

RE: [S2] ActionMessages and redirects

2007-06-04 Thread Dave Newton
--- Al Sutton <[EMAIL PROTECTED]> wrote: > at the moment there appears to be a bug in that if > you use addActionError, the message store > Interceptor, and you have the validation interceptor > enabled you will get redirected to the input result > of the action after the redirect :( I'm not s

RE: [S2] ActionMessages and redirects

2007-06-03 Thread Al Sutton
Hi Gunnar, I've been through the same thing, so I can help you out :). If your actions extend com.opensymphony.xwork2.ActionSupport you can then call the method; addActionMessage("string") Or addActionError("string"); Please note, "string" is the literal message, not a key into a properties f