// 删除学院 private void del(HttpServletRequest request, HttpServletResponse response) throws IOException { PrintWriter out = response.getWriter(); JsonBean j = new JsonBean(); String ids = request.getParameter("ids"); service.del(ids); j.setSuccess(true); JSONArray jsonArray = new JSONArray().fromObject(j); String jsonS = jsonArray.toString(); String json = jsonS.substring(1, jsonS.lastIndexOf("]")); out.write(json); }