• 大小: 5.54MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-14
  • 语言: Java
  • 标签: java  jsp  mysql  

资源简介

非常完整的系统,下载即用,有论文,有系统,有数据库

资源截图

代码片段和文件信息

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 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();
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);

 
if(ac.equals(“login“))
{
String username = request.getParameter(“username“);
String password = request.getParameter(“pwd1“);
String utype = request.getParameter(“cx“);
String pagerandom = request.getParameter(“pagerandom“)==null?““:request.getParameter(“pagerandom“);
String random = (String)request.getSession().getAttribute(“random“);
if(!pagerandom.equals(random)&&request.getParameter(“a“)!=null)
{
request.setAttribute(“random“ ““);
go(“/index.jsp“ request response);
}
else{
String sql1=““;
if (utype.equals(“注册用户“))
{
s

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-11-19 11:50  jspmxlcpglxtdzkfB4\
     文件        1195  2018-04-13 13:15  jspmxlcpglxtdzkfB4\.classpath
     文件         327  2018-04-13 13:15  jspmxlcpglxtdzkfB4\.mymetadata
     文件          66  2018-04-13 11:06  jspmxlcpglxtdzkfB4\.myumldata
     文件        1765  2018-04-13 11:06  jspmxlcpglxtdzkfB4\.project
     目录           0  2018-11-19 11:35  jspmxlcpglxtdzkfB4\.settings\
     文件         406  2018-04-13 11:06  jspmxlcpglxtdzkfB4\.settings\.jsdtscope
     文件          49  2018-04-13 11:06  jspmxlcpglxtdzkfB4\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-04-13 11:06  jspmxlcpglxtdzkfB4\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-11-19 11:44  jspmxlcpglxtdzkfB4\WebRoot\
     目录           0  2018-11-19 11:35  jspmxlcpglxtdzkfB4\WebRoot\meta-INF\
     文件          39  2018-04-13 11:06  jspmxlcpglxtdzkfB4\WebRoot\meta-INF\MANIFEST.MF
     目录           0  2018-11-19 11:35  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\
     目录           0  2018-11-19 11:35  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\classes\
     目录           0  2018-11-19 11:35  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\classes\control\
     文件       13674  2018-04-13 13:58  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\classes\control\MainCtrl.class
     文件        3452  2018-04-13 13:15  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\classes\control\Upload.class
     目录           0  2018-11-19 11:35  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\classes\dao\
     文件       16681  2018-04-13 13:15  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\classes\dao\CommDAO.class
     目录           0  2018-11-19 11:35  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\classes\util\
     文件       23046  2018-04-13 13:15  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\classes\util\Info.class
     文件        5826  2018-04-13 13:15  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\classes\util\PageManager.class
     文件        2693  2018-04-13 13:15  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\classes\util\SetChar.class
     文件        3402  2018-04-13 13:15  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\classes\util\StrUtil.class
     目录           0  2018-11-19 11:35  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\lib\
     文件       57779  2018-04-13 11:06  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\lib\commons-fileupload-1.2.1.jar
     文件       87776  2018-04-13 11:06  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\lib\commons-io-1.3.2.jar
     文件       16046  2018-04-13 11:06  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\lib\json_simple-1.1.jar
     文件       14334  2018-04-13 11:06  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\lib\jspsmartupload.jar
     文件      611696  2018-04-13 11:06  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\lib\jxl.jar
     文件      284752  2018-04-13 11:06  jspmxlcpglxtdzkfB4\WebRoot\WEB-INF\lib\msbase.jar
............此处省略202个文件信息

评论

共有 条评论