I have used Struts2 json like this
<package name="showcase" extends="json-default" >
<action name="DashBoardActivityJson" class="com.myDrDirect.doctor.action.patientOrderDetails" method="getRecentOrderDetails" >
<result name="success" type="json" />
</action>
</package>
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 type="json"
the action call both getRecentOrderDetails
and getUserDetailses
from the class
com.myDrDirect.doctor.action.patientOrderDetails
but here i only call getRecentOrderDetails. Do anybody feels this problem before, please help.