request.setAttribute("renderSections", "true");  final Section section = selectSection(request); final ExecutionCourse executionCourse = (ExecutionCourse) request.getAttribute("executionCourse"); final SectionFactoryCreator sectionFactoryCreator = new SectionFactoryCreator(executionCourse.getSite(), section); request.setAttribute("sectionFactoryCreator", sectionFactoryCreator);
selectSection(request);  Section section = getSection(request); if (section == null) { Site site = getSite(request);  request.setAttribute("creator", new SectionCreator(site)); } else { request.setAttribute("creator", new SectionCreator(section)); }
    public ActionForward createSection(ActionMapping mapping, ActionForm form, HttpServletRequest request,            HttpServletResponse response) throws Exception {        request.setAttribute("renderSections", "true");	        final Section section = selectSection(request);        final ExecutionCourse executionCourse = (ExecutionCourse) request.getAttribute("executionCourse");        final SectionFactoryCreator sectionFactoryCreator = new SectionFactoryCreator(executionCourse.getSite(), section);        request.setAttribute("sectionFactoryCreator", sectionFactoryCreator);        return mapping.findForward("createSection");    }