what is the war file name you have placed?
]]>you can simply return consulta. It will be converted to json automatically.
]]>Im using ArrayList so i call my list in my dao like this:
public List consultingSection() {
conexionMySql c = new conexionMySql();
beanSection b = new beanSection();
List consulta = new ArrayList();
try {
Connection con = c.getConnection();
// PreparedStatement pstm = con.prepareStatement(“CALL ObtenerAsignaturasReprobadas (?);”);
CallableStatement pro = con.prepareCall(“call section();”);
ResultSet rs = pro.executeQuery();
while (rs.next()) {
b = new beanSection();
b.setIdSection(rs.getInt(1));
b.setLetter(rs.getString(2));
//System.out.println(rs.getInt(1) + “-” + rs.getString(2));
consulta.add(b);
}
con.close();
pro.close();
rs.close();
} catch (SQLException ex) {
System.out.println(ex);
}
return consulta;
}
and in my action i call my method like this
daoSection ds = new daoSection();
sectionL=ds.consultingSection();
return success …
how can i do it to implement my array list into your example.
thanks for your support i will wait for your answer.