JavaScud | Forum | JIRA | Blog |
  Dashboard > WebWork2文档中文化计划 > ... > J2SE 5 Support > After Annotation
  WebWork2文档中文化计划 Log In View a printable version of the current page.  
  After Annotation
Added by scud, last edited by scud on May 16, 2006  (view change)
Labels: 
(None)

After 标注

标注一个action的方法,在主action方法和result执行之后来调用.返回的值被忽略.

使用

After标准可以在方法级别上设置.

参数

没有参数

例子

public class SampleAction extends ActionSupport {

 @After
 public void isValid() throws ValidationException {
   // validate model object, throw exception if failed
 }

 public String execute() {
    // perform action
    return SUCCESS;
 }
}
Site running on a free Atlassian Confluence Open Source Project License granted to WebWork China. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.3 Build:#808 May 29, 2007) - Bug/feature request - Contact Administrators