?? baseaction.java
字號:
/**
* @創建日期 2008-12-18
* @版本 V 1.0
*/
package com.ejunnet.ssh.ui.struts.action;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.Preparable;
/**
* @作者 趙昌峻
* Apache Struts 2 was originally known as WebWork 2.
* After working independently for several years,
* the WebWork and Struts communities joined forces
* to create Struts2. This new version of Struts is simpler
* to use and closer to how Struts was always meant to be.
* 上面這段英文大體上說的是struts2的來龍去脈
* 它是struts與webwork的結晶,可以說與struts1沒有太大的關系
*
* 所有Action都繼承ActionSupport, 好像還有別的方法,我也還沒搞懂,哈哈
* 先這樣理解吧!
*
* 實現Preparable是可以在您的action中進行一些初始化之類的操作
*/
public abstract class BaseAction extends ActionSupport implements Preparable{
//抽象類中可以定義一些想在本系統中共用的一些東西
public static final String LIST = "list";
public abstract String execute();
public abstract void prepare();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -