struts2: ActionMessages and redirects

Discussions

Web tier: servlets, JSP, Web frameworks: struts2: ActionMessages and redirects

  1. struts2: ActionMessages and redirects (1 messages)

    Hi all, i'm new to STRUTS2 and want to run the following: A click on a submit button performs an action. In the action addActionError() and addActionMessage() is used. If a simple action result is defined in struts.xml example.jsp that works fine, the errormessage is shown but the result URL includes "example.action". But I need a result URL like "example.jsp". So i did the following to get a .jsp URL: ${redirectURL} In the Action the redirectURL String is defined. That works fine. But now the ActionError is lost after that redirect. Either the .jsp URL works or the ActionMessage. I need both to work. Can somebody help me? Thanks!
  2. ${redirectURL} -- Deha Peker