资源简介
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\.myme
文件 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.xm
文件 1637 2014-03-02 20:21 shhouse\src\pojobean\Buyinfo.java
文件 767 2014-03-02 20:21 shhouse\src\pojobean\Idatadic.hbm.xm
文件 863 2014-03-02 20:21 shhouse\src\pojobean\Idatadic.java
文件 1126 2014-03-02 20:21 shhouse\src\pojobean\Lyb.hbm.xm
文件 1525 2014-03-02 20:21 shhouse\src\pojobean\Lyb.java
文件 1609 2014-03-02 20:21 shhouse\src\pojobean\Mixinfo.hbm.xm
文件 2289 2014-03-02 20:21 shhouse\src\pojobean\Mixinfo.java
文件 3214 2014-03-02 20:21 shhouse\src\pojobean\Pros.hbm.xm
文件 4973 2014-03-02 20:21 shhouse\src\pojobean\Pros.java
文件 872 2014-03-02 20:21 shhouse\src\pojobean\Scinfo.hbm.xm
............此处省略965个文件信息
相关资源
- 蜘蛛池.rar
- 通达信公式管理器破解器合集.rar
- 多方安全计算金融应用技术规范.pdf
- 阿里云短信.rar
- 《LabVIEW入门与实战开发100例》源程序
- chromedriver_win32.zip
- exe4j_64.rar
- 20170210201906561.rar
- 公交在线查询系统.zip
- PT920破解.doc
- 北大青鸟ACCP8.0全套课件.rar
- TensorFlow实战Google深度学习框架.pdf
- 真题.rar
- 20161002155350470.rar
- TransMac_11.0破解版.rar
- imagesegmentation.zip
- ShadowsocksR-win-4.9.0-副本.zip
- DHT11数字温湿度传感器实验.rar
- 5.3复合旋转变换.zip
- 基于三维数字图像相关的车载零件形
- 大数据能力提升大赛.docx
- 053考前看.pdf
- pingjie1.zip
- 苹果ID鱼站源码.zip
- 199801.zip
- 软件工程.zip
- weixin.rar
- AssetsBundleExtractor_1.9_64bit.zip
- 802.15.4-2011.pdf
- hipmovie.rar
评论
共有 条评论