tb_book这些表里面有没有ID=1的记录?
另外:中文的问题,注意文件的编码类型。

解决方案 »

  1.   

    <%session.setAttribute("username",session.getAttribute("username"));%>
    这句话,我感觉是多余了,你session里面既然已经有username这个值了,还放要设置一遍,有点画蛇添足了,其它的地方没多看,代码写得太乱了,
      

  2.   

    update tb_book set "+aa+"= "+aa+" + 1 where id=1"); 
    你这个地方不象是在+1吧~~<input name="type2" type="checkbox" id="type2" value="ASPNET"> 选中
    得到的值是 String aa=type2[i];
    aa = "ASPNET";反过来看:
    update tb_book set "+aa+"= "+aa+" + 1 where id=1;
      

  3.   

    DELPHI
    ASP
    ASPNET
    JSP
    这些在表中 是一个个字段名吗 ?`