title: Struts action inheritance
body: <p>I am new to struts 2. I have a question regarding the inheritance of struts action classes.</p>
  <p>For an application i am using struts2-jquery plugin to make use of the jquery grid tag. I have a simple struts action class called</p>
  <blockquote>
  <p>TestAction which extends abstract class TestParent.</p>
  <p>TestParent extends ActionSupport and it has the protected variables like gridmodel, sord,records etc and their getters and setters. It also has the execute method and gridmodel data is loaded through abstract methods to be implemented by subclass.</p>
  </blockquote>
  <p>When TestAction extends TestParent it implements the abstract method getGridData and get data from DB. TestAction is mapped in struts.xml. Problem arises when i run it on server. The grid is empty but the console shows all the grid data i print in execute method of TestParent and getGridData of TestAction. The gridmodel is of type List of Map object.</p>
  <p>When I remove the inheritence and include all grid parameters and execute method in TestAction the grid shows the data. Is java inheritance in struts a problem?</p>
  <p>I have many reports that i need to show in a jquery grid. Therefore i opted this approach. What better approach should i adopt.</p>
  <p>Thanks.</p>