@Retention(value=RUNTIME) @Target(value=METHOD) public @interface AfterAction
 A method annotated with this annotation is invoked after the @Action
 method is invoked. There can be only one method with this annotation in a
 controller or interceptor. An @AfterAction method must accept no
 arguments, or accept only a RequestContext
 argument. Methods annotated with this annotation must not be annotated with
 @Action, @DefaultAction, or @InterceptedBy. An
 @AfterAction method must be public.
 
 An @AfterAction method can return any return type, but only a
 View return type will have any significance. If a
 concrete View is returned, it overrides the View returned by the @Action
 method. However, if a null View is returned, then the View returned by the
 @Action method is used.
 
The following are valid uses of this annotation:
 @AfterAction
 public View doSomethingAfter() {
     return new View("after.jsp");
 }
 
 
 
 @AfterAction
 public View doSomethingAfter() {
     return null; // use the View returned by the @Action method
 }
 
 
 
 @AfterAction
 public void doSomethingAfter() {
     // do something after and use the View returned by the @Action method
 }
 
 
 
 An @AfterAction method can be used either in a controller or in an
 interceptor class. For more information about interceptors, see
 InterceptedBy.
 
Copyright © 2011-2012 MojaveMVC.org