req.setCharacterEncoding("utf-8");
resp.setContentType("text/html;charset=utf-8");
resp.setCharacterEncoding("utf-8");
String name = req.getParameter("name");
String address = req.getParameter("address");
name = new String(name.getBytes("ISO-8859-1"),"utf-8");
address = new String(address.getBytes("ISO-8859-1"),"utf-8");
name = ("".equals(name) || name==null) ? null : name;
address = ("".equals(address) || address ==null)? null : address;
ResultParam resultParam = new ResultParam( pageNum, pageSize, studentList);
ObjectMapper objectMapper = new ObjectMapper();
String json = objectMapper.writeValueAsString(resultParam);
resp.getWriter().print(json);
System.out.println(json);
resp.getWriter().flush();