File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes updating record Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

updating record

Nitin Belaram
Ranch Hand

Joined: Mar 24, 2009
Posts: 67
Please suggest me how to update record on basic of id in servclet and jsp
rmail kumar

Joined: Jun 09, 2008
Posts: 9
con =DriverManager.getConnection
"root", "root");
ps = con.prepareStatement("update servlet set
name = ? where id = ?");
ps.setInt(2, id);
ps.setString(1, name);
wood burning stoves
subject: updating record