DynaActionForm actionForm = (DynaActionForm) form; if (actionForm.get("editor").equals("") || (actionForm.get("editor").equals("true"))) { request.setAttribute("verEditor", "true"); }
    public ActionForward showAnnouncements(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws FenixActionException,            FenixFilterException {        ISiteComponent announcementsComponent = new InfoSiteAnnouncement();        readSiteView(request, announcementsComponent, null, null, null);        TeacherAdministrationSiteView siteView = (TeacherAdministrationSiteView) request                .getAttribute("siteView");        List announcementsList = ((InfoSiteAnnouncement) siteView.getComponent()).getAnnouncements();        if (!announcementsList.isEmpty()) {            Collections.sort(announcementsList, new ComparatorChain(new BeanComparator(                    "lastModifiedDate"), true));            return mapping.findForward("showAnnouncements");        }        return mapping.findForward("insertAnnouncement");    }