@RequestMapping(value = "/verMandatario.htm", method = RequestMethod.GET) public String verMandatario(ModelMap model, HttpServletRequest request) { logger.debug("ver mandatario"); Integer id = Integer.parseInt(request.getParameter("cod")); model.put("mandatario", mandatarioService.obtenerMandatario(id)); return "ManNoEditable"; }
@RequestMapping(value = "/asignacargo.htm", method = RequestMethod.GET) public String asignacargo(ModelMap model, HttpServletRequest request) { logger.debug("asignacargo"); T020tramite trm = (T020tramite) request.getSession().getAttribute(ConstitucionController.TRAMITE_SESSION); request.setAttribute( "lCargos", parametroDAO.litarParametros(ParametrosUtil.TIPO_CARGOS, trm.getCodTipsoc())); T032mandatario man = mandatarioService.obtenerMandatario(Integer.parseInt(request.getParameter("cod"))); logger.debug("mandatario = " + man); request.setAttribute("manda", man); return "Cargos"; }