struts_interceptor

1329 ワード

1.クラス

public class MyInterceptor implements Interceptor {

	public void destroy() {
	}

	public void init() {
	}

	public String intercept(ActionInvocation invocation) throws Exception {
		System.out.println("+++++2+++++");
		invocation.invoke();
		System.out.println("=====2=====");
		return "sss";
	}

}

2.strutsを構成する.xml
参照
 
   
           
         

       
            /{2}.jsp
            
            
      

   

3.重複コミットの検証
構成struts.xml
 
   
参照

            
            
jspの構成
 
参照