📄 helloaction.java
字号:
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;
public class helloAction implements IWebAction {
public Page execute(WebForm form, Module module) throws Exception {
form.addResult("msg","喂,您好,我是EasyJWeb,请支持国产开源项目!");//设置VO对象msg的值为String “喂,您好,我是EasyJWeb,请支持国产开源项目!”
form.addResult("time",new Date());//设置VO对象time的值为当前时间
return module.findPage(module.getDefaultPage());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -