KelvinMario
2017-04-23 23:25
HTTP Status 500 - For input string: "on"
type Exception report
message For input string: "on"
description The server encountered an internal error that prevented it from fulfilling this request.
exception
java.lang.NumberFormatException: For input string: "on"
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
java.lang.Integer.parseInt(Integer.java:580)
java.lang.Integer.valueOf(Integer.java:766)
com.kelvin.service.MaintainService.deleteBatch(MaintainService.java:29)
com.kelvin.servlet.DeleteBatchServlet.doGet(DeleteBatchServlet.java:24)
com.kelvin.servlet.DeleteBatchServlet.doPost(DeleteBatchServlet.java:32)
javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note The full stack trace of the root cause is available in the Apache Tomcat/8.5.11 logs.
Apache Tomcat/8.5.11
控制台没报错。
在<input type="checkbox" name="id" />中加入value="${message.id }",当你不加value时,当checkbox选中时返回的是on
看报错是int String转换时出现的异常,是不是字符串有"on"时你想转换成int
通过自动回复机器人学Mybatis---基础版
107412 学习 · 786 问题
相似问题