String jsonResp = JavaToJSONUtil.getJsonString(users);
request.setAttribute("json", "{\"page\":1, \"total\":" + users.size() + ", \"records\":" + jsonResp + "}");
actionForward = (mapping.findForward("jsonSuccess"));
return actionForward;
} catch (Exception ex) {
throw new PresentationException(ex);
//System.out.println("Failed at server : \n " + ex.getLocalizedMessage());
}
}