.prepareStatement("DELETE FROM submissions WHERE id=storyId");
.prepareStatement("DELETE FROM submissions WHERE id=" + storyId);
  public void doGet(HttpServletRequest request, HttpServletResponse response)      throws IOException, ServletException  {    ServletPrinter    sp   = null;    Connection        conn = null;    PreparedStatement stmt = null, stmtdel = null;    sp = new ServletPrinter(response, "AcceptStory");    sp.printHTMLheader("RUBBoS: Story submission result");    sp.printHTML("<center><h2>Story submission result:</h2></center><p>\n");    conn = getConnection();    int storyId = (Integer.valueOf(request.getParameter("storyId"))).intValue();    if (storyId == 0)    {      sp.printHTML("<h3>You must provide a story identifier !<br></h3>");      return;    }    ResultSet rs = null;    int updateResult;    try    {      stmt = conn          .prepareStatement("SELECT * FROM submissions WHERE id= storyId");      rs = stmt.executeQuery();    }    catch (Exception e)    {      sp.printHTML(" Failed to execute Query for AcceptStory: " + e);      closeConnection(stmt, conn);      return;    }    try    {      if (!rs.first())      {        sp            .printHTML("<h3>ERROR: Sorry, but this story does not exist.</h3><br>");        closeConnection(stmt, conn);        return;      }      //Add story to database      String categoryTitle = rs.getString("title");      int categoryDate = rs.getInt("date");      String categoryBody = rs.getString("body");      String categoryWriter = rs.getString("writer");      String category = rs.getString("category");      stmt = conn.prepareStatement("INSERT INTO stories VALUES (NULL, \""          + categoryTitle + "\", \"" + categoryBody + "\", '" + categoryDate          + "', " + categoryWriter + ", " + category + ")");      stmtdel = conn          .prepareStatement("DELETE FROM submissions WHERE id=storyId");      updateResult = stmt.executeUpdate();      updateResult = stmtdel.executeUpdate();    }    catch (Exception e)    {      sp.printHTML("Exception accepting stories: " + e + "<br>");      closeConnection(stmt, conn);      return;    }    closeConnection(stmt, conn);    sp        .printHTML("The story has been successfully moved from the submission to the stories database table<br>\n");    sp.printHTMLfooter();  }