Package org.apache.struts.validator

Examples of org.apache.struts.validator.DynaValidatorForm


        request.setAttribute("infoExecutionPeriod", infoExecutionPeriod);
    }

    public ActionForward showExecutionDegreeExecutionCourses(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        DynaValidatorForm personExecutionCourseForm = (DynaValidatorForm) form;
        prepareFirstStep(personExecutionCourseForm, request);

        prepareThirdStep(personExecutionCourseForm, request);
        personExecutionCourseForm.set("page", new Integer(3));
        return mapping.findForward("third-step");
    }
View Full Code Here


        return mapping.findForward("third-step");
    }

    public ActionForward showExecutionDegrees(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        DynaValidatorForm personExecutionCourseForm = (DynaValidatorForm) form;

        String personId = (String) personExecutionCourseForm.get("teacherId");
        Person person = Person.readPersonByUsername(personId);
        setChoosedExecutionPeriod(request, ReadNotClosedExecutionPeriods.run(), personExecutionCourseForm);
        InfoExecutionPeriod infoExecutionPeriod = (InfoExecutionPeriod) request.getAttribute("infoExecutionPeriod");
        final ExecutionSemester executionPeriod = infoExecutionPeriod.getExecutionPeriod();
        if (executionPeriod.getSemester().intValue() == 2 && executionPeriod.getExecutionYear().getYear().equals("2010/2011")) {
        } else {
            if (person.getTeacher() == null
                    || (!person.getTeacher().hasTeacherAuthorization(executionPeriod.getAcademicInterval()) && !person
                            .hasRole(RoleType.TEACHER))) {
                request.setAttribute("notAuth", true);
                return showExecutionYearExecutionPeriods(mapping, personExecutionCourseForm, request, response);
            }
        }

        prepareSecondStep(personExecutionCourseForm, request);
        personExecutionCourseForm.set("page", new Integer(2));
        return mapping.findForward("second-step");
    }
View Full Code Here

        return mapping.findForward("second-step");
    }

    public ActionForward showExecutionYearExecutionPeriods(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        DynaValidatorForm personExecutionCourseForm = (DynaValidatorForm) form;

        prepareFirstStep(personExecutionCourseForm, request);
        personExecutionCourseForm.set("page", new Integer(1));
        return mapping.findForward("second-step");
    }
View Full Code Here

    }

    public ActionForward edit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
            throws Exception {

        DynaValidatorForm classForm = (DynaValidatorForm) form;

        String className = (String) classForm.get("className");

        User userView = Authenticate.getUser();

        InfoClass infoClassOld = (InfoClass) request.getAttribute(PresentationConstants.CLASS_VIEW);
View Full Code Here

TOP

Related Classes of org.apache.struts.validator.DynaValidatorForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.