?? helloaction.java
字號(hào):
package com.easyjweb.action;
import java.util.Date;
import com.easyjf.web.IWebAction;
import com.easyjf.web.Module;
import com.easyjf.web.Page;
import com.easyjf.web.WebForm;
/**
* EasyJWeb的Hello World程序
* @author
*
*/
public class helloAction implements IWebAction {
/**
* EasyJWeb的action需要實(shí)現(xiàn)IWebAction接口即可,該接口只有一個(gè)方法execute。
*/
public Page execute(WebForm form, Module module) throws Exception {
form.addResult("msg", "喂,您好,我是EasyJWeb,請(qǐng)支持國(guó)產(chǎn)開源項(xiàng)目!");// 設(shè)置VO對(duì)象msg的值為String
// “喂,您好,我是EasyJWeb,請(qǐng)支持國(guó)產(chǎn)開源項(xiàng)目!”
form.addResult("time", new Date());// 設(shè)置VO對(duì)象time的值為當(dāng)前時(shí)間
return module.findPage(module.getDefaultPage());
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -