📄 newaction.java
字号:
package com.easyjf.news.action;
import java.util.List;
import com.easyjf.news.logic.impl.NewsServiceImpl;
import com.easyjf.news.logic.impl.TypeServiceImpl;
import com.easyjf.web.Module;
import com.easyjf.web.Page;
import com.easyjf.web.WebForm;
import com.easyjf.web.tools.AbstractCmdAction;
public class NewAction extends AbstractCmdAction {
NewsServiceImpl newsDAO = NewsServiceImpl.getInstance();
TypeServiceImpl typeDAO = TypeServiceImpl.getInstance();
public Page doInit(WebForm form,Module module) {
// TODO Auto-generated method stub
return null;
}
public Page doShowType(WebForm form,Module module){
String type=(String)form.get("type");
List newsList=newsDAO.getNewsBySql("small_type="+type,null,0,30);
return null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -