@BeforeResultによるAction返却値の変更

次のようにする事で、Actionの戻り値を別の値に変更することが出来る。

	@BeforeResult
	public void beforer1() {
		ActionInvocation invocation = ActionContext.getContext().getActionInvocation();
		String ans = invocation.getResultCode();
		System.out.println("beforeresult1:[" + ans + "]");
		invocation.setResultCode("success");
	}

なぜか ActionContext や ActionInvocation を知らないといけない