Package com.opensymphony.xwork

Examples of com.opensymphony.xwork.ActionSupport.addActionError()


    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;
        }
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.