• 大小: 2.1MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-12
  • 语言: 其他
  • 标签: 数据库  

资源简介

这个是本人实训两个礼拜的结晶 不是很好 但都很基础

资源截图

代码片段和文件信息

package control;
import dao.*;
import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;

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

public class userServlet1 extends HttpServlet {


public void doGet(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {

response.setContentType(“text/html“);
PrintWriter out = response.getWriter();

}


public void doPost(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
request.setCharacterEncoding(“gbk“);
response.setContentType(“text/html“);
response.setCharacterEncoding(“gbk“);
PrintWriter out = response.getWriter();

  
 
String strName=request.getParameter(“txtName“);
        String strPwd=request.getParameter(“txtPwd“); 
  typeDao select=new typeDao();
  int i=select.cx(strNamestrPwd);
  //int i=select.seleteUser(strNamestrPwd);
  if(i>0)
{
//out.println(“ript>alert(‘登陆成功‘);ript>“);
//存储下来
request.setAttribute(“user_state“ “true“);
//页面跳转
request.getRequestDispatcher(“/select.jsp“).forward(request response);
}
else{
//out.println(“ript>alert(‘登陆失败‘);ript>“);
request.setAttribute(“user_state“ “false“);
request.getRequestDispatcher(“/select.jsp“).forward(request response);
}


}}


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

     文件        410  2002-02-26 01:23  hp\shopMS\.classpath

    ..A.SH.         9  2002-04-24 03:28  hp\shopMS\.myeclipse\_desktop.ini

     文件        291  2002-03-05 01:02  hp\shopMS\.mymetadata

     文件       1412  2002-02-26 01:48  hp\shopMS\.project

     文件        406  2002-02-26 01:22  hp\shopMS\.settings\.jsdtscope

     文件        334  2002-02-26 01:22  hp\shopMS\.settings\org.eclipse.jdt.core.prefs

     文件         49  2002-02-26 01:22  hp\shopMS\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2002-02-26 01:22  hp\shopMS\.settings\org.eclipse.wst.jsdt.ui.superType.name

    ..A.SH.         9  2002-04-24 03:28  hp\shopMS\.settings\_desktop.ini

     文件       1495  2002-03-05 10:47  hp\shopMS\src\control\userServlet1.java

     文件       1439  2002-03-04 06:24  hp\shopMS\src\control\userServlet2.java

     文件       5372  2002-03-06 01:04  hp\shopMS\src\dao\cartDao.java

     文件        736  2002-03-03 01:59  hp\shopMS\src\dao\DBHelp.java

     文件       1398  2002-03-03 10:25  hp\shopMS\src\dao\goodInfoDao.java

     文件       3131  2002-02-27 06:50  hp\shopMS\src\dao\typeDao.java

     文件       2054  2002-03-05 10:37  hp\shopMS\src\dao\userDao.java

     文件        928  2002-02-26 06:33  hp\shopMS\src\dao\xiugai.java

     文件       1254  2002-03-04 04:02  hp\shopMS\WebRoot\addUser.jsp

     文件        901  2002-03-04 11:05  hp\shopMS\WebRoot\c.jsp

     文件       5061  2002-03-05 12:06  hp\shopMS\WebRoot\cartList.jsp

     文件       2221  2002-03-05 11:35  hp\shopMS\WebRoot\changePwd.jsp

     文件        964  2002-03-05 12:03  hp\shopMS\WebRoot\delete.jsp

     文件       3005  2002-03-05 03:40  hp\shopMS\WebRoot\goodList.jsp

     文件        104  2002-03-03 03:16  hp\shopMS\WebRoot\image\aa.gif

     文件       8687  2002-03-03 00:28  hp\shopMS\WebRoot\image\ad.gif

     文件    1079557  2002-03-03 00:28  hp\shopMS\WebRoot\image\banner.gif

     文件        717  2002-03-03 03:25  hp\shopMS\WebRoot\image\bb.gif

     文件      43463  2002-03-03 00:28  hp\shopMS\WebRoot\image\copyRight.gif

     文件       1746  2002-03-03 01:29  hp\shopMS\WebRoot\image\dd.gif

     文件        141  2002-03-03 01:29  hp\shopMS\WebRoot\image\ee.gif

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

评论

共有 条评论