aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

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
Greenhorn

Joined: Jun 09, 2008
Posts: 9
Class.forName("com.mysql.jdbc.Driver");
con =DriverManager.getConnection
("jdbc:mysql://192.168.10.59:3306/example",
"root", "root");
ps = con.prepareStatement("update servlet set
name = ? where id = ?");
ps.setInt(2, id);
ps.setString(1, name);
ps.executeUpdate();
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: updating record
 
Similar Threads
Getting Last Record in Jtable
Exhausted Resultset exception when result count is huge.
Struts Survey - Please respond
over 100,000 visits to The Big Moose Saloon yesterday
WA #1.....word association