stmtfollow.close();
  public void display_follow_up(int cid, int level, int display, int filter,                                Connection link, String comment_table,                                 boolean separator, ServletPrinter sp,                                Connection conn) throws Exception  {    ResultSet         follow;    int               childs, story_id, rating, parent, id, i;    String            subject, username, date, comment;    PreparedStatement stmtfollow = null;    try    {      stmtfollow = conn.prepareStatement("SELECT * FROM " + comment_table          + " WHERE parent=" + cid);      //+" AND rating>="+filter);      follow = stmtfollow.executeQuery();      while (follow.next())      {        story_id = follow.getInt("story_id");        id = follow.getInt("id");        subject = follow.getString("subject");        username = sp.getUserName(follow.getInt("writer"), conn);        date = follow.getString("date");        rating = follow.getInt("rating");        parent = follow.getInt("parent");        comment = follow.getString("comment");        childs = follow.getInt("childs");        if (rating >= filter)        {          if (!separator)          {            sp.printHTML("<br><hr><br>");            separator = true;          }          if (display == 1) // Preview nested comments          {            for (i = 0; i < level; i++)              sp.printHTML(" &nbsp &nbsp &nbsp ");            sp                .printHTML("<a href=\"/rubbos/servlet/edu.rice.rubbos.servlets.ViewComment?comment_table="                    + comment_table                    + "&storyId="                    + story_id                    + "&commentId="                    + id                    + "&filter="                    + filter                    + "&display="                    + display                    + "\">"                    + subject                    + "</a> by "                    + username                    + " on "                    + date                    + "<br>\n");          }          else          {            sp.printHTML("<TABLE bgcolor=\"#CCCCFF\"><TR>");            for (i = 0; i < level; i++)              sp.printHTML("<TD>&nbsp&nbsp&nbsp");            sp                .printHTML("<TD><FONT size=\"4\" color=\"#000000\"><B><a href=\"/rubbos/servlet/edu.rice.rubbos.servlets.ViewComment?comment_table="                    + comment_table                    + "&storyId="                    + story_id                    + "&commentId="                    + id                    + "&filter="                    + filter                    + "&display="                    + display                    + "\">"                    + subject                    + "</a></B>&nbsp</FONT> (Score:"                    + rating                    + ")</TABLE>\n");            sp.printHTML("<TABLE>");            for (i = 0; i < level; i++)              sp.printHTML("<TD>&nbsp&nbsp&nbsp");            sp.printHTML("<TD><B>Posted by " + username + " on " + date                + "</B><p><TR>\n");            for (i = 0; i < level; i++)              sp.printHTML("<TD>&nbsp&nbsp&nbsp");            sp.printHTML("<TD>" + comment + "<TR>");            for (i = 0; i < level; i++)              sp.printHTML("<TD>&nbsp&nbsp&nbsp");            sp                .printHTML("<TD><p>[ <a href=\"/rubbos/servlet/edu.rice.rubbos.servlets.PostComment?comment_table="                    + comment_table                    + "&storyId="                    + story_id                    + "&parent="                    + id                    + "\">Reply to this</a>"                    + "&nbsp|&nbsp<a href=\"/rubbos/servlet/edu.rice.rubbos.servlets.ViewComment?comment_table="                    + comment_table                    + "&storyId="                    + story_id                    + "&commentId="                    + parent                    + "&filter="                    + filter                    + "&display="                    + display                    + "\">Parent</a>&nbsp|&nbsp<a href=\"/rubbos/servlet/edu.rice.rubbos.servlets.ModerateComment?comment_table="                    + comment_table                    + "&commentId="                    + id                    + "\">Moderate</a> ]</TABLE><br>");          }        }        if (childs > 0)          display_follow_up(id, level + 1, display, filter, link,                            comment_table, separator, sp, conn);      }    }    catch (Exception e)    {      sp.printHTML("Failure at display_follow_up: " + e);      throw e;    }  }