title: Passing parameters in url while redirecting in Struts2
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5221475/strut2-get-property-value-in-next-action">Strut2 - Get Property value in next Action</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to achieve the following using Struts2 </p>
  
  <pre><code>response.sendRedirect("Pay.jsp?msg=transfer");
  </code></pre>
  
  <p>This is what I am doing:</p>
  
  <pre><code> &lt;action name="AddPayAction" class="controller.AddPayAction"&gt;
              &lt;param name="paraA"&gt;&lt;/param&gt;
              &lt;param name="paraB"&gt;&lt;/param&gt;
              &lt;param name="msg"&gt;SomeMessage&lt;/param&gt;
              &lt;result name="error"&gt;/Error.jsp&lt;/result&gt;
              &lt;result name="success" type="redirect"&gt;/Pay.jsp&lt;/result&gt;
   &lt;/action&gt;
  </code></pre>
  
  <p>Any suggestions why the above doesn't get redirected as:</p>
  
  <pre><code>      Pay.jsp?msg=SomeMessage
  </code></pre>