资源简介
毕设.zip
代码片段和文件信息
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(“注册用户“)){sql1 = “sel
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-04-05 15:20 jspmbysjglxthsg5445b6\
文件 1195 2019-04-05 08:36 jspmbysjglxthsg5445b6\.classpath
文件 336 2019-04-05 15:20 jspmbysjglxthsg5445b6\.myme
文件 66 2019-04-05 08:36 jspmbysjglxthsg5445b6\.myumldata
文件 1768 2019-04-05 08:36 jspmbysjglxthsg5445b6\.project
目录 0 2019-04-09 10:15 jspmbysjglxthsg5445b6\.settings\
文件 406 2019-04-05 08:36 jspmbysjglxthsg5445b6\.settings\.jsdtscope
文件 105 2019-04-09 10:15 jspmbysjglxthsg5445b6\.settings\com.genuitec.eclipse.core.prefs
文件 49 2019-04-05 08:36 jspmbysjglxthsg5445b6\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2019-04-05 08:36 jspmbysjglxthsg5445b6\.settings\org.eclipse.wst.jsdt.ui.superType.name
目录 0 2019-04-05 15:20 jspmbysjglxthsg5445b6\WebRoot\
目录 0 2019-04-22 17:28 jspmbysjglxthsg5445b6\WebRoot\1\
目录 0 2019-04-05 15:20 jspmbysjglxthsg5445b6\WebRoot\me
文件 39 2019-04-05 08:36 jspmbysjglxthsg5445b6\WebRoot\me
目录 0 2019-04-05 15:20 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\
目录 0 2019-04-05 15:20 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\classes\
目录 0 2019-04-05 15:20 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\classes\control\
文件 13865 2019-04-05 15:20 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\classes\control\MainCtrl.class
文件 3452 2019-04-05 15:20 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\classes\control\Upload.class
目录 0 2019-04-05 15:20 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\classes\dao\
文件 16636 2019-04-05 15:20 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\classes\dao\CommDAO.class
目录 0 2019-04-05 15:20 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\classes\util\
文件 23046 2019-04-05 15:20 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\classes\util\Info.class
文件 5826 2019-04-05 15:20 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\classes\util\PageManager.class
文件 2693 2019-04-05 15:20 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\classes\util\SetChar.class
文件 3402 2019-04-05 15:20 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\classes\util\StrUtil.class
目录 0 2019-04-05 15:20 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\lib\
文件 57779 2019-04-05 08:36 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\lib\commons-fileupload-1.2.1.jar
文件 87776 2019-04-05 08:36 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\lib\commons-io-1.3.2.jar
文件 16046 2019-04-05 08:36 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\lib\json_simple-1.1.jar
文件 14334 2019-04-05 08:36 jspmbysjglxthsg5445b6\WebRoot\WEB-INF\lib\jspsmartupload.jar
............此处省略514个文件信息
- 上一篇:基于STM32库函数的AD9854
- 下一篇:华为 NB-IOT 开发内部文档
相关资源
-
xypla
yer3.8.zip - 预测控制2(席裕庚).pdf
- layui.zip
- qq_29683655_11247966.zip
- 多商家营销活动平台2.3.3小程序前端
- 永和首页PC官网代理V5.9.1原版微擎首页
- topjUI成型的前端框架.rar
- 软件是这样“炼”成的从软件需求分
- 两点坐标连点.exe
- 我和LabVIEW——一个NI工程师的十年编
- 数据恢复4.3.0破解专业版.rar
- jd.zip
- MIPS体系结构透视中文版.pdf
- 支持上传图片带背景音乐版-程序员小
- SgExam.zip
- DHT11温湿度.rar
- 5124386zofui_taskself.zip
- 6001760stm32串口模拟.zip
- 力软敏捷开发框架V7.0开发文档.chm
- Multisim实用基础入门教程——初学者福
- 现代控制工程第五版.pdf
- openvpn_62512.zip
- 最新抽奖助手5.2.5.zip
- K8飞刀20150412BadUSB专版[K.8].rar
- qq33q_10660147.zip
- syncnavigator-7-5-1.zip
- 管家婆辉煌ⅡTOP12.6不带+版五版通用
- 20160929110051981.rar
- 42ecaca3f026d87b4259a104662d79f3.zip
- First-orderMethodsinOptimization.pdf
评论
共有 条评论