资源简介

基于Eclipse的Java,J2E版本,英谷JavaWeb实践环节之网上书店管理系统,后台管理、图书管理、管理员、用户登录注册界面等,亲测可用,包含数据库的连接

资源截图

代码片段和文件信息

package shijian1;

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 ServletNumber extends HttpServlet {

       int number=0;
   
    public ServletNumber() {}
      protected void doGet(HttpServletRequest requestHttpServletResponse response)
       throws ServletExceptionIOException{
       doPost(requestresponse);
      }
      protected void doPost(HttpServletRequest request
       HttpServletResponse response)
       throws ServletExceptionIOException{
       response.setContentType(“text/html;charset=GBK“);
       PrintWriter out = response.getWriter();
       out.println(““);
       out.println(““);
       synchronized(this) {
       number++;
       out.println(“

您是第“+number+“个访问该网页的人

“);
       }
       out.println(““);
       out.println(““);
       }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-11-27 19:34  shijianhuanjie\
     文件        1154  2019-11-27 20:59  shijianhuanjie\.classpath
     文件         914  2019-11-27 19:34  shijianhuanjie\.project
     目录           0  2019-11-27 19:34  shijianhuanjie\.settings\
     文件         567  2019-11-27 19:34  shijianhuanjie\.settings\.jsdtscope
     文件         364  2019-11-27 19:34  shijianhuanjie\.settings\org.eclipse.jdt.core.prefs
     文件         494  2019-11-27 19:34  shijianhuanjie\.settings\org.eclipse.wst.common.component
     文件         345  2019-11-27 19:34  shijianhuanjie\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2019-11-27 19:34  shijianhuanjie\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2019-11-27 19:34  shijianhuanjie\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2019-11-27 19:34  shijianhuanjie\build\
     目录           0  2019-12-09 10:41  shijianhuanjie\build\classes\
     目录           0  2019-12-09 10:41  shijianhuanjie\build\classes\shijian1\
     文件        1638  2019-12-09 10:41  shijianhuanjie\build\classes\shijian1\ServletNumber.class
     目录           0  2019-12-09 10:41  shijianhuanjie\build\classes\shijian2\
     文件        4638  2019-12-09 10:41  shijianhuanjie\build\classes\shijian2\DBOper.class
     文件        4251  2019-12-09 10:41  shijianhuanjie\build\classes\shijian2\LoginServlet.class
     文件        1794  2019-12-09 10:41  shijianhuanjie\build\classes\shijian2\MainServlet.class
     文件        3055  2019-12-09 10:41  shijianhuanjie\build\classes\shijian2\RegistServlet.class
     目录           0  2019-12-09 10:41  shijianhuanjie\build\classes\shijian3\
     目录           0  2019-12-09 10:41  shijianhuanjie\build\classes\shijian3\admin\
     文件        3156  2019-12-09 10:41  shijianhuanjie\build\classes\shijian3\admin\AddUserServlet.class
     文件        3289  2019-12-09 10:41  shijianhuanjie\build\classes\shijian3\admin\AdminLoginServlet.class
     文件        1179  2019-12-09 10:41  shijianhuanjie\build\classes\shijian3\DestroyServlet.class
     目录           0  2019-12-09 10:41  shijianhuanjie\build\classes\shijian4\
     目录           0  2019-12-09 10:41  shijianhuanjie\build\classes\shijian4\admin\
     文件        3465  2019-12-09 10:41  shijianhuanjie\build\classes\shijian4\admin\AddBookServlet.class
     目录           0  2019-12-09 10:41  shijianhuanjie\build\classes\shijian4\db\
     文件        6171  2019-12-09 10:41  shijianhuanjie\build\classes\shijian4\db\BookDao.class
     文件        3709  2019-12-09 10:41  shijianhuanjie\build\classes\shijian4\db\UserDao.class
     目录           0  2019-12-09 10:41  shijianhuanjie\build\classes\shijian4\entity\
............此处省略91个文件信息

评论

共有 条评论