@Override protected ActionForward doForward(HttpServletRequest request, String path) { return new ActionForward("path", path, false, ""); }
private ActionForward displayLoginPage(final HttpServletRequest request, final HttpServletResponse response) throws IOException { final String url = "http://fenix.ist.utl.pt/phd/epfl/applications/login"; return new ActionForward(url, true); }
private ActionForward doForward(HttpServletRequest request, String path) { request.setAttribute("teacher$actual$page", path); return new ActionForward("/evaluation/evaluationFrame.jsp"); }
@Override public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return new ActionForward(mapping.getPath() + ".faces"); }
/** * <p>Create and return a <code>ForwardConfig</code> representing the * specified module-relative destination.</p> * * @param context The context for this request * @param moduleConfig The <code>ModuleConfig</code> for this request * @param uri The module-relative URI to be the destination */ protected ForwardConfig forward(ActionContext context, ModuleConfig moduleConfig, String uri) { return (new ActionForward(null, uri, false, moduleConfig.getPrefix())); } }
public ActionForward importSections(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixServiceException { importContent(request, "ImportSections"); return new ActionForward("/manageExecutionCourseSite.do?method=sections"); }
public static ActionForward forward(Class actionClass, HttpServletRequest request, String pagePath) { StringBuffer buf = Conventions.getViewName(request, actionClass, pagePath); buf.append(Conventions.getProfile(actionClass).getPagePostfix()); if (logger.isDebugEnabled()) logger.debug(buf.toString()); return new ActionForward(buf.toString()); }
public ActionForward deleteSSTOLeaveBlock(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { BalanceTransferForm btf = (BalanceTransferForm) form; buildBalanceTransferForLeaveBlock(btf, request.getParameter("leaveBlockId")); return new ActionForward(mapping.findForward("basic")); }
public ActionForward viewContestForm(final ActionMapping mapping, final ActionForm actionForm, final HttpServletRequest request, final HttpServletResponse response) { final OutboundMobilityCandidacyContest contest = getDomainObject(request, "contestOid"); request.setAttribute("contest", contest); return new ActionForward(viewContestPath(mapping, request, contest), true); }
@Deprecated public ActionForward generateSummaryFile(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) { return new ActionForward(null, buildSummaryPdfGeneratorURL(request, getCandidacy(request)), false, "/student"); }
ActionForward originalForward = a_mapping.findForward ("Success"); String path = originalForward.getPath() + "?multitablesId=WeeklyDeliveryInstances-Count&name=WeeklyDeliveryInstances-Count&type=excel"; ActionForward forward = new ActionForward(path); forward.setRedirect(true); return (forward);
@Override public ActionForward performLookup(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // parse out the business object name from our methodToCall parameter String fullParameter = (String) request.getAttribute(KFSConstants.METHOD_TO_CALL_ATTRIBUTE); String boClassName = StringUtils.substringBetween(fullParameter, KFSConstants.METHOD_TO_CALL_BOPARM_LEFT_DEL, KFSConstants.METHOD_TO_CALL_BOPARM_RIGHT_DEL); if (!StringUtils.equals(boClassName, GeneralLedgerPendingEntry.class.getName())) { return super.performLookup(mapping, form, request, response); } String path = super.performLookup(mapping, form, request, response).getPath(); path = path.replaceFirst(KFSConstants.LOOKUP_ACTION, KFSConstants.GL_MODIFIED_INQUIRY_ACTION); return new ActionForward(path, true); }
/** * This action allows the user to go to the cash drawer correction screen * * @param mapping * @param form * @param request * @param response * @return * @throws Exception */ public ActionForward correctCashDrawer(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return new ActionForward("CashDrawerCorrectionForm", buildCashDrawerCorrectionUrl(((CashManagementForm) form).getCashManagementDocument()), true); }
public ActionForward findForward(String name) { ActionForward actionForward = new ActionForward(); actionForward.setName(name); actionForward.setPath("/" + name + ".html"); return actionForward; }
protected ActionForward redirect(HttpServletRequest request, Action action, String message) throws Exception { if (Strings.isNotEmpty(message)) saveErrors(request.getSession(), ForwardSupport.buildMessages(new String[] { message })); return new ActionForward(action.getURL(request).toString(), true); }
/** * @see org.kuali.kfs.sys.service.ElectronicFundTransferActionHelper#performAction(org.kuali.kfs.sys.web.struts.ElectronicFundTransferForm, org.apache.struts.action.ActionMapping, java.util.Map) */ public ActionForward performAction(ElectronicFundTransferForm form, ActionMapping mapping, Map parameterMap, String basePath) { return new ActionForward((form.hasAvailableClaimingDocumentStrategies() ? getClaimingLookupUrl(form, basePath) : getNonClaimingLookupUrl(form, basePath) ), true); }
/** * Just returns as if return with no value was selected. */ public ActionForward cancel(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { LookupForm lookupForm = (LookupForm) form; String backUrl = lookupForm.getBackLocation() + "?methodToCall=refresh&docFormKey=" + lookupForm.getFormKey()+"&docNum="+lookupForm.getDocNum(); return new ActionForward(backUrl, true); }
private ActionForward getOldCurriculumRedirect(final ActionForm actionForm, final Student student) { final ActionForward actionForward = new ActionForward(); actionForward.setPath("/viewStudentCurriculum.do?method=prepareReadByStudentNumber&studentNumber=" + student.getNumber() + "&executionDegreeId=" + getExecutionDegreeId(actionForm) + "°reeCurricularPlanID=" + getDegreeCurricularPlanId(actionForm)); return actionForward; }
public ActionForward editTimeBlock(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { ClockActionForm caf = (ClockActionForm) form; TimeBlock tb = caf.getCurrentTimeBlock(); caf.setCurrentAssignmentKey(tb.getAssignmentKey()); caf.populateAssignmentsForSelectedTimeBlock(tb); ActionForward forward = mapping.findForward("et"); return new ActionForward(forward.getPath() + "?editTimeBlockId=" + tb.getTkTimeBlockId().toString()); } public ActionForward addTimeBlock(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
public ActionForward editMeetingAttributes(final ActionMapping mapping, final ActionForm form, final HttpServletRequest request, final HttpServletResponse response) { PhdMeeting meeting = getDomainObject(request, "meetingId"); PhdThesisProcess process = getProcess(request); PhdEditMeetingBean bean = getRenderedObject("bean"); meeting.editAttributes(bean); String link = "/phdThesisProcess.do?method=viewMeetingSchedulingProcess&processId=" + process.getExternalId(); return new ActionForward(link, false); }