title: Calling method with arguments in struts 2?
body: <p>I have a method given below in struts 2 action class;</p>
  
  <pre><code> public String add(String boo){
  //codes here
      }
  </code></pre>
  
  <p>I want to call the add method.
  And my struts.xml </p>
  
  <pre><code>&lt;action name="Login" class="com.json.action.JsonAction" method="add"&gt;
          &lt;param name="boo"&gt;boo&lt;/param&gt;
                  &lt;result name="success"&gt;/success.jsp&lt;/result&gt;
          &lt;/action&gt;
  </code></pre>
  
  <p>And it shows an error like 
  java.lang.NoSuchMethodException: com.json.action.JsonAction.add().
  How can i call the add method?</p>