您好每一个我在servlet类中遇到一个问题,我在我的db表中传递一个整数值,来自id的漏洞,所有其他记录保存在数据库中,可以帮助我解决这个问题。< / p>
//int depid = Integer.parseInt(request.getParameter("depid"));
final String depName = request.getParameter("depName");
final String date = request.getParameter("date");
final String department = request.getParameter("department");
final boolean messageDep = departmentSessionBean.addEmployeeServer(depName,date,department);
response.setContentType("application/json");
PrintWriter out = response.getWriter();
out.print("{\"messageDep\" : \"" + messageDep + "\"}");
out.flush();