01: // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
02:
03: package jodd.madvoc.interceptor;
04:
05: import jodd.madvoc.ActionRequest;
06:
07: /**
08: * Interceptor that invokes {@link jodd.madvoc.ActionRequest#render(String)} after
09: * action invocation.
10: */
11: public class RenderViewInterceptor implements ActionInterceptor {
12:
13: public String intercept(ActionRequest actionRequest)
14: throws Exception {
15: String result = actionRequest.invoke();
16: actionRequest.render(result);
17: return result;
18: }
19: }
|