HtmlValidator htmlValidator = new HtmlValidator();
HtmlValidator htmlValidator = new HtmlValidator(); htmlValidator.validateHTMLString(information);
    public ActionForward createAnnouncement(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException {        HttpSession session = request.getSession(false);        Integer objectCode = getObjectCode(request);        DynaActionForm insertAnnouncementForm = (DynaActionForm) form;        String title = (String) insertAnnouncementForm.get("title");        String information = (String) insertAnnouncementForm.get("information");                HtmlValidator htmlValidator = new HtmlValidator();             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);            return mapping.getInputForward();        }                IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);        Object args[] = { objectCode, title, information };        try {            ServiceManagerServiceFactory.executeService(userView, "CreateAnnouncement", args);        } catch (ExistingServiceException e) {            ActionErrors actionErrors = new ActionErrors();            actionErrors.add("existingAnnouncementErrot", new ActionError("error.existingAnnouncement"));            saveErrors(request, actionErrors);            return mapping.getInputForward();        } catch (FenixServiceException e) {            throw new FenixActionException(e);        }        ISiteComponent announcementsComponent = new InfoSiteAnnouncement();        readSiteView(request, announcementsComponent, null, null, null);        return mapping.findForward("showAnnouncements");    }