request.setAttribute("siteView", siteView);
    public ActionForward prepareInsertSummary(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws FenixServiceException, FenixFilterException {        HttpSession session = request.getSession(false);        IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);                Integer objectCode = getObjectCode(request);        request.setAttribute("objectCode", objectCode);                processAnotherDate(request, form);                boolean loggedIsResponsible = false;        List responsibleTeachers = null;        Object argsReadResponsibleTeachers[] = { objectCode };        try {            responsibleTeachers = (List) ServiceManagerServiceFactory.executeService(userView,                    "ReadTeachersByExecutionCourseResponsibility", argsReadResponsibleTeachers);            for (Iterator iter = responsibleTeachers.iterator(); iter.hasNext();) {                InfoTeacher infoTeacher = (InfoTeacher) iter.next();                if (infoTeacher.getInfoPerson().getUsername().equals(userView.getUtilizador()))                    loggedIsResponsible = true;                break;            }                        request.setAttribute("loggedIsResponsible", new Boolean(loggedIsResponsible));                        if (!loggedIsResponsible) {                InfoTeacher infoTeacher = (InfoTeacher) ServiceManagerServiceFactory.executeService(                        userView, "ReadTeacherByUsername", new Object[] { userView.getUtilizador() });                                InfoProfessorship infoProfessorship = (InfoProfessorship) ServiceManagerServiceFactory                .executeService(userView, "ReadProfessorshipByTeacherIDandExecutionCourseID",                        new Object[] { infoTeacher.getIdInternal(), objectCode });                                request.setAttribute("loggedTeacherProfessorship", infoProfessorship.getIdInternal());            }                    } catch (Exception e) {            ActionErrors errors = new ActionErrors();            errors.add("error", new ActionError("Can't find course's responsible teacher"));            saveErrors(request, errors);            return showSummaries(mapping, form, request, response);        }                Object args[] = { objectCode, userView.getUtilizador() /* userLogged */};        SiteView siteView = null;        try {            siteView = (SiteView) ServiceManagerServiceFactory.executeService(userView,                    "PrepareInsertSummary", args);        } catch (Exception e) {            ActionErrors errors = new ActionErrors();            errors.add("error", new ActionError("error.summary.impossible.insert"));            saveErrors(request, errors);            return showSummaries(mapping, form, request, response);        }        if (siteView == null) {            ActionErrors errors = new ActionErrors();            errors.add("error", new ActionError("error.summary.impossible.insert"));            saveErrors(request, errors);            return showSummaries(mapping, form, request, response);        }        request.setAttribute("siteView", siteView);                try {            choosenShift(request, ((InfoSiteSummaries) siteView.getComponent()).getInfoShifts());            choosenLesson(request, (InfoSummary) request.getAttribute("summaryToInsert"));            preSelectTeacherLogged(request, form, (InfoSiteSummaries) siteView.getComponent());        } catch (Exception e) {            return showSummaries(mapping, form, request, response);        }                DynaActionForm actionForm = (DynaActionForm) form;                System.out.println("OLAAAAAAAAAA -> " + actionForm.get("summaryDateInputOption"));                 if(actionForm.get("summaryDateInputOption").equals("on"))            request.setAttribute("checked", "");                if(actionForm.get("editor").equals("") || (actionForm.get("editor").equals("true"))){            request.setAttribute("verEditor", "true");            }                            return mapping.findForward("insertSummary");    }