www.pudn.com > struts2.rar > MyInterceptor2.java, change:2009-08-19,size:475b


package com.test.interceptor; 
 
import com.opensymphony.xwork2.ActionInvocation; 
import com.opensymphony.xwork2.interceptor.AbstractInterceptor; 
 
public class MyInterceptor2 extends AbstractInterceptor { 
 
	public String intercept(ActionInvocation invocation) throws Exception { 
		// TODO Auto-generated method stub 
		System.out.println("interceptor2"); 
		 
		String result = invocation.invoke(); 
		 
		System.out.println("finish2"); 
		 
		return result; 
	} 
 
}