public String getInput() { if (this.overwritePrameters.containsKey(INPUT_KEY)) { return (String) this.overwritePrameters.get(INPUT_KEY); } return mapping.getInput(); }
/** * <p>Create (if necessary) and return an {@link ActionForward} that * corresponds to the <code>input</code> property of this Action.</p> * * @return The input forward for this action mapping. * @since Struts 1.1 */ public ActionForward getInputForward() { if (getModuleConfig().getControllerConfig().getInputForward()) { return (findForward(getInput())); } else { return (new ActionForward(getInput())); } } }
public Object invoke(MethodInvocation invocation) throws Throwable { ActionMapping mapping = (ActionMapping) invocation.getArguments()[3]; String input = mapping.getInput(); if (input == null && S2StrutsContextUtil.getPreviousInputPath() != null) { ActionMapping newMapping = new ActionMapping(); try { PropertyUtils.copyProperties(newMapping, mapping); } catch (IllegalAccessException e) { throw new IllegalAccessRuntimeException(newMapping.getClass(), e); } catch (InvocationTargetException e) { throw new InvocationTargetRuntimeException(newMapping.getClass(), e); } catch (NoSuchMethodException e) { throw new NoSuchMethodRuntimeException(newMapping.getClass(), null, null, e); } input = S2StrutsContextUtil.getPreviousInputPath(); newMapping.setInput(input); invocation.getArguments()[3] = newMapping; } return invocation.proceed(); }
public ActionForward viewDescriptionCurricularPlan(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { String degreeCurricularPlanID = RequestUtils.getAndSetStringToRequest(request, "degreeCurricularPlanID"); DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanID); if (degreeCurricularPlan == null) { addErrorMessage(request, "noDegreeCurricularPlan", "error.coordinator.chosenDegree"); return new ActionForward(mapping.getInput()); } request.setAttribute("degreeCurricularPlan", degreeCurricularPlan); LocalizedString.Builder builder = new LocalizedString.Builder(); CoreConfiguration.supportedLocales().forEach(l -> { if (l.getLanguage().equals("en")) { builder.with(l, degreeCurricularPlan.getDescriptionEn()); } else { builder.with(l, degreeCurricularPlan.getDescription()); } }); LocalizedString degreeCurricularPlanLS = builder.build(); request.setAttribute("degreeCurricularPlanDescription", degreeCurricularPlanLS); return mapping.findForward("viewDescriptionCurricularPlan"); }
String input = mapping.getInput();
String input = mapping.getInput(); if (input == null) { if (log.isTraceEnabled()) {
public boolean execute(ActionContext actionContext) throws Exception { ActionMapping mapping = (ActionMapping) actionContext.getActionConfig(); String input = mapping.getInput(); if (input == null && S2StrutsContextUtil.getPreviousInputPath() != null) { ActionMappingWrapper wrapper = new ActionMappingWrapper(mapping); input = S2StrutsContextUtil.getPreviousInputPath(); wrapper.setInput(input); actionContext.setActionConfig(wrapper); } return false; }
String input = mapping.getInput(); if (input == null) { if (log.isTraceEnabled()) {
String input = mapping.getInput(); if (input == null) { if (LOG.isDebugEnabled()) {
public ActionForward viewInformation(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixServiceException { RequestUtils.getAndSetStringToRequest(request, "info"); String degreeCurricularPlanID = RequestUtils.getAndSetStringToRequest(request, "degreeCurricularPlanID"); DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanID); ExecutionYear currentExecutionYear = ExecutionYear.readCurrentExecutionYear(); DegreeInfo currentDegreeInfo = currentExecutionYear.getDegreeInfo(degreeCurricularPlan.getDegree()); if (currentDegreeInfo == null && currentExecutionYear.hasNextExecutionYear()) { currentDegreeInfo = currentExecutionYear.getNextExecutionYear().getDegreeInfo(degreeCurricularPlan.getDegree()); } if (currentDegreeInfo == null) { if (!getUser().getPerson().isCoordinatorFor(degreeCurricularPlan, currentExecutionYear) && !getUser().getPerson().isCoordinatorFor(degreeCurricularPlan, currentExecutionYear.getNextExecutionYear())) { addErrorMessage(request, "notAuthorized", "error.exception.notAuthorized2"); return new ActionForward(mapping.getInput()); } currentDegreeInfo = CreateCurrentDegreeInfo.run(degreeCurricularPlan.getDegree()); } request.setAttribute("currentDegreeInfo", currentDegreeInfo); return mapping.findForward("viewInformation"); }