• 大小: 0.02M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-03-27
  • 语言: Java
  • 标签: java  

资源简介


这是一个利用Myeclipse软件和MYSQL数据库做的同学录,主要是查询、修改、和删除!!!希望能够对你有所帮助.

资源截图

代码片段和文件信息

package com.Tel_Book.control;

import java.io.IOException;
import java.util.List;

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

import org.hibernate.HibernateException;

import com.Tel_Book.dao.Tel_Book_Dao;
import com.Tel_Book.hibernate.HibernateUtil;
import com.Tel_Book.vo.Telephone;


public class TelServlet extends HttpServlet {

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

this.doPost(request response);
}

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

response.setContentType(“text/htmlcharset=gbk“);
response.setCharacterEncoding(“gbk“);
request.setCharacterEncoding(“gbk“);

String action=request.getParameter(“action“);

if(“add“.equals(action)){

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

     文件       1517  2011-09-15 19:04  Tel_Book\.classpath

     文件        480  2011-09-15 19:04  Tel_Book\.myhibernatedata

     文件        297  2011-09-15 19:04  Tel_Book\.mymetadata

     文件       1616  2011-09-15 19:04  Tel_Book\.project

     文件        406  2011-09-15 19:04  Tel_Book\.settings\.jsdtscope

     文件         49  2011-09-15 19:04  Tel_Book\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2011-09-15 19:04  Tel_Book\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       3745  2011-09-15 19:04  Tel_Book\src\com\Tel_Book\control\TelServlet.java

     文件       3410  2011-09-15 19:04  Tel_Book\src\com\Tel_Book\dao\Tel_Book_Dao.java

     文件        682  2011-09-15 19:04  Tel_Book\src\com\Tel_Book\dao\TestShow.java

     文件       1002  2011-09-15 19:04  Tel_Book\src\com\Tel_Book\hibernate\HibernateUtil.java

     文件       1321  2011-09-15 19:04  Tel_Book\src\com\Tel_Book\vo\Telephone.hbm.xml

     文件       1727  2011-09-15 19:04  Tel_Book\src\com\Tel_Book\vo\Telephone.java

     文件        933  2011-09-15 19:04  Tel_Book\src\hibernate.cfg.xml

     文件       6710  2011-09-15 19:04  Tel_Book\test.sql

     文件       2709  2011-09-15 19:04  Tel_Book\WebRoot\add.jsp

     文件       2488  2011-09-15 19:04  Tel_Book\WebRoot\detail.jsp

     文件       1177  2011-09-15 19:04  Tel_Book\WebRoot\index.jsp

     文件       2615  2011-09-15 19:04  Tel_Book\WebRoot\main.jsp

     文件         39  2011-09-15 19:04  Tel_Book\WebRoot\meta-INF\MANIFEST.MF

     文件       3893  2011-09-15 19:04  Tel_Book\WebRoot\modify.jsp

     文件        824  2011-09-15 19:04  Tel_Book\WebRoot\reply.jsp

     文件        125  2011-09-15 19:04  Tel_Book\WebRoot\style\style.css

     文件       3590  2011-09-15 19:04  Tel_Book\WebRoot\WEB-INF\classes\com\Tel_Book\control\TelServlet.class

     文件       4108  2011-09-15 19:04  Tel_Book\WebRoot\WEB-INF\classes\com\Tel_Book\dao\Tel_Book_Dao.class

     文件       1396  2011-09-15 19:04  Tel_Book\WebRoot\WEB-INF\classes\com\Tel_Book\dao\TestShow.class

     文件       1782  2011-09-15 19:04  Tel_Book\WebRoot\WEB-INF\classes\com\Tel_Book\hibernate\HibernateUtil.class

     文件       2186  2011-09-15 19:04  Tel_Book\WebRoot\WEB-INF\classes\com\Tel_Book\vo\Telephone.class

     文件       1321  2011-09-15 19:04  Tel_Book\WebRoot\WEB-INF\classes\com\Tel_Book\vo\Telephone.hbm.xml

     文件        933  2011-09-15 19:04  Tel_Book\WebRoot\WEB-INF\classes\hibernate.cfg.xml

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

评论

共有 条评论