⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 promulgatelistaction.java

📁 一段很有意义的源码,看了就知道,不信试一试啊!
💻 JAVA
字号:
package com.wondersgroup.businessmodule.meetingmanage.web.action;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.DynaActionForm;

import com.wondersgroup.businessmodule.meetingmanage.service.MeetingService;
import com.wondersgroup.core.BaseAction;
import com.wondersgroup.framework.core.bo.Page;

public class PromulgateListAction extends BaseAction {

	/*申明服务*/
	private MeetingService service;
	
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			   HttpServletRequest request, HttpServletResponse response) {
		DynaActionForm meetingRequestListForm = (DynaActionForm) form;// TODO Auto-generated method stub
//		String action = meetingRequestListForm.getString("action");
		int curPage=Integer.parseInt(meetingRequestListForm.getString("curPage").equals("")?"1":meetingRequestListForm.getString("curPage"));
		int pageSize = 10;
		Map m=new HashMap(); 
		m.put("STARTTIME", meetingRequestListForm.getString("startTime"));
		m.put("ENDTIME", meetingRequestListForm.getString("endTime"));
		m.put("TITLE", meetingRequestListForm.getString("title"));
		m.put("ROOMID", meetingRequestListForm.getString("roomId"));
		Page page = service.getAllPromulgateList(curPage, pageSize, m);
		request.setAttribute("page", page);
		/*会议室列表*/
		List options = service.getRoomCollection(0);
		request.setAttribute("options", options);
		return mapping.findForward("listPage");
	}

	public void setService(MeetingService service) {
		this.service = service;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -