@RequestMapping("/jogo/escolheEvento") public ModelAndView escolheEvento( @RequestParam(value = "nome", required = false) String nome, @RequestParam(value = "publico", required = false) String publico, @RequestParam(value = "cache", required = false) String cache) throws ServletException, IOException { Map<String, Object> myModel = new HashMap<String, Object>(); myModel.put("result", (new JSONObject(service.agendaShow(nome, publico, cache))).toString()); return new ModelAndView("servico.jsp", "model", myModel); }