Add a redirect message when doing Post then Redirect in Struts2


/ Published in: Java
Save to your folder(s)

Set parse attribute to true for the redirect-action result.


Copy this code and paste it in your HTML
  1. <result type="redirect-action">
  2. <param name="actionName">NextAction</param>
  3. <param name="parse">true</param>
  4. <param name="redirectMessage">${redirectMessage}</param>
  5. </result>

URL: http://www.vitarara.org/cms/struts_2_cookbook/post_and_redirect

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.