Servlet.service() for servlet jsp threw exception

日期:2018-02-23 13:46:15 人气:1

Servlet.service() for servlet jsp threw exception

这个是数据类型不匹配导致的类型转换异常 看你的异常信息 应该是例如这样的 JSP 页面:有个 Servlet 中: int a = Integer.parseInt(request.getParameter("aa") + "");【还有可能这里的变量名aa写错了】 这样的 当你不在jsp 页面上的 input 写值的时候 那么 request.getParameter("aa");接到的对象值 就是null 这样 再转为
    A+
热门评论