• 大小: 11.15MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-01
  • 语言: Java
  • 标签: java  

资源简介

学生宿舍管理系统javabean+servlet+jsp+mysql

资源截图

代码片段和文件信息

package muta.admin.servlet;
import java.io.IOException;

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

import muta.bean.JavaBean;
import muta.bean.SqlBean;

public class Verify extends HttpServlet {
private static final long serialVersionUID = 1L;

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

doPost(requestresponse);
}
public void doPost(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {

response.setContentType(“text/html“);
request.setCharacterEncoding(“utf-8“);
response.setCharacterEncoding(“utf-8“);
//获取登入账号
String account = request.getParameter(“account“);
String password=request.getParameter(“password“);
System.out.println(account+“ “+password+“1“);
String sql =“select * from admin where account=?“;
SqlBean  sBean = new SqlBean();
System.out.println(account+“ “+password+“2“);
boolean temp= sBean.Verify(sql account password);
System.out.println(account+“ “+password+“3“);
if(temp) request.getRequestDispatcher(“index.jsp“).forward(request response);
if(temp==false) request.getRequestDispatcher(“errorlogin.jsp“).forward(request response);
}
}

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

     文件        731  2015-12-31 07:33  student\.classpath

     文件       1040  2015-12-31 07:33  student\.project

     文件        503  2015-12-31 07:33  student\.settings\.jsdtscope

     文件        147  2015-12-31 07:33  student\.settings\org.eclipse.core.resources.prefs

     文件        364  2015-12-31 07:33  student\.settings\org.eclipse.jdt.core.prefs

     文件        473  2015-12-31 07:33  student\.settings\org.eclipse.wst.common.component

     文件        345  2015-12-31 07:33  student\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2015-12-31 07:33  student\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2015-12-31 07:33  student\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       2335  2015-12-31 07:33  student\build\classes\muta\admin\servlet\Verify.class

     文件       2010  2015-12-31 07:33  student\build\classes\muta\bean\JavaBean.class

     文件        735  2015-12-31 07:33  student\build\classes\muta\bean\JavaBean2.class

     文件       1100  2015-12-31 07:33  student\build\classes\muta\bean\JavaBean3.class

     文件        906  2015-12-31 07:33  student\build\classes\muta\bean\JavaBean4.class

     文件       7649  2015-12-31 07:33  student\build\classes\muta\bean\SqlBean.class

     文件       1949  2015-12-31 07:33  student\build\classes\muta\servlet\Delete.class

     文件       2999  2015-12-31 07:33  student\build\classes\muta\servlet\Insert.class

     文件       3881  2015-12-31 07:33  student\build\classes\muta\servlet\SearchById.class

     文件       2924  2015-12-31 07:33  student\build\classes\muta\servlet\Update.class

     文件       2623  2015-12-31 07:33  student\build\classes\muta\thing\servlet\Thing.class

     文件       2711  2015-12-31 07:33  student\build\classes\muta\thing\servlet\Visitor.class

     文件          0  2015-12-31 07:33  student\build\dorm.jsp

     文件       1392  2015-12-31 07:33  student\src\muta\admin\servlet\Verify.java

     文件       1313  2015-12-31 07:33  student\src\muta\bean\JavaBean.java

     文件        415  2015-12-31 07:33  student\src\muta\bean\JavaBean2.java

     文件        642  2015-12-31 07:33  student\src\muta\bean\JavaBean3.java

     文件        485  2015-12-31 07:33  student\src\muta\bean\JavaBean4.java

     文件       6532  2015-12-31 07:33  student\src\muta\bean\SqlBean.java

     文件       1206  2015-12-31 07:33  student\src\muta\servlet\Delete.java

     文件       2175  2015-12-31 07:33  student\src\muta\servlet\Insert.java

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

评论

共有 条评论