你的变量t的类型应该是Throwable.因为你可能定义了t为Exception.它有两个方法:
public abstract void handlePageException(Exception e) throws ServletException,IOException
和public abstract void handlePageException(Throwable t) throws ServletException,IOException
你再检查一下

解决方案 »

  1.   

    你的sql语句中的uid这个参数没有给它复值吧~~
    see
      

  2.   

    个人认为你的sql语句有点问题,你仔细看看!
      

  3.   

    PreparedStatement pstmt=conn.prepareStatement("insert into guestbook(name,ip,email,exactpost,content,uid)values(??????)");
    pstmt.setString(1,name);
    pstmt.setString(2,ip);
    pstmt.setString(3,email);
    pstmt.setString(4,exactpost);
    pstmt.setString(5,content);
    pstmt.setInt(6,uid);//加这个
    pstmt.executeUpdate();
    pstmt.close();
    stmt.close();
    conn.close();
    %>
    在前面要的到uid,ok?