标注一个action的方法,在主action方法之前执行.
Before标注可以在方法级别设置.
没有参数
public class SampleAction extends ActionSupport { @Before public void isAuthorized() throws AuthenticationException { // authorize request, throw exception if failed } public String execute() { // perform secure action return SUCCESS; } }