• 大小: 3.42M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-10
  • 语言: 其他
  • 标签: 其他  

资源简介

shhouse.rar

资源截图

代码片段和文件信息

package control;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

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

import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;

import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.FileUpload;
import org.apache.commons.fileupload.RequestContext;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
import org.apache.commons.fileupload.servlet.ServletRequestContext;


import util.Info;

import dao.CommDAO;

public class MainCtrl extends HttpServlet {

public MainCtrl() {
super();
}

public void destroy() {
super.destroy(); // Just puts “destroy“ string in log
// Put your code here
}

public void doGet(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
this.doPost(request response);
}

public void go(String urlHttpServletRequest request HttpServletResponse response)
{
try {
request.getRequestDispatcher(url).forward(request response);
} catch (ServletException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}

public void gor(String urlHttpServletRequest request HttpServletResponse response)
{
try {
response.sendRedirect(url);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}

public void doPost(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
        response.setContentType(“text/html“);
PrintWriter out = response.getWriter();
HttpSession session = request.getSession();
HashMap user = (HashMap)session.getAttribute(“admin“);
HashMap member = (HashMap)session.getAttribute(“user“);
String ac = request.getParameter(“ac“);
if(ac==null)ac=““;
CommDAO dao = new CommDAO();
String date = Info.getDateStr();
String today = date.substring(010);
String tomonth = date.substring(07);


//dao.commOper(“update fangyd set states=‘已超时‘ where etime<‘“+date.substring(0date.length()-3)+“‘ and states=‘已受理‘“);




//检查用户名唯一性
if(ac.equals(“checkuname“))
{
    String id = request.getParameter(“id“);
    String checkuname = request.getParameter(“checkuname“);
    String sql = “select * from sysuser where uname=‘“+checkuname+“‘“;
 List list = dao.sele

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       8819  2017-11-07 09:30  shhouse\.classpath

     文件        294  2017-11-07 09:29  shhouse\.mymetadata

     文件       1225  2014-03-02 15:46  shhouse\.project

     文件      35427  2017-11-07 09:47  shhouse\src\control\MainCtrl.java

     文件      11755  2014-03-02 20:31  shhouse\src\control\SysAction.java

     文件       4206  2010-11-16 12:46  shhouse\src\control\Upload.java

     文件       4059  2014-03-02 20:24  shhouse\src\dao\BuyinfoDAO.java

     文件      17398  2017-11-07 09:44  shhouse\src\dao\CommDAO.java

     文件       3764  2013-03-06 11:40  shhouse\src\dao\HibernateDAO.java

     文件       3321  2013-03-06 10:19  shhouse\src\dao\HibernateSessionFactory.java

     文件       3669  2014-03-02 20:28  shhouse\src\dao\IdatadicDAO.java

     文件       3521  2014-03-02 20:28  shhouse\src\dao\LybDAO.java

     文件       3641  2014-03-02 20:28  shhouse\src\dao\MixinfoDAO.java

     文件       3550  2014-03-02 20:28  shhouse\src\dao\ProsDAO.java

     文件       3610  2014-03-02 20:29  shhouse\src\dao\ScinfoDAO.java

     文件       3671  2014-03-02 20:29  shhouse\src\dao\SellinfoDAO.java

     文件       3641  2014-03-02 20:29  shhouse\src\dao\SysuserDAO.java

     文件       3610  2014-03-02 20:29  shhouse\src\dao\TaolunDAO.java

     文件       3547  2014-03-02 20:29  shhouse\src\dao\ZxgsDAO.java

     文件       1231  2014-03-02 20:21  shhouse\src\pojobean\Buyinfo.hbm.xml

     文件       1637  2014-03-02 20:21  shhouse\src\pojobean\Buyinfo.java

     文件        767  2014-03-02 20:21  shhouse\src\pojobean\Idatadic.hbm.xml

     文件        863  2014-03-02 20:21  shhouse\src\pojobean\Idatadic.java

     文件       1126  2014-03-02 20:21  shhouse\src\pojobean\Lyb.hbm.xml

     文件       1525  2014-03-02 20:21  shhouse\src\pojobean\Lyb.java

     文件       1609  2014-03-02 20:21  shhouse\src\pojobean\Mixinfo.hbm.xml

     文件       2289  2014-03-02 20:21  shhouse\src\pojobean\Mixinfo.java

     文件       3214  2014-03-02 20:21  shhouse\src\pojobean\Pros.hbm.xml

     文件       4973  2014-03-02 20:21  shhouse\src\pojobean\Pros.java

     文件        872  2014-03-02 20:21  shhouse\src\pojobean\Scinfo.hbm.xml

............此处省略965个文件信息

评论

共有 条评论