Package org.fenixedu.academic.ui.struts.action.commons

Examples of org.fenixedu.academic.ui.struts.action.commons.FenixActionForward


    protected Class getProcessType() {
        return MobilityIndividualApplicationProcess.class;
    }

    public ActionForward intro(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
        return new FenixActionForward(request, new ActionForward("http://nmci.ist.utl.pt/en/ist/erasmus/", true));
    }
View Full Code Here


        return new FenixActionForward(request, new ActionForward("http://nmci.ist.utl.pt/en/ist/erasmus/", true));
    }

    public ActionForward chooseSubmissionType(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        return new FenixActionForward(request, new ActionForward("http://nmci.ist.utl.pt/en/ist/erasmus/", true));
    }
View Full Code Here

            // clearDocumentsInformation(bean);
            return createCandidacyStepOneInvalid(mapping, form, request, response);
        }

        final String url = EPFLPhdCandidacyProcessProperties.getPublicCandidacyAccessLink(bean.getCandidacyHashCode());
        return new FenixActionForward(request, new ActionForward(url, true));
    }
View Full Code Here

            request.setAttribute("emailBean", emailBean);
            return mapping.findForward("new.email");
        }
        final Message message = emailBean.send();
        request.setAttribute("created", Boolean.TRUE);
        return new FenixActionForward(request, new ActionForward("/viewSentEmails.do?method=viewEmail&messagesId="
                + message.getExternalId(), true));
    }
View Full Code Here

    public ActionForward goToEditDegree(final ActionMapping mapping, final ActionForm form, final HttpServletRequest request,
            final HttpServletResponse response) {
        String degreeId = request.getParameter("degreeId");

        return new FenixActionForward(request, new ActionForward("/curricularPlans/editDegree.faces?degreeId=" + degreeId, false));
    }
View Full Code Here

        DegreeOfficialPublication publication = FenixFramework.getDomainObject(officialPubId);

        publication.delete();

        return new FenixActionForward(request, new ActionForward("/curricularPlans/editDegree.faces?degreeId=" + degreeId, false));
    }
View Full Code Here

        buffer.append(arg);
    }

    protected ActionForward forward(ActionMapping mapping, HttpServletRequest request, String name, String parameter) {
        ActionForward existing = mapping.findForward(name);
        ActionForward result = new FenixActionForward(request, existing);

        if (parameter != null) {
            String[] values = request.getParameterValues(parameter);

            if (values == null) {
                return result;
            }

            StringBuilder path = new StringBuilder(existing.getPath());
            for (String value : values) {
                path.append(String.format("&%s=%s", parameter, value));
            }

            result.setPath(path.toString());
        }

        return result;
    }
View Full Code Here

            return FenixFramework.getDomainObject(parameter);
        }
    }

    public ActionForward redirect(String url, HttpServletRequest request) {
        return new FenixActionForward(request, new ActionForward(url, true));
    }
View Full Code Here

        try {
            SecondCycleIndividualCandidacyProcess newProcess =
                    (SecondCycleIndividualCandidacyProcess) executeActivity(getProcess(request),
                            "CopyIndividualCandidacyToNextCandidacyProcess", individualCandidacyProcessBean);
            return new FenixActionForward(request, new ActionForward(
                    "/caseHandlingSecondCycleIndividualCandidacyProcess.do?method=listProcessAllowedActivities&processId="
                            + newProcess.getExternalId()));
        } catch (final DomainException e) {
            addActionMessage(request, e.getKey(), e.getArgs());
            request.setAttribute(getIndividualCandidacyProcessBeanName(), getIndividualCandidacyProcessBean());
View Full Code Here

        try {
            SecondCycleIndividualCandidacyProcess newProcess =
                    (SecondCycleIndividualCandidacyProcess) executeActivity(getProcess(request), "SetNotAcceptedState",
                            individualCandidacyProcessBean);
            return new FenixActionForward(request, new ActionForward(
                    "/caseHandlingSecondCycleIndividualCandidacyProcess.do?method=listProcessAllowedActivities&processId="
                            + newProcess.getExternalId()));
        } catch (final DomainException e) {
            addActionMessage(request, e.getKey(), e.getArgs());
            request.setAttribute(getIndividualCandidacyProcessBeanName(), getIndividualCandidacyProcessBean());
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.ui.struts.action.commons.FenixActionForward

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.