title: How to pass the parameter from one action to other
body: <p>hi I am new in Struts2 and want to send parameter from one action to other on redirection</p>
  
  <p>My form is like </p>
  
  <pre><code>&lt;s:form action="saveComment"&gt;
                              &lt;s:push value="ai"&gt;
                                  &lt;s:hidden name="id"/&gt;
                                  &lt;table cellpadding="5px"&gt;
                                      &lt;tr&gt;&lt;td&gt;&lt;s:textarea name="description" rows="5" cols="60" theme="simple" /&gt;
                                          &lt;/td&gt;
                                          &lt;td&gt; &lt;s:submit type="image" src="images/sbt.gif"  &gt;
                                               &lt;/s:submit&gt;
                                          &lt;/td&gt;&lt;/tr&gt;
  
                                  &lt;/table&gt;
                              &lt;/s:push&gt;
                          &lt;/s:form&gt;
  </code></pre>
  
  <p>and my struts.xml file is  like</p>
  
  <pre><code> &lt;action name="saveComment" method="saveComment" class="com.weaverants.web.AIAction"&gt;
  
          &lt;result name="success" type="redirect"&gt;
              &lt;param name="actionName"&gt;displayAI&lt;/param&gt;
              &lt;param name="aiId"&gt;${aiId}&lt;/param&gt;
          &lt;/result&gt;
  
      &lt;/action&gt;
  
  
     &lt;action name="displayAI" method="displayAI"  class="com.weaverants.web.AIAction"&gt;
          &lt;result name="success" &gt;/display_ai.jsp&lt;/result&gt;
      &lt;/action&gt;
  </code></pre>