public ActionForward guardarPlazoAjax( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { PlazoForm plazoForm = (PlazoForm) form; String codPlazoHdn = plazoForm.getCodPlazoHdn(); String codPlazo = plazoForm.getCodPlazo(); String desPlazo = plazoForm.getDesPlazo(); ReadProperties readProperties = new ReadProperties(); Map<String, String> mapResult = parametrosService.savePlazo(codPlazoHdn, codPlazo, desPlazo); plazoForm.setDesPlazo(""); plazoForm.setCodPlazo(""); plazoForm.setCodPlazoHdn(""); if (mapResult.get("msgError") != null) { response.setStatus(500); response.getWriter().write(readProperties.getProperty(mapResult.get("msgError"))); } return null; }