• 大小: 30.24M
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-01-28
  • 语言: Java
  • 标签: tomcat  中文版  中文  

资源简介


代码片段和文件信息

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

public class ModernServlet extends HttpServlet {

    public void init(ServletConfig config) {
        System.out.println(“ModernServlet -- init“);
    }

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

        response.setContentType(“text/html“);
        PrintWriter out = response.getWriter();
        out.println(““);
        out.println(““);
        out.println(“tle>Modern Servlettle>“);
        out.println(““);
        out.println(““);

        out.println(“

Headers        Enumeration headers = request.getHeaderNames();
        while (headers.hasMor


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-09-28 12:57  HowTomcatWorks-maven\
     目录           0  2019-09-28 12:56  HowTomcatWorks-maven\webapps\
     文件         121  2019-09-28 12:56  HowTomcatWorks-maven\webapps\myadmin.xml
     文件         435  2019-09-28 12:56  HowTomcatWorks-maven\webapps\manager.xml
     目录           0  2019-09-28 12:56  HowTomcatWorks-maven\webapps\app1\
     目录           0  2019-09-28 12:56  HowTomcatWorks-maven\webapps\app1\WEB-INF\
     文件         704  2019-09-28 12:56  HowTomcatWorks-maven\webapps\app1\WEB-INF\web.xml
     目录           0  2019-09-28 12:57  HowTomcatWorks-maven\target\
     目录           0  2019-09-28 12:57  HowTomcatWorks-maven\target\test-classes\
     目录           0  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\
     目录           0  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex15\
     目录           0  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex15\pyrmont\
     目录           0  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex15\pyrmont\digestertest\
     文件        1269  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex15\pyrmont\digestertest\Address.class
     文件        1329  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex15\pyrmont\digestertest\Office.class
     文件        2866  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex15\pyrmont\digestertest\Test02.class
     文件        1733  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex15\pyrmont\digestertest\Employee.class
     文件        2620  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex15\pyrmont\digestertest\Test03.class
     文件        1879  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex15\pyrmont\digestertest\Test01.class
     文件        1025  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex15\pyrmont\digestertest\EmployeeRuleSet.class
     目录           0  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex15\pyrmont\startup\
     文件        2757  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex15\pyrmont\startup\Bootstrap.class
     目录           0  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex14\
     目录           0  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex14\pyrmont\
     目录           0  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex14\pyrmont\core\
     文件         938  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex14\pyrmont\core\SimpleContextConfig.class
     目录           0  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex14\pyrmont\startup\
     文件        1364  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex14\pyrmont\startup\Stopper.class
     文件        3574  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex14\pyrmont\startup\Bootstrap.class
     目录           0  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex13\
     目录           0  2019-09-28 12:57  HowTomcatWorks-maven\target\classes\ex13\pyrmont\
............此处省略1377个文件信息

评论

共有 条评论