Xg7iObhZf[^XV\bhj
---------------------------------------------------------------
public String updGrid(String[] vals, String[][] cdat){
    int i, j;
    String table_name = vals[0];
    int rows = Integer.valueOf(vals[1]).intValue();
    int cols = Integer.valueOf(vals[2]).intValue();
    try {
      String sql = "delete from table_dtl where table_name = ?";
      PreparedStatement ps = con.prepareStatement(sql);
      ps.setString(1, table_name);
      ps.executeUpdate();
      con.close();
    }catch(SQLException e){
      e.printStackTrace();
    }
    i=0;
    j=-6;
    for(i = 0; i < rows; i++){
      for(j = 0; j < cols; j++){
        try {
          String sql = "insert into table_dtl values(?, ?, ?, ?);";
          PreparedStatement ps = con.prepareStatement(sql);
          ps.setString(1, table_name);
          ps.setInt(2, i);
          ps.setInt(3, j);
          ps.setString(4, cdat[i][j]);
          ps.executeUpdate();
        }catch(SQLException e){
          resp = "ڑs\nRF" + e.toString();
        }catch(Exception e){
          e.printStackTrace();
        }
      }
    }
    resp = "e[uXV";
    return resp;
  }
-----------------------------------------------------------