title: Using struts2 to redirect with dynamic parameters not working
body: <p>I'm having an issue while trying to redirect mapping with dynamic parameters.</p>
  
  <p><strong>The way I'm mapping in Struts2:</strong></p>
  
  <pre><code>&lt;action name="Delete" class="templateLalaAction" method="remove"&gt;
      &lt;result name="success" type="redirect-action"&gt;
          &lt;param name="actionName"&gt;LalaTemplatesDisplay&lt;/param&gt;
          &lt;param name="buId"&gt;${buId}&lt;/param&gt;
      &lt;/result&gt;
      &lt;result name="failure" type="redirect-action"&gt;
          LalaTemplatesDisplay
      &lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p><strong>The method "remove" in the action:</strong></p>
  
  <pre><code>remove() {
  
      putRequestAttribute("buId",Long.valueOf("1111"));
      return SUCCESS;
  }
  </code></pre>
  
  <p>if I do this, I'm setting the <code>buId=1111</code>, but when I run the app, the <code>url</code> ends with <code>buId=  (it's empty)</code>, i.e., no parameter is being passed. 
  if I comment the <code>putRequestAttribute</code> method, and set struts passing <code>buId</code> parameter as a <code>static</code> value:</p>
  
  <pre><code>&lt;action name="Delete" class="templateLalaAction" method="remove"&gt;
      &lt;result name="success" type="redirect-action"&gt;
          &lt;param name="actionName"&gt;LalaTemplatesDisplay&lt;/param&gt;
          &lt;param name="buId"&gt;1111&lt;/param&gt;
      &lt;/result&gt;
      &lt;result name="failure" type="redirect-action"&gt;
          LalaTemplatesDisplay
      &lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>It works and the <code>url</code> ends with <code>buId=1111</code>.</p>
  
  <p>I also read this <a href="https://stackoverflow.com/questions/784527/struts-2-parameters-between-actions">question</a> where the accepted answer teaches us to do the same I did, but if we read the comments the user did, we'll see he has the same problems I have. What am I possibly doing wrong?</p>