Sturts DB query execution problem
Posted
by henderunal
on Stack Overflow
See other posts from Stack Overflow
or by henderunal
Published on 2010-05-06T15:45:12Z
Indexed on
2010/05/06
15:48 UTC
Read the original article
Hit count: 253
Hello, I am trying to insert a data to my db2 9.7 database from IBM RAD 7.5 using struts 1.3 But when i execute the query i got this errors
[Pastebin link][1]
Here is my code
KayitBean kayit=(KayitBean)form;
//String name = kayit.getName();
String name="endee";
DBConn hb = new DBConn(); Connection conn =hb.getConnection(); System.out.println("basarili");
//String sql = "SELECT * FROM ENDER.\"MEKANDENEME\""; String sql = "INSERT INTO ENDER.\"MEKANDENEME\" VALUES (\'endere\' ,\'bos\');"; System.out.println(sql); System.out.println("basarili2");
PreparedStatement ps = conn.prepareStatement(sql); System.out.println("basarili3"); ResultSet rs = ps.executeQuery();
// String ender=rs.getArray(1).toString(); System.out.println("basarili4"); // System.out.println(rs); conn.close();
I am receiving this after System.out.println("basarili3");" Please help me.
© Stack Overflow or respective owner