?? getshipingaction.java
字號:
/*
* Created on 2005-7-2
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package org.ug.sztz.webview.structs.actions;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Vector;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.ug.sztz.domain.assistant.DateProcessor;
import org.ug.sztz.domain.assistant.SchoolFactory;
import org.ug.sztz.domain.oa.DanWeiInfo;
import org.ug.sztz.domain.oa.NewsEntity;
import org.ug.sztz.domain.oa.Sort;
import org.ug.sztz.domain.oa.ZPHInfo;
/**
* @author 桂訓龍
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class GetShiPingAction extends BaseAction{
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
List sortlist=sortDao.getSortList();//欄目列表
request.setAttribute("sortlist",sortlist);
Sort sort=new Sort();
sort.setSortname("視頻服務");
request.setAttribute("sort",sort);
String vadio="招聘會現(xiàn)場";
HashMap map=new HashMap();
map.put("newsstatus","1");
map.put("type","7");
List newslist=this.newsDao.getNewsListByType(map);
request.setAttribute("newslist",newslist);
Vector vector=new Vector();
for(int i=0;i<newslist.size();i++){
NewsEntity news=(NewsEntity)newslist.get(i);
if(news.getNewsbz().trim().equals(vadio)) vector.add(news);
}
request.setAttribute("showlist",vector);
request.setAttribute("type","7");
request.setAttribute("news",this.newsDao.getNewsById(request.getParameter("id")));
return mapping.findForward("success");
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -