📄 typetopaction.java~1~
字号:
package com.victor.frontStage.newsAction;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import com.victor.service.NewsTypeFacade;
import com.victor.service.NewsTypeFacadeImpl;
import java.util.List;
//前台的新闻类型的查找,并且显示到上一个jsp页面中去
public class TypeTopAction
extends Action {
private NewsTypeFacade newsTypeFacade;
public TypeTopAction() {
this.newsTypeFacade = new NewsTypeFacadeImpl();
}
public ActionForward perform(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse) {
List list = this.newsTypeFacade.newsWarch();
httpServletRequest.setAttribute("listType", list);
return actionMapping.findForward("typeTopAction");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -