request.setAttribute("pagectl",pageCtl);
           request.setAttribute("personlist",col);
           return mapping.findForward("success");

解决方案 »

  1.   

    方法Integer.parseInt(String a),当a为空或者不含有数字时可能会报这样的错
      

  2.   

    Thrown to indicate that the application has attempted to convert a string to one of the numeric types, but that the string does not have the appropriate format. 
    NumberFormatException 
     public NumberFormatException()Constructs a NumberFormatException with no detail message.  NumberFormatException 
     public NumberFormatException(String s)Constructs a NumberFormatException with the specified detail message. Parameters: 
    s - the detail message. 
      

  3.   

    用try和catch捕获,再处理异常