title: Struts2 action type json call all the functions from Action class
body: <p>I have used Struts2 json like this</p>
  
  <pre><code>&lt;package name="showcase" extends="json-default" &gt;  
  
      &lt;action name="DashBoardActivityJson" class="com.myDrDirect.doctor.action.patientOrderDetails" method="getRecentOrderDetails" &gt;
         &lt;result name="success" type="json" /&gt;
      &lt;/action&gt;               
   &lt;/package&gt;
  </code></pre>
  
  <p>But here my problem is little bit crazy. When i access a function inside a class it call every function in the page even though i have mention here method name. That is when i set <code>type="json"</code> the action call both <code>getRecentOrderDetails</code> and <code>getUserDetailses</code> from the class 
   <code>com.myDrDirect.doctor.action.patientOrderDetails</code> but here i only call getRecentOrderDetails. Do anybody feels this problem before, please help.</p>