不是servlet!是单个的JSP!其它没有考出来!
主要的问题是出现在
if (maxpost<TodyPost)
  { 
       
    sql="update countpost set Maxpost='"+TodyPost+"',Fatime='"+li.getdate()+"'";
int count=stmt.executeUpdate(sql);}
我的意思是“当今日的文章总数“大于”最高的的发贴量!“时,就update,把”今日的文章总数“写存给最高发贴量”的数据库中! 我怀疑是我的思路问题!