📄 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 + -