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

📄 informfindaction.java

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



import java.util.Date;

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

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

import com.wondersgroup.basemodule.StringToDate;
import com.wondersgroup.basemodule.inform.service.InformService;
import com.wondersgroup.basemodule.inform.web.form.InformForm;
import com.wondersgroup.framework.core.bo.Page;

public class InformFindAction extends Action {
	private InformService informservice;
	/*服务注入方法*/
	public void setInformService(InformService informservice){
		this.informservice=informservice;
	}
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
		
		InformForm inform= (InformForm) form;
		
		int pageNo;
		String paStr = request.getParameter("pageNo");
		if(paStr==null){
			paStr="1";
		}
		
		pageNo = Integer.parseInt(paStr);
		long putTip=inform.getPutTip();
		System.out.println("putTip="+putTip);
		
		String name=inform.getName();
		System.out.println("name="+name);
		
		String startDate=inform.getStart_time();
		System.out.println("startDate="+startDate);
		
		String endDate=inform.getEnd_time();
		System.out.println("endDate="+endDate);
		
		Page page=informservice.findInform(putTip,name, startDate, endDate, pageNo, 3); //查询通知,分页显示返回给(inform.jsp)页面
		request.setAttribute("page", page);

		return mapping.findForward("inform_find");
	}
}

⌨️ 快捷键说明

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