Your own your own, you will have to track which action you were going to yourself.
You can use the Preparable interface in your actions to store which action in the session. or... Maybe in the redirect you could pass the action name you came from. You can get the action name by adding a method like this to your base action class public String getActionName() { return ActionContext.getContext().getName(); } On Thu, Jul 8, 2010 at 12:18 AM, Franz Wong <franzw...@gmail.com> wrote: > Hi, > > I am using Struts 2. I have a page which contains 2 forms. Each form > corresponds to different Actions (Action B / C). The action adds > ActionMessage and redirects back to the original page. I would like to > display the ActionMessage in the form which triggered the Action. How do I > perform this in Struts? As I see, addActionMessage method only accepts > single string as parameter. > > Action A => Main JSP (Containing 2 Forms) => Action B / C (Both action adds > ActionMessage) => Action A > > Thanks. > Franz > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org