hello everybody , nice to be back .. i started having some problems with rst.updateString(...) method.. here is my code :
try{
String url="jdbc:mysql://localhost:3306/vikh?user=root&password=admin";
con=DriverManager.getConnection(url);
stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE); // **** guess there is a problem here
rst=stmt.executeQuery("select * from trial_auth1;");
ResultSetMetaData rsmd=rst.getMetaData();
int cnt=rsmd.getColumnCount();
while(rst.next()){i++;} // check no. of records
m=i;i=0;
out.println("No. of rows : "+m+"
No. of colls : "+cnt);
int r=10;
int c=1;
rst=stmt.executeQuery("select * from trial_auth1 order by sid;");
while(rst.next())
{
String h1=Integer.toString(r+c);c++; // *** getting output here
String h2=Integer.toString(r+c);c++; // *** getting output here
String h3=Integer.toString(r+c); // *** getting output here
String g1=request.getParameter(h1);
String g2=request.getParameter(h2);
String g3=request.getParameter(h3);
out.println(g1+" "+g2+" "+g3); // *** getting output here
rst.updateString(1,g1);
rst.updateString(2,g2);
rst.updateString(3,g3);
out.println(g1+" "+g2+" "+g3); // *********** NOT GETTING THE output
rst.updateRow();
c=1;r=r+10;
} // end of while
..... Thanks in advance