Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by metridevkk

  1. metridevkk

    how to retrieve the new ID of the auto_increment column

    Thanks. I found the solution as follows: stmt.executeUpdate(insertSQL,Statement.RETURN_GENERATED_KEYS); int autoIncKeyFromApi = -1; rs = stmt.getGeneratedKeys(); if (rs.next()) { autoIncKeyFromApi = rs.getInt(1); } else { // throw an exception from here }
  2. metridevkk

    how to retrieve the new ID of the auto_increment column

    I am using mysql database. In my jsp page, after inserting a record in the mysql table, I need to get back the new ID generated for the auto_increment primary key column. How do I get this value?
  3. metridevkk

    href path changes in jsp on redirecting the servlet to that jsp

    Giving the URL as "/CC/Main.jsp" worked...
  4. metridevkk

    href path changes in jsp on redirecting the servlet to that jsp

    My servlet gets redirected properly to a jsp page(MyPage.jsp), but clicking the links on that jsp page fails. Get the error: The requested resource (/CC/servlet/Main.jsp) is not available. In MyPage.jsp page, the link is defined as follows: <a href="Main.jsp">Back to Main Page</a> but after...

Part and Inventory Search

Back
Top