HtmlValidator htmlValidator = new HtmlValidator(); String resultado = htmlValidator.validateHTMLString(newInformation); String errors = htmlValidator.getErrors();  if(!errors.equals("")){ ActionErrors actionErrors = new ActionErrors(); request.setAttribute("errors", errors); actionErrors.add("htmlErrors", new ActionError("html.validate.error")); saveErrors(request, actionErrors); request.setAttribute("announcementTextFlag", newInformation); return prepareEditAnnouncement(mapping, form, request, response); }
    public ActionForward editAnnouncement(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws FenixActionException,            FenixFilterException {        HttpSession session = request.getSession(false);        String announcementCodeString = request.getParameter("announcementCode");        if (announcementCodeString == null) {            announcementCodeString = (String) request.getAttribute("announcementCode");        }        Integer announcementCode = new Integer(announcementCodeString);        Integer objectCode = getObjectCode(request);        DynaActionForm insertAnnouncementForm = (DynaActionForm) form;        String newTitle = (String) insertAnnouncementForm.get("title");        String newInformation = (String) insertAnnouncementForm.get("information");        UserView userView = (UserView) session.getAttribute(SessionConstants.U_VIEW);        Object args[] = { objectCode, announcementCode, newTitle, newInformation };        try {            ServiceManagerServiceFactory.executeService(userView, "EditAnnouncementService", args);        } catch (FenixServiceException e) {            throw new FenixActionException(e);        }        ISiteComponent announecementsComponent = new InfoSiteAnnouncement();        readSiteView(request, announecementsComponent, null, null, null);        return mapping.findForward("showAnnouncements");    }