• 大小: 1.56M
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2020-12-22
  • 语言: Java
  • 标签:

资源简介


本人是新手,也刚开始java web的学习,就在网上找了个例子练手,是一个简单的jsp+servler的学生管理系统。网址:http://www.javazhijia.com/ym/web/193.html导入到eclipse有点报错,我自己做了一点修改,将oracle数据库换成了数据库连接池连接mysql数据库,可直接运行,希望对大家能有所帮助!

资源截图

代码片段和文件信息

package com.dw.controll;

import java.io.IOException;

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

import com.dw.dao.StudentDao;
import com.dw.dao.impl.StudentDaoImpl;
import com.dw.model.Student;

/**
 * 控制层 -添加 逻辑处理
  @author DY1101shaoyuxian
 * 
 */
public class AddServlet extends HttpServlet {


private static final long serialVersionUID = 1L;

public void doGet(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
this.doPost(request response);
}

public void doPost(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
// Student(

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-07-30 09:42  studentManager\
     文件         189  2015-07-30 09:33  studentManager\student2.sql
     目录           0  2015-07-30 09:42  studentManager\StudentManager\
     文件        1045  2015-07-30 09:15  studentManager\StudentManager\.classpath
     文件        1047  2015-07-28 13:26  studentManager\StudentManager\.project
     目录           0  2015-07-30 09:42  studentManager\StudentManager\.settings\
     文件         517  2015-07-28 13:38  studentManager\StudentManager\.settings\.jsdtscope
     文件         364  2015-07-28 13:26  studentManager\StudentManager\.settings\org.eclipse.jdt.core.prefs
     文件         474  2015-07-28 13:38  studentManager\StudentManager\.settings\org.eclipse.wst.common.component
     文件         305  2015-07-28 14:10  studentManager\StudentManager\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2015-07-28 13:26  studentManager\StudentManager\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2015-07-28 13:26  studentManager\StudentManager\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2015-07-30 09:42  studentManager\StudentManager\build\
     目录           0  2015-07-30 09:42  studentManager\StudentManager\build\classes\
     目录           0  2015-07-30 09:42  studentManager\StudentManager\build\classes\com\
     目录           0  2015-07-30 09:42  studentManager\StudentManager\build\classes\com\dw\
     目录           0  2015-07-30 09:42  studentManager\StudentManager\build\classes\com\dw\controll\
     文件        2545  2015-07-30 09:15  studentManager\StudentManager\build\classes\com\dw\controll\AddServlet.class
     文件        1919  2015-07-30 09:15  studentManager\StudentManager\build\classes\com\dw\controll\DeleteServlet.class
     文件        4140  2015-07-30 09:15  studentManager\StudentManager\build\classes\com\dw\controll\LoginServlet.class
     文件        3552  2015-07-30 09:15  studentManager\StudentManager\build\classes\com\dw\controll\PreServlet.class
     文件        1741  2015-07-30 09:15  studentManager\StudentManager\build\classes\com\dw\controll\SearchByIdServlet.class
     文件        1583  2015-07-30 09:15  studentManager\StudentManager\build\classes\com\dw\controll\ShowAllServlet.class
     文件        2348  2015-07-30 09:15  studentManager\StudentManager\build\classes\com\dw\controll\UpdateServlet.class
     目录           0  2015-07-30 09:42  studentManager\StudentManager\build\classes\com\dw\dao\
     目录           0  2015-07-30 09:42  studentManager\StudentManager\build\classes\com\dw\dao\impl\
     文件        5130  2015-07-30 09:15  studentManager\StudentManager\build\classes\com\dw\dao\impl\StudentDaoImpl.class
     文件        1929  2015-07-30 09:15  studentManager\StudentManager\build\classes\com\dw\dao\impl\UserDaoImpl.class
     文件         378  2015-07-30 09:15  studentManager\StudentManager\build\classes\com\dw\dao\StudentDao.class
     文件         203  2015-07-30 09:15  studentManager\StudentManager\build\classes\com\dw\dao\UserDao.class
     目录           0  2015-07-30 09:42  studentManager\StudentManager\build\classes\com\dw\filter\
............此处省略94个文件信息

评论

共有 条评论