public void destroy() {}
public void init() {}
public String intercept(ActionInvocation actionInvocation) throws Exception {
ActionSupport action = (ActionSupport) actionInvocation.getAction();
try {
return actionInvocation.invoke();
} catch (Exception e) {
action.addActionError("Error: " + e.getMessage());
log.error(e.getMessage(), e);
return Action.ERROR;
}
}