document.forms[0].action = document.forms[0].action + "?operate=toCheck&id=" + id; 
此处id没值

解决方案 »

  1.   

    Integer id=Integer.parseInt(idd); 
    这里如果idd为null就不能成功转换
    也就是你页面的对应参数没有船传过来
      

  2.   

    String idd=request.getParameter("human"); 
    这句 应该是null 
      

  3.   

    我知道  在Action里面肯定没有传过去值  null 的那 我 jsp 上哪有错误呢
      

  4.   

    Integer id=Integer.parseInt(idd);  在这里,你的idd为null在调用前判断一下就好了
      

  5.   

    我的jsp 页面 
    function toCheck(id) 

    document.forms[0].action = document.forms[0].action + "?operate=toCheck&id=" + id; 
    document.forms[0].submit(); 

    <a href="javascript:toCheck('${list.hufId}')">复核 </a> 
    没有取到值吗   ,   错误出现在什么地方啊
      

  6.   

    String idd=request.getParameter("human"); 
    这里应该是String idd=request.getParameter("id"); 
      

  7.   

    严重: Servlet.service() for servlet action threw exception 
    java.lang.NumberFormatException: null 
    at java.lang.Integer.parseInt(Integer.java:415) 
    这错误不是很明显吗?Integer id=Integer.parseInt(idd); 这句出错了,idd的值为null.
      

  8.   

    回答正确   但是  我DAO里面取值为什么是null的呢
      

  9.   

    Integer id=Integer.parseInt(idd);idd为null 
      

  10.   

    你ID为 0 啊。而你数据库中没有ID 为 0 的啊。
    int 默认为 0