• 大小: 489KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-11
  • 语言: Java
  • 标签: jsp  MVC  员工管理  

资源简介

用jsp实现简单员工管理系统 使用MVC模式编写简单易懂

资源截图

代码片段和文件信息

package com.moder;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

public class ConnDB {
Connection ct=null;
public Connection getConnet(){
//加载驱动
try{
Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver“);
//链接数据库
ct=DriverManager.getConnection(“jdbc:odbc:SQL““sa““sa“);
}catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
return ct;
}




//测试数据库的链接
/*
public static void main(String[] args) {
ConnDB c=new ConnDB();
c.getConnet();
Connection ct=null;
Statement sm=null;
ResultSet rs=null;
try{
ct=new ConnDB().getConnet();
sm=ct.createStatement();
rs=sm.executeQuery(“select passwd from userTable where name=‘test‘“);
if(rs.next()){
System.out.println(rs.getString(1));
}
}catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
}*/
}

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

     文件        731  2013-05-12 09:23  EmployeeMessage\.classpath

     文件        318  2013-06-24 23:11  EmployeeMessage\.mymetadata

     文件       1421  2013-05-12 09:17  EmployeeMessage\.project

     文件        500  2013-05-12 08:28  EmployeeMessage\.settings\.jsdtscope

     文件        109  2013-05-28 18:09  EmployeeMessage\.settings\com.genuitec.eclipse.ws.prefs

     文件        330  2013-05-12 08:28  EmployeeMessage\.settings\org.eclipse.jdt.core.prefs

     文件         49  2013-05-12 08:28  EmployeeMessage\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2013-05-12 08:28  EmployeeMessage\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件        972  2013-05-12 11:08  EmployeeMessage\src\com\moder\ConnDB.java

     文件       1004  2013-05-12 13:13  EmployeeMessage\src\com\moder\messageBean.java

     文件        764  2013-05-12 11:08  EmployeeMessage\src\com\moder\userBean.java

     文件       7301  2013-06-11 13:23  EmployeeMessage\src\com\moder\userBeanCl.java

     文件       1386  2013-05-12 13:34  EmployeeMessage\src\com\sevlert\addMessageServlet.java

     文件        722  2013-05-12 15:42  EmployeeMessage\src\com\sevlert\CheckSevelt.java

     文件       1251  2013-05-12 18:13  EmployeeMessage\src\com\sevlert\employeeManage.java

     文件       1495  2013-05-29 08:35  EmployeeMessage\src\com\sevlert\LoginClservlet.java

     文件       1761  2013-05-15 18:30  EmployeeMessage\src\com\sevlert\updateCL.java

     文件       1962  2013-05-29 09:26  EmployeeMessage\src\com\sevlert\updateEmployee.java

     文件       2535  2013-05-29 19:27  EmployeeMessage\WebRoot\addEmployee.jsp

     文件        900  2013-05-12 18:05  EmployeeMessage\WebRoot\addemployeeFail.jsp

     文件        904  2013-05-12 18:04  EmployeeMessage\WebRoot\addemployeeSuccess.jsp

     文件       4065  2013-06-03 08:37  EmployeeMessage\WebRoot\addMessage.jsp

     文件        898  2013-05-12 13:21  EmployeeMessage\WebRoot\addmessageFail.jsp

     文件        901  2013-05-12 13:20  EmployeeMessage\WebRoot\addmessageSuccess.jsp

     文件       1899  2013-05-29 19:27  EmployeeMessage\WebRoot\admin.jsp

     文件       1858  2013-05-29 19:27  EmployeeMessage\WebRoot\adminCheck.jsp

     文件       2868  2013-05-29 19:27  EmployeeMessage\WebRoot\adminCheckMessage.jsp

     文件       2743  2013-05-29 19:27  EmployeeMessage\WebRoot\adminEmployee.jsp

     文件        885  2013-05-12 17:05  EmployeeMessage\WebRoot\alterfail.jsp

     文件        895  2013-05-12 17:05  EmployeeMessage\WebRoot\altersuccess.jsp

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

评论

共有 条评论