I want to update a table (Access database) in my JSP page, so I put the following code:
but I get the following error:Code:PreparedStatement stmt = connection.prepareStatement ("UPDATE employee SET name = 'XXX'"); stmt.setInt (1, 1); stmt.setString (2, "XX"); stmt.setString (3, "XXX"); stmt.executeUpdate ();
javax.servlet.ServletException: Index 1 is out of bounds
Bookmarks