/** * Sets the input attribute. If form validation fails, the * input attribute can be verified with {@link #verifyForward}. * Calls <code>ActionMapping.setInput</code> on the action mapping returned * by {@link #getActionMapping}. * @param input the input attribute */ public void setInput(String input) { getActionMapping().setInput(input); }
/** * Sets the input attribute. If form validation fails, the * input attribute can be verified with {@link #verifyForward}. * Calls <code>ActionMapping.setInput</code> on the action mapping returned * by {@link #getActionMapping}. * @param input the input attribute */ public void setInput(String input) { getActionMapping().setInput(input); }
/** * Sets the input attribute. If form validation fails, the * input attribute can be verified with {@link #verifyForward}. * Calls <code>ActionMapping.setInput</code> on the action mapping returned * by {@link #getActionMapping}. * @param input the input attribute */ public void setInput(String input) { getActionMapping().setInput(input); }
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(); }