Class ModelDrivenInterceptor.RefreshModelBeforeResult

java.lang.Object
org.apache.struts2.interceptor.ModelDrivenInterceptor.RefreshModelBeforeResult
All Implemented Interfaces:
PreResultListener
Enclosing class:
ModelDrivenInterceptor

protected static class ModelDrivenInterceptor.RefreshModelBeforeResult extends Object implements PreResultListener
Refreshes the model instance on the value stack, if it has changed
  • Field Details

  • Constructor Details

    • RefreshModelBeforeResult

      public RefreshModelBeforeResult(ModelDriven action, Object model)
  • Method Details

    • beforeResult

      public void beforeResult(ActionInvocation invocation, String resultCode)
      Description copied from interface: PreResultListener
      This callback method will be called after the Action execution and before the Result execution.
      Specified by:
      beforeResult in interface PreResultListener
      Parameters:
      invocation - the action invocation
      resultCode - the result code returned by the action (eg. success).