title: struts2 jquery grid: data not displayed on grid
body: <p>I'm trying to use struts2-jquery grid plugin.
  When debugging my gridmodel is getting updated correctly, but nothing is getting displayed on the grid.
  This is my action class: </p>
  
  <pre><code>private List&lt;Customer&gt; gridModel; 
    private Integer             rows          ;
  
    private Integer             page         ;
  
    private String              sord;
  
    private String              sidx;
  
    private String              searchField;
  
    private String              searchString;
  
    private String              searchOper;
  
    private Integer             total         ;
  
    private Integer             records        ;
  
  public String execute() throws Exception{
      try {
      List&lt;Customer&gt; list = new ArrayList&lt;Customer&gt;; 
      for (int i=0; i&lt;3; i++) {
          Customer cust = new Customer("myName", 20, "myAdress", "23651336"); 
          list.add(cust); 
      }
      setGridModel(list); 
      setRecords(list.size());
      total =(int) Math.ceil((double)records / (double)rows);
      } catch( Exception e) {
          log.error("Error in JSON data : " +e.getMessage()); 
      }
      return SUCCESS; 
  
  }
  
  public List&lt;Customer&gt; getGridModel() {
      return gridModel;
  }
  
  public Integer getPage() {
      return page;
  }
  
  public void setPage(Integer page) {
      this.page = page;
  }
  
  public String getSearchField() {
      return searchField;
  }
  
  public void setSearchField(String searchField) {
      this.searchField = searchField;
  }
  
  public void setGridModel(List&lt;Customer&gt; gridModel) {
      this.gridModel = gridModel;
  }
  
  public String getSord() {
      return sord;
  }
  
  public void setSord(String sord) {
      this.sord = sord;
  }
  
  public String getSidx() {
      return sidx;
  }
  
  public void setSidx(String sidx) {
      this.sidx = sidx;
  }
  
  public Integer getRecords() {
      return records;
  }
  
  public void setRecords(Integer records) {
       this.records = records;
  
          if (this.records &gt; 0 &amp;&amp; this.rows &gt; 0)
          {
            this.total = (int) Math.ceil((double) this.records / (double) this.rows);
          }
          else
          {
            this.total = 0;
          }
  }
  
  public String getSearchOper() {
      return searchOper;
  }
  
  public void setSearchOper(String searchOper) {
      this.searchOper = searchOper;
  }
  
  public Integer getTotal() {
      return total;
  }
  
  public void setTotal(Integer total) {
      this.total = total;
  }
  
  public String getSearchString() {
      return searchString;
  }
  
  public void setSearchString(String searchString) {
      this.searchString = searchString;
  }
  
  public Integer getRows() {
      return rows;
  }
  
  public void setRows(Integer rows) {
      this.rows = rows;
  }
  </code></pre>
  
  <p>I add to my jsp the following grid definition:</p>
  
  <pre><code>&lt;s:url id="remoteurl" action="jsontable"/&gt;
  &lt;sjg:grid
      id="gridtable"
      caption="Listes "
      dataType="json"
      href="%{remoteurl}"
      pager="true"
      gridModel="gridModel"
      rowList="10,15,20"
      rowNum="15"
      rownumbers="true"
  &gt;
      &lt;sjg:gridColumn name="name" index="name" title="Name"  /&gt;
      &lt;sjg:gridColumn name="age" index="age" title="Age"/&gt;
      &lt;sjg:gridColumn name="adress" index="adress" title="Adress" /&gt;
      &lt;sjg:gridColumn name="tel" index="tel" title="Tel"   /&gt;
  &lt;/sjg:grid&gt;
  </code></pre>
  
  <p>In struts.xml, I declare my action with result type json</p>
  
  <pre><code>&lt;package name="default" extends="json-default,struts-default" namespace="/"&gt;
  
      &lt;result-types&gt;
          &lt;result-type name="tiles" class="org.apache.struts2.views.tiles.TilesResult" /&gt;
          &lt;result-type name="json" class="org.apache.struts2.json.JSONResult" /&gt;
      &lt;/result-types&gt;
  
      &lt;action name="jsontable" class="com.web.action" method="execute" &gt;
          &lt;result name="success" type = "json"&gt;&lt;/result&gt;
      &lt;/action&gt;
  
  &lt;/package&gt;
  </code></pre>
  
  <p>Please, can you tell me what I'm missing</p>