资源简介
北大青鸟学员java专业Y2学期项目答辩作品
代码片段和文件信息
package com.action;
import java.io.PrintWriter;
import java.sql.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;
import com.dao.FWLXDao;
import com.dao.FWXXDao;
import com.dao.JDDao;
import com.dao.QXDao;
import com.dao.USERDao;
import com.entity.FWLXEntity;
import com.entity.FWXXEntity;
import com.entity.JDEntity;
import com.entity.QXEntity;
import com.entity.TBL_USER;
import com.form.TBL_FWXXFrom;
import com.form.USER;
public class TBL_FWXXAction extends DispatchAction{
//主页查询所有信息
public ActionForward FWXX(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response)
throws Exception {
// TODO Auto-generated method stub
System.out.println(“==============“);
TBL_FWXXFrom fwxxFrom=(TBL_FWXXFrom)form;
FWXXDao fwxxDao=new FWXXDao();
FWLXDao fwlxDao=new FWLXDao();
JDDao jdDao=new JDDao();
QXDao qxDao=new QXDao();
int scount=fwxxDao.ShiT(“shi“);
int tcount=fwxxDao.ShiT(“ting“);
System.out.println(scount);
int maxT = fwxxDao.MaxTS(“select count(*) as TS from TBL_FWXX“);
int TS=5;
int YS=1;
int maxYS=maxT/TS;
if(request.getParameter(“YS“)!=null){
int Y=Integer.parseInt(request.getParameter(“YS“));
System.out.println(“传过来的页数“+Y);
if(Y!=1){
YS=Y;
}
}
List fwxxList = fwxxDao.FLselect(TSYS);//得到房屋信息
fwxxFrom.setFwxxList(fwxxList);
List qxList = qxDao.Selectlist();//得到区县信息
fwxxFrom.setQxList(qxList);
List fwlxList = fwlxDao.findlist(); //得到房屋类型
fwxxFrom.setFwlxList(fwlxList);
List jdlist = jdDao.findlistByQxid(fwxxFrom.getQxid()); //街道集合
System.out.println(jdlist.size()+“=============街道集合“);
fwxxFrom.setJdlist(jdlist);
System.out.println(“开始跳转 了“+qxList.size());
request.setAttribute(“scount“ scount);
request.setAttribute(“tcount“ tcount);
System.out.println(fwxxFrom.getFwid()+“fwid“);
request.setAttribute(“maxYS“ maxYS);
request.setAttribute(“YS“ YS);
System.out.println(“数据条数>>>>“+fwxxList.size());
return new ActionForward(“/index.jsp“false);
}
//登录用户 《分页》查询所有查询
public ActionForward ListSelect(ActionMapping mapping ActionForm form
HttpServletRequest request HttpServletResponse response)
throws Exception {
// TODO Auto-generated method stub
System.out.println(“==============“);
TBL_FWXXFrom fwxxFrom=(TBL_FWXXFrom)form;
FWXXDao fwxxDao=new FWXXDao();
FWLXDao fwlxDao=new FWLXDao();
JDDao jdDao=new JDDao();
QXDao qxDao=new QXDao();
int scount=fwxxDao.ShiT(“shi“);
int tcount=fwxxDao.ShiT(“ting“);
System.out.println
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-09-14 21:31 Y2ManRentNets\
文件 545 2014-09-14 23:27 Y2ManRentNets\.classpath
目录 0 2014-09-14 21:31 Y2ManRentNets\.myeclipse\
文件 312 2014-10-22 11:25 Y2ManRentNets\.myme
文件 262 2014-09-14 21:31 Y2ManRentNets\.mystrutsdata
文件 1502 2014-09-14 21:33 Y2ManRentNets\.project
目录 0 2014-09-23 01:28 Y2ManRentNets\.settings\
文件 500 2014-09-14 21:31 Y2ManRentNets\.settings\.jsdtscope
文件 90 2014-09-23 03:33 Y2ManRentNets\.settings\org.eclipse.core.resources.prefs
文件 330 2014-09-14 21:31 Y2ManRentNets\.settings\org.eclipse.jdt.core.prefs
文件 49 2014-09-14 21:31 Y2ManRentNets\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2014-09-14 21:31 Y2ManRentNets\.settings\org.eclipse.wst.jsdt.ui.superType.name
目录 0 2014-09-14 21:31 Y2ManRentNets\src\
目录 0 2014-09-16 22:33 Y2ManRentNets\src\com\
目录 0 2014-09-24 17:23 Y2ManRentNets\src\com\action\
文件 19914 2014-09-24 14:39 Y2ManRentNets\src\com\action\TBL_FWXXAction.java
文件 1496 2014-09-21 20:20 Y2ManRentNets\src\com\action\TBL_JDAction.java
文件 859 2014-09-17 11:51 Y2ManRentNets\src\com\action\TBL_QXAction.java
文件 1239 2014-09-24 17:44 Y2ManRentNets\src\com\action\TXTAction.java
文件 3469 2014-09-24 16:14 Y2ManRentNets\src\com\action\USERAction.java
目录 0 2014-09-16 16:06 Y2ManRentNets\src\com\comfig\
文件 130 2014-09-14 22:59 Y2ManRentNets\src\com\comfig\jdbc.properties
目录 0 2014-09-24 17:11 Y2ManRentNets\src\com\dao\
文件 11596 2014-09-21 22:46 Y2ManRentNets\src\com\dao\ba
文件 2047 2014-09-24 12:01 Y2ManRentNets\src\com\dao\FWLXDao.java
文件 10255 2014-09-24 14:45 Y2ManRentNets\src\com\dao\FWXXDao.java
文件 1592 2014-09-21 13:29 Y2ManRentNets\src\com\dao\JDDao.java
文件 2077 2014-09-21 11:43 Y2ManRentNets\src\com\dao\QXDao.java
文件 1239 2014-09-24 17:26 Y2ManRentNets\src\com\dao\TXTDao.java
文件 1630 2014-09-22 01:03 Y2ManRentNets\src\com\dao\USERDao.java
目录 0 2014-09-24 16:59 Y2ManRentNets\src\com\entity\
............此处省略149个文件信息
评论
共有 条评论