public void setGlobalResultActionName(final String globalResultActionName) {
_globalResultActionName = globalResultActionName;
}
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see com.opensymphony.xwork2.interceptor.Interceptor#intercept(com.opensymphony.xwork2.ActionInvocation)
+ */
+ public String intercept(final ActionInvocation invocation) throws Exception { //NOPMD: RKV: because of struts invoke() method
+ String result = super.intercept(invocation);
+ if (result.equals(getGlobalResult())) { //Redirect happened
+ ((Action)invocation.getAction()).setMessage("");
+ }
+ return result;
+ }
/**
* {@inheritDoc}