action invoke前会调用,invoke后会调用

public class FirstInterceptor extends AbstractInterceptor{
    
    
    @Override
    public String intercept(ActionInvocation actionInvocation) throws Exception {
        String result = actionInvocation.invoke();
        return result;
    }
    
}
        <interceptors>
            <interceptor name="firstInter" class="com.wolfgang.interceptor.FirstInterceptor"></interceptor>
        </interceptors>
        <action name="testOGNL" class="com.wolfgang.action.TestOGNL">
            <interceptor-ref name="firstInter"></interceptor-ref>
            <result>/OGNL/static.jsp</result>
        </action>

 

相关文章:

  • 2021-05-29
猜你喜欢
  • 2021-12-07
  • 2021-12-11
  • 2021-09-22
  • 2021-08-08
  • 2021-06-28
相关资源
相似解决方案