title: How to get request parameter from actionB on execution of actionA
body: <p>I have a requirement that I need to get a request parameter from <code>actionB</code> on execution of <code>actionA</code>. You can see below that there is complex logic behind working out <code>strB</code> in <code>actionB</code>. I want to get the value of <code>strB</code> in <code>actionB</code> without having to repeat the complex logic. What's the best way to do that?</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;action name="actionA"
      class="com.mycompany.action.ActionA"
      method="input"&gt;         
      &lt;result name="input" type="tiles"&gt;page.actionA&lt;/result&gt;
  &lt;/action&gt;
  
  &lt;action name="actionB"
      class="com.mycompany.action.ActionB"
      method="readFromCache"&gt;         
      &lt;result name="input" type="tiles"&gt;page.actionB&lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  
  <pre class="lang-java prettyprint-override"><code>public class ActionA extends ActionSupport
      private String strA = new String();
      private String strB = new String();
      public String input() throws Exception {
          strA = "Hello";
          // do something here to get strB from ActionB
          strB = ...need help here...
          return INPUT;
      }   
      public String setStrA(String strA) throws Exception {
          strA = strA;
      }
      public String getStrA() throws Exception {
          return strA;
      }   
  }
  </code></pre>
  
  <pre class="lang-java prettyprint-override"><code>public class ActionB extends ActionSupport
      private String strB = new String();
      public String readFromCache() throws Exception {
          strB = ...complex logic here...;
          return INPUT;
      }   
      public String setStrB(String strB) throws Exception {
          strB = strB;
      }
      public String getStrB() throws Exception {
          return strB;
      }   
  }
  </code></pre>