1 // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.2 3 package jodd.madvoc.interceptor;4 5 import jodd.madvoc.ActionRequest;6 7 /**8 * Interceptor that invokes {@link jodd.madvoc.ActionRequest#render(String)} after9 * action invocation.10 */11 public class RenderViewInterceptor implements ActionInterceptor {12 13 public String intercept(ActionRequest actionRequest) throws Exception {14 String result = actionRequest.invoke();15 actionRequest.render(result);16 return result;17 }18 }19