int pageIndex = request.getParameter("pageIndex") == null ? 1 : Integer.parseInt(request.getParameter("pageIndex"));
int pageSize = request.getParameter("pageSize") == null ? 15 : Integer.parseInt(request.getParameter("pageSize"));
int start = (pageIndex - 1) * pageSize + 1;
int end = pageIndex * pageSize;
hashMap.put("start", new Integer(start));
hashMap.put("end", new Integer(end));
List list = medicalImpl.getMedicalsForNurse(hashMap);
String medicalXML = getListToXml(list);
//modelView.addObject("medicalXML", medicalXML);之前返回的json包起来了
response.getWriter().print(medicalXML);//改成返回xml,外层不用json了。