Signup
·
Login
Stardeveloper.com
Home
·
Tutorials
·
Forums
·
Web Hosting Plans
·
Faisal Khan's Blog
·
Contact
Forums
:
J2EE
:
JSP
:
Errata (SetInt() and not SetId())
Signup
·
Login
New Thread
Go To Page:
1
Author
Thread
Errata (SetInt() and not SetId())
Posted in tutorial:
Updating records in the Database using JDBC with Java Servlets
·
raveehbhalla
Joined: 5 Dec 2006
Total Posts: 1
Errata (SetInt() and not SetId())
Posted: 5 Dec 2006
Great attempt Faizal. Excellent tutorial for the begineers.
ps.setString(1, "First Name");
ps.setString(2, "Last Name");
ps.setId(3, 1);
ps.executeUpdate();
The third statement in the above code snippet must be ps.setInt(3,1) and not ps.setId(3,1)
it is however mentioned correctly in the complete servlet code. thought you should know.
ravi_bhalla
Previous Thread
::
Next Thread
Go To Page:
1
Users Who Have Visited This Thread In Last 24 Hours
3 Visitors
Login
UserName Or Email Address:
Password:
Auto-Login:
·
Create New User Account
·
Send Forgotten Password by Email
© 1999 - 2009 Stardeveloper.com, All Rights Reserved.