From 71ba0333ccf113a5cc2f482ae1398805fcdce67d Mon Sep 17 00:00:00 2001 From: walkbyfaith Date: Mon, 19 Sep 2022 02:26:33 +0000 Subject: [PATCH 001/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E7=AB=A0=E8=B5=B0=E4=B9=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\350\265\260\344\271\237/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\350\265\260\344\271\237/.keep" "b/\347\254\254\344\270\200\347\253\240\350\265\260\344\271\237/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 54671d45e106858d627c159010180b28e0c4d6e0 Mon Sep 17 00:00:00 2001 From: walkbyfaith Date: Mon, 19 Sep 2022 02:26:45 +0000 Subject: [PATCH 002/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E7=AB=A0=E8=B5=B0=E4=B9=9F=20=E4=B8=BA=20=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\270\200\347\253\240\350\265\260\344\271\237/.keep" => "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/.keep" (100%) diff --git "a/\347\254\254\344\270\200\347\253\240\350\265\260\344\271\237/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/.keep" similarity index 100% rename from "\347\254\254\344\270\200\347\253\240\350\265\260\344\271\237/.keep" rename to "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/.keep" -- Gitee From 6c5e7fd4efd030472ca1a81d09a39ed7fcdc82ac Mon Sep 17 00:00:00 2001 From: walkbyfaith Date: Mon, 19 Sep 2022 02:26:55 +0000 Subject: [PATCH 003/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 1817e5b31976d6cb11fdc5eac9f9e3919ab3a983 Mon Sep 17 00:00:00 2001 From: walkbyfaith Date: Mon, 19 Sep 2022 02:27:06 +0000 Subject: [PATCH 004/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From d128c0d04be3e64dbdeb5d118d23bcf26358c569 Mon Sep 17 00:00:00 2001 From: walkbyfaith Date: Mon, 19 Sep 2022 02:27:17 +0000 Subject: [PATCH 005/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=BB=8E=E5=8C=85?= =?UTF-8?q?=E8=8D=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\273\216\345\214\205\350\215\243/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 97849c96deeb7b40196f390566b7cf822e478501 Mon Sep 17 00:00:00 2001 From: walkbyfaith Date: Mon, 19 Sep 2022 02:27:35 +0000 Subject: [PATCH 006/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From a47b239e5219ee9d6b52a38c84f64bcaceeb4256 Mon Sep 17 00:00:00 2001 From: walkbyfaith Date: Mon, 19 Sep 2022 02:27:42 +0000 Subject: [PATCH 007/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From fc1eda2be37d0e0059af4dcf41bc72f180d6d239 Mon Sep 17 00:00:00 2001 From: walkbyfaith Date: Mon, 19 Sep 2022 02:27:49 +0000 Subject: [PATCH 008/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=BB=8E=E5=8C=85?= =?UTF-8?q?=E8=8D=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\273\216\345\214\205\350\215\243/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 1289fe51d24551df0f79bda4a43a5408c2dae4ab Mon Sep 17 00:00:00 2001 From: walkbyfaith Date: Mon, 19 Sep 2022 02:27:57 +0000 Subject: [PATCH 009/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 250de4658fd527e3c4781756301ab89606f7a843 Mon Sep 17 00:00:00 2001 From: walkbyfaith Date: Mon, 19 Sep 2022 02:28:03 +0000 Subject: [PATCH 010/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=BB=8E=E5=8C=85?= =?UTF-8?q?=E8=8D=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\273\216\345\214\205\350\215\243/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From b1135ae3817b25db79a428a4ab1fe43cc23f3ec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Mon, 19 Sep 2022 02:28:04 +0000 Subject: [PATCH 011/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=99=88=E6=96=AF?= =?UTF-8?q?=E9=9B=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\231\210\346\226\257\351\233\205/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From cc91fac10b5b13937480180566cafd5eca522180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Mon, 19 Sep 2022 02:33:21 +0000 Subject: [PATCH 012/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=82=93=E7=BE=8E?= =?UTF-8?q?=E8=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\202\223\347\276\216\350\220\215/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From afd22e6617109b9a00a096454f08246b376ee7d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Mon, 19 Sep 2022 02:43:15 +0000 Subject: [PATCH 013/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=A5=B6=E5=87=A4?= =?UTF-8?q?=E5=A9=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\245\266\345\207\244\345\251\267/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 599433f903afb5492f6b07e452297e9037b587ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Mon, 19 Sep 2022 02:43:22 +0000 Subject: [PATCH 014/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=82=93=E7=BE=8E?= =?UTF-8?q?=E8=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\202\223\347\276\216\350\220\215/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 78f0d69c3c195d7caa007300b17860c89f7f7829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Mon, 19 Sep 2022 02:44:00 +0000 Subject: [PATCH 015/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=A5=B6=E5=87=A4?= =?UTF-8?q?=E5=A9=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\245\266\345\207\244\345\251\267/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From fa511ff0f904961477c84dcf0d2834125d5d255d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Mon, 19 Sep 2022 02:44:21 +0000 Subject: [PATCH 016/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=A5=B6=E5=87=A4?= =?UTF-8?q?=E5=A9=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\245\266\345\207\244\345\251\267/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 3553c05bfde7d830fff16006f0225030994e9e47 Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Mon, 19 Sep 2022 19:40:12 +0800 Subject: [PATCH 017/688] commit --- README.en.md | 36 -------- README.md | 32 ------- .../.keep" | 0 .../.keep" | 0 .../FailServlet.java" | 21 +++++ .../LoginServlet.java" | 40 +++++++++ .../Register.java" | 87 +++++++++++++++++++ .../SuccessServlet.java" | 21 +++++ .../loginservlet.html" | 14 +++ .../register.html" | 17 ++++ .../.keep" | 0 .../Login.java" | 51 +++++++++++ .../login.html" | 14 +++ 13 files changed, 265 insertions(+), 68 deletions(-) delete mode 100644 README.en.md delete mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/.keep" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/.keep" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Register.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/loginservlet.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/register.html" delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/.keep" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/login.html" diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 860ff47..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# JavaWeb作业 - -#### Description -JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业 - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md index f4e37fa..c8448bf 100644 --- a/README.md +++ b/README.md @@ -3,35 +3,3 @@ #### 介绍 JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业 -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/.keep" deleted file mode 100644 index e69de29..0000000 diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/.keep" deleted file mode 100644 index e69de29..0000000 diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/FailServlet.java" new file mode 100644 index 0000000..1e87ff4 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/FailServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/LoginServlet.java" new file mode 100644 index 0000000..35c80b7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/LoginServlet.java" @@ -0,0 +1,40 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Register.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Register.java" new file mode 100644 index 0000000..ba8252a --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/SuccessServlet.java" new file mode 100644 index 0000000..b8b1643 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/SuccessServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/loginservlet.html" new file mode 100644 index 0000000..7fea11a --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/register.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/register.html" new file mode 100644 index 0000000..fe98fff --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/.keep" deleted file mode 100644 index e69de29..0000000 diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Login.java" new file mode 100644 index 0000000..544a941 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/login.html" new file mode 100644 index 0000000..c33646a --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/login.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file -- Gitee From 69d6bcebe6b3fb94e3e1d277fcb477a5840dbdd4 Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Mon, 19 Sep 2022 19:56:57 +0800 Subject: [PATCH 018/688] commit --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c8448bf..4bb3536 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # JavaWeb作业 -#### 介绍 -JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业 + + +[第一章:JavaWeb开发入门](https://www.aliyundrive.com/s/gkZ8R4NNsKp) +[第二章:Servlet入门](https://www.aliyundrive.com/s/YFFBL4omDkF) +[第三章:Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) \ No newline at end of file -- Gitee From b09b35cba9eccd7a40aa17658ccb7e99311739d4 Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Mon, 19 Sep 2022 19:57:43 +0800 Subject: [PATCH 019/688] commit --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4bb3536..d4796e6 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,6 @@ -[第一章:JavaWeb开发入门](https://www.aliyundrive.com/s/gkZ8R4NNsKp) -[第二章:Servlet入门](https://www.aliyundrive.com/s/YFFBL4omDkF) -[第三章:Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) \ No newline at end of file +#### [第一章:JavaWeb开发入门](https://www.aliyundrive.com/s/gkZ8R4NNsKp) +#### [第二章:Servlet入门](https://www.aliyundrive.com/s/YFFBL4omDkF) +#### [第三章:Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) \ No newline at end of file -- Gitee From b70be4745d0055cbc0d46861a9acb6ba798e1d3a Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Mon, 19 Sep 2022 20:20:33 +0800 Subject: [PATCH 020/688] commit --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d4796e6..3ef7e9b 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,5 @@ #### [第一章:JavaWeb开发入门](https://www.aliyundrive.com/s/gkZ8R4NNsKp) #### [第二章:Servlet入门](https://www.aliyundrive.com/s/YFFBL4omDkF) -#### [第三章:Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) \ No newline at end of file +#### [第三章:Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) +- 注:密码找管理员获取 \ No newline at end of file -- Gitee From 05c607396647669a50948b99c47cd28537eb4fa6 Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Mon, 19 Sep 2022 21:49:45 +0800 Subject: [PATCH 021/688] commit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3ef7e9b..13a2c90 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,4 @@ #### [第一章:JavaWeb开发入门](https://www.aliyundrive.com/s/gkZ8R4NNsKp) #### [第二章:Servlet入门](https://www.aliyundrive.com/s/YFFBL4omDkF) #### [第三章:Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) -- 注:密码找管理员获取 \ No newline at end of file +- 注:密码请联系管理员获取 \ No newline at end of file -- Gitee From 652f81170c841cdf10bf3f46cc880b43e7e56ca1 Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Mon, 19 Sep 2022 21:56:41 +0800 Subject: [PATCH 022/688] commit --- .../FailServlet.java" | 21 ----- .../LoginServlet.java" | 40 --------- .../Register.java" | 87 ------------------- .../SuccessServlet.java" | 21 ----- .../loginservlet.html" | 14 --- .../register.html" | 17 ---- .../Login.java" | 51 ----------- .../login.html" | 14 --- 8 files changed, 265 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/FailServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/LoginServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Register.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/SuccessServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/loginservlet.html" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/register.html" delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Login.java" delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/login.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/FailServlet.java" deleted file mode 100644 index 1e87ff4..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/FailServlet.java" +++ /dev/null @@ -1,21 +0,0 @@ -package com.example.homework; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/FailServlet") -public class FailServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.getWriter().write("登录失败,用户名或密码错误!"); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/LoginServlet.java" deleted file mode 100644 index 35c80b7..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/LoginServlet.java" +++ /dev/null @@ -1,40 +0,0 @@ -package com.example.homework; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; - -@WebServlet("/loginservlet") -public class LoginServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.setCharacterEncoding("utf-8"); - BufferedReader reader = req.getReader(); - String line; - while ((line = reader.readLine()) != null) { - System.out.println(line); - String[] paramsArr = line.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - - if ("admin".equals(username) && "admin".equals(password)) { - System.out.println("登录成功!"); - req.getRequestDispatcher("/SuccessServlet").forward(req,resp); - } else { - System.out.println("登录失败!"); - req.getRequestDispatcher("/FailServlet").forward(req,resp); - } - } - } - - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Register.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Register.java" deleted file mode 100644 index ba8252a..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Register.java" +++ /dev/null @@ -1,87 +0,0 @@ -package com.example.homework; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; -import java.util.Arrays; -import java.util.Enumeration; -import java.util.Map; -import java.util.Set; - -@WebServlet("/register") -public class Register extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - System.out.println("get-----------------------"); - String paramsStr = req.getQueryString(); -// System.out.println(paramsStr); - String[] paramsArr = paramsStr.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - String gender = paramsArr[2].split("=")[1]; - String hobby = paramsArr[3].split("=")[1]; - - System.out.println("用户名" + username); - System.out.println("密码" + password); - System.out.println("性别" + gender); - System.out.println("爱好" + hobby); - - -// for (int i = 0; i < paramsStr.length() ; i++){ -// System.out.println(paramsArr[i]); -// String[] paramArr = paramsArr[i].split("="); -// for (int j = 0; j < paramArr.length; j++) { -// System.out.println(paramArr[j]); -// } -// } - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.setCharacterEncoding("utf-8"); - System.out.println("post--------------"); - /*BufferedReader reader = req.getReader(); - String line; - while ((line = reader.readLine()) != null) { - System.out.println(line); - String[] paramsArr = line.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - String gender = paramsArr[2].split("=")[1]; - String hobby = paramsArr[3].split("=")[1]; - - System.out.println("用户名" + username); - System.out.println("密码" + password); - System.out.println("性别" + gender); - System.out.println("爱好" + hobby); - }*/ - -// String username = req.getParameter("username"); -// String password = req.getParameter("password"); -// String gender = req.getParameter("gender"); -// String hobby = req.getParameter("hobby"); -// -// System.out.println(username); -// System.out.println(password); -// System.out.println(gender); -// System.out.println(hobby); - -// Enumeration paramNames = req.getParameterNames(); -// while (paramNames.hasMoreElements()){ -// String name = paramNames.nextElement(); -// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); -// } - - Map paramMap = req.getParameterMap(); - Set keySet = paramMap.keySet(); - for (String key : keySet) { - System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); - } - } -} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/SuccessServlet.java" deleted file mode 100644 index b8b1643..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/SuccessServlet.java" +++ /dev/null @@ -1,21 +0,0 @@ -package com.example.homework; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/SuccessServlet") -public class SuccessServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.getWriter().write("登录成功! admin欢迎您!"); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/loginservlet.html" deleted file mode 100644 index 7fea11a..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/loginservlet.html" +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Title - - -
-
-
- -
- - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/register.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/register.html" deleted file mode 100644 index fe98fff..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/register.html" +++ /dev/null @@ -1,17 +0,0 @@ - - - - - 注册 - - -

注册界面

-
- 用户名:
- 密码:   
- 性别:   
- 爱好:   
- -
- - \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Login.java" deleted file mode 100644 index 544a941..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Login.java" +++ /dev/null @@ -1,51 +0,0 @@ -package com.example.homework; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; -import java.util.Arrays; -import java.util.Map; -import java.util.Set; - -@WebServlet("/login") -public class Login extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - System.out.println("get >>>"); - String paramsStr = req.getQueryString(); - String[] paramsArr = paramsStr.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - - if ("admin".equals(username) && "admin".equals(password)) { - System.out.println("登录成功!"); - } else { - System.out.println("登录失败!"); - } - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - System.out.println("post >>>"); - BufferedReader reader = req.getReader(); - String line; - while ((line = reader.readLine()) != null) { - System.out.println(line); - String[] paramsArr = line.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - - if ("admin".equals(username) && "admin".equals(password)) { - System.out.println("登录成功!"); - } else { - System.out.println("登录失败!"); - } - } - } -} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/login.html" deleted file mode 100644 index c33646a..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/login.html" +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Title - - -
-
-
- -
- - \ No newline at end of file -- Gitee From 8bec2e9c5f72980e3e17b3c96cf98f2c07884224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 20 Sep 2022 11:59:56 +0000 Subject: [PATCH 023/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=8D=B1=E5=AA=9B?= =?UTF-8?q?=E8=8A=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 431c2cd4159e2a8736cc82e092412fec2dc2c50b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86?= <10602851+lin-rongbao@user.noreply.gitee.com> Date: Thu, 22 Sep 2022 13:16:46 +0000 Subject: [PATCH 024/688] =?UTF-8?q?add=20=E7=AC=AC=E4=B8=80=E7=AB=A0?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A/=E6=9E=97=E8=8D=A3=E8=91=86.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林荣葆 <10602851+lin-rongbao@user.noreply.gitee.com> --- .../\346\236\227\350\215\243\350\221\206" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206" new file mode 100644 index 0000000..e69de29 -- Gitee From 48e2b5d7107f80c24786c198e8b055a12d50b829 Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Sun, 25 Sep 2022 05:30:13 +0000 Subject: [PATCH 025/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E6=B5=B7?= =?UTF-8?q?=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\346\265\267\346\235\203/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From b4cf9e2559c4b23bced65a548584d901c8174ee9 Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Sun, 25 Sep 2022 05:33:53 +0000 Subject: [PATCH 026/688] 0925 Signed-off-by: Aimony <2249398422@qq.com> --- .../Login.java" | 51 +++++++++++ .../Register.java" | 87 +++++++++++++++++++ .../login.html" | 14 +++ .../register.html" | 17 ++++ 4 files changed, 169 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Register.java" new file mode 100644 index 0000000..8b8b781 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/login.html" new file mode 100644 index 0000000..afd4139 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/login.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/register.html" new file mode 100644 index 0000000..f5eeff4 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file -- Gitee From 6cc838f3c969b2a0db8a0c0f133fa631fd05e17d Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Sun, 25 Sep 2022 05:33:59 +0000 Subject: [PATCH 027/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9E=97?= =?UTF-8?q?=E6=B5=B7=E6=9D=83/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\346\265\267\346\235\203/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From fa49fb3c65f552366c1168660d6acfc3bd56de35 Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Sun, 25 Sep 2022 05:34:17 +0000 Subject: [PATCH 028/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E6=B5=B7?= =?UTF-8?q?=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\346\265\267\346\235\203/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 5bf8badc55a93da723b0e3eee917287e66f0c3ff Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Sun, 25 Sep 2022 05:34:50 +0000 Subject: [PATCH 029/688] 0925 Signed-off-by: Aimony <2249398422@qq.com> --- .../FailServlet.java" | 21 ++++++++++ .../LoginServlet.java" | 40 +++++++++++++++++++ .../SuccessServlet.java" | 21 ++++++++++ .../loginservlet.html" | 14 +++++++ 4 files changed, 96 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/loginservlet.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/FailServlet.java" new file mode 100644 index 0000000..4b76b8e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/FailServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/LoginServlet.java" new file mode 100644 index 0000000..74f00ac --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/LoginServlet.java" @@ -0,0 +1,40 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/SuccessServlet.java" new file mode 100644 index 0000000..cfaf017 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/SuccessServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/loginservlet.html" new file mode 100644 index 0000000..d4da7fc --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file -- Gitee From 5fb7098fa6c0528ad814996c0364d3bb9dd07ae5 Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Sun, 25 Sep 2022 05:34:59 +0000 Subject: [PATCH 030/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9E=97?= =?UTF-8?q?=E6=B5=B7=E6=9D=83/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\346\265\267\346\235\203/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 686662610b246bf6f32fe3e947fa632dd3951da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Sun, 25 Sep 2022 15:35:26 +0000 Subject: [PATCH 031/688] =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴诗洁 <2716787815@qq.com> --- .../FailServlet.java" | 19 ++++++++++ .../LoginServlet.java" | 38 +++++++++++++++++++ .../SuccessServlet.java" | 19 ++++++++++ .../loginservlet/html.java" | 16 ++++++++ 4 files changed, 92 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/loginservlet/html.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" new file mode 100644 index 0000000..5a1ea49 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" @@ -0,0 +1,19 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" new file mode 100644 index 0000000..749a693 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" @@ -0,0 +1,38 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" new file mode 100644 index 0000000..59cc0f2 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" @@ -0,0 +1,19 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/loginservlet/html.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/loginservlet/html.java" new file mode 100644 index 0000000..76c84f3 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/loginservlet/html.java" @@ -0,0 +1,16 @@ +package loginservlet; + + + + + +Title + + +
+
+
+ +
+ + -- Gitee From f5f85eb5eb21ffd11d787087cf5352a75ad45174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Sun, 25 Sep 2022 15:50:08 +0000 Subject: [PATCH 032/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/loginservlet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../loginservlet/html.java" | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/loginservlet/html.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/loginservlet/html.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/loginservlet/html.java" deleted file mode 100644 index 76c84f3..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/loginservlet/html.java" +++ /dev/null @@ -1,16 +0,0 @@ -package loginservlet; - - - - - -Title - - -
-
-
- -
- - -- Gitee From c983601a90bd9d4932836c5d60f90091370a2d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Sun, 25 Sep 2022 15:50:14 +0000 Subject: [PATCH 033/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/FailServlet.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FailServlet.java" | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" deleted file mode 100644 index 5a1ea49..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" +++ /dev/null @@ -1,19 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/FailServlet") -public class FailServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.getWriter().write("登录失败,用户名或密码错误!"); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} -- Gitee From fe1a9016f10afcc571864313c3a89c0eca6a4c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Sun, 25 Sep 2022 15:50:21 +0000 Subject: [PATCH 034/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/LoginServlet.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LoginServlet.java" | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" deleted file mode 100644 index 749a693..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" +++ /dev/null @@ -1,38 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; - -@WebServlet("/loginservlet") -public class LoginServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.setCharacterEncoding("utf-8"); - BufferedReader reader = req.getReader(); - String line; - while ((line = reader.readLine()) != null) { - System.out.println(line); - String[] paramsArr = line.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - - if ("admin".equals(username) && "admin".equals(password)) { - System.out.println("登录成功!"); - req.getRequestDispatcher("/SuccessServlet").forward(req,resp); - } else { - System.out.println("登录失败!"); - req.getRequestDispatcher("/FailServlet").forward(req,resp); - } - } - } - - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} \ No newline at end of file -- Gitee From f5a94ac6712c3d44b09f2de121c61901b4950358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Sun, 25 Sep 2022 15:50:25 +0000 Subject: [PATCH 035/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/SuccessServlet.ja?= =?UTF-8?q?va?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SuccessServlet.java" | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" deleted file mode 100644 index 59cc0f2..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" +++ /dev/null @@ -1,19 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/SuccessServlet") -public class SuccessServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.getWriter().write("登录成功! admin欢迎您!"); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} \ No newline at end of file -- Gitee From 70cc9c5972a8943124f722c9aece57d38c354636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Sun, 25 Sep 2022 15:52:15 +0000 Subject: [PATCH 036/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=90=B4=E8=AF=97?= =?UTF-8?q?=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\220\264\350\257\227\346\264\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 4b5a20f40a416c9301078e947345c92ed0c0972f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Sun, 25 Sep 2022 15:56:34 +0000 Subject: [PATCH 037/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴诗洁 <2716787815@qq.com> --- .../FailServlet.java" | 19 ++++++++++ .../LoginServlet.java" | 38 +++++++++++++++++++ .../SuccessServlet.java" | 19 ++++++++++ .../loginservlet/html.java" | 16 ++++++++ 4 files changed, 92 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/loginservlet/html.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/FailServlet.java" new file mode 100644 index 0000000..5a1ea49 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/FailServlet.java" @@ -0,0 +1,19 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/LoginServlet.java" new file mode 100644 index 0000000..749a693 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/LoginServlet.java" @@ -0,0 +1,38 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/SuccessServlet.java" new file mode 100644 index 0000000..59cc0f2 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/SuccessServlet.java" @@ -0,0 +1,19 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/loginservlet/html.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/loginservlet/html.java" new file mode 100644 index 0000000..76c84f3 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/loginservlet/html.java" @@ -0,0 +1,16 @@ +package loginservlet; + + + + + +Title + + +
+
+
+ +
+ + -- Gitee From 44f6262459295c4d5f810a4090ee663151d9e969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Mon, 26 Sep 2022 02:10:23 +0000 Subject: [PATCH 038/688] =?UTF-8?q?add=20=E7=AC=AC=E4=BA=8C=E7=AB=A0?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李晓云 <2061522600@qq.com> --- .../\346\235\216\346\231\223\344\272\221" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221" new file mode 100644 index 0000000..e69de29 -- Gitee From 5106690aaa3b25553c6e6e7dd4fe6a66d5e20850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 26 Sep 2022 02:26:49 +0000 Subject: [PATCH 039/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=90=B4=E5=BB=BA?= =?UTF-8?q?=E9=94=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\220\264\345\273\272\351\224\213/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From c6cee9625d14abf02c3e808a130220dbfb69e0af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 26 Sep 2022 02:27:25 +0000 Subject: [PATCH 040/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=90=B4=E5=BB=BA?= =?UTF-8?q?=E9=94=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\220\264\345\273\272\351\224\213/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 0e788f8bc6867ac97c03eabf5ec7316addc765e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 26 Sep 2022 02:27:40 +0000 Subject: [PATCH 041/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=90=B4=E5=BB=BA?= =?UTF-8?q?=E9=94=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\220\264\345\273\272\351\224\213/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 76d6d6742d870940ca59a719a903e705ea6af82a Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Mon, 26 Sep 2022 02:30:34 +0000 Subject: [PATCH 042/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=8E=E7=A6=B9?= =?UTF-8?q?=E7=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\216\347\246\271\347\206\231/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 52856d13da4a9c5b12d66fa413004b083a916f55 Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Mon, 26 Sep 2022 02:31:33 +0000 Subject: [PATCH 043/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=8E=E7=A6=B9?= =?UTF-8?q?=E7=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\216\347\246\271\347\206\231/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 8c22139845ade7301957e3dddf350b2970119fac Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Mon, 26 Sep 2022 02:32:04 +0000 Subject: [PATCH 044/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=8E=E7=A6=B9?= =?UTF-8?q?=E7=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\216\347\246\271\347\206\231/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From dd3bd9b9c39e2dec3930bc2fccdfcae6ee223e76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Mon, 26 Sep 2022 03:32:47 +0000 Subject: [PATCH 045/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=8E=E6=99=93?= =?UTF-8?q?=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\216\346\231\223\344\272\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221" => "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" (100%) diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" similarity index 100% rename from "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221" rename to "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" -- Gitee From 7a6ea63d5eba0a90823f0915093f556535ddc67e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Mon, 26 Sep 2022 03:33:30 +0000 Subject: [PATCH 046/688] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李晓云 <2061522600@qq.com> --- .../2022.9.24/Login.java" | 51 +++++++++++ .../2022.9.24/Register.java" | 87 +++++++++++++++++++ .../2022.9.24/login.html" | 15 ++++ .../2022.9.24/register.html" | 17 ++++ 4 files changed, 170 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.24/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.24/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.24/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.24/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.24/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.24/Login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.24/Login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.24/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.24/Register.java" new file mode 100644 index 0000000..8b8b781 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.24/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.24/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.24/login.html" new file mode 100644 index 0000000..7993a7f --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.24/login.html" @@ -0,0 +1,15 @@ + + + + + 用户登入 + + + +
+
+
+ + + + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.24/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.24/register.html" new file mode 100644 index 0000000..f5eeff4 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.24/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+ + 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file -- Gitee From 10d7114775178d7ef2b31ac64187ae1d5220a7e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Mon, 26 Sep 2022 03:34:39 +0000 Subject: [PATCH 047/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=8E=E6=99=93?= =?UTF-8?q?=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\216\346\231\223\344\272\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From d70e282240467d4d344a35377d8749ace5047e46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Mon, 26 Sep 2022 03:35:04 +0000 Subject: [PATCH 048/688] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李晓云 <2061522600@qq.com> --- .../2022.9.25/FailServlet.java" | 21 ++++++++++ .../2022.9.25/LoginServlet.java" | 40 +++++++++++++++++++ .../2022.9.25/SuccessServlet.java" | 21 ++++++++++ .../2022.9.25/loginservlet.html" | 14 +++++++ 4 files changed, 96 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.25/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.25/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.25/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.25/loginservlet.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.25/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.25/FailServlet.java" new file mode 100644 index 0000000..4b76b8e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.25/FailServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.25/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.25/LoginServlet.java" new file mode 100644 index 0000000..74f00ac --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.25/LoginServlet.java" @@ -0,0 +1,40 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.25/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.25/SuccessServlet.java" new file mode 100644 index 0000000..cfaf017 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.25/SuccessServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.25/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.25/loginservlet.html" new file mode 100644 index 0000000..d4da7fc --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.25/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file -- Gitee From be1279d6b80430b4e88c04e243f7d64a8c8c09d7 Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Mon, 26 Sep 2022 03:50:44 +0000 Subject: [PATCH 049/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 13a2c90..0000000 --- a/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# JavaWeb作业 - - - - -#### [第一章:JavaWeb开发入门](https://www.aliyundrive.com/s/gkZ8R4NNsKp) -#### [第二章:Servlet入门](https://www.aliyundrive.com/s/YFFBL4omDkF) -#### [第三章:Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) -- 注:密码请联系管理员获取 \ No newline at end of file -- Gitee From 93a05c4983bcfad01a2d8850ae124c058712e1de Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Mon, 26 Sep 2022 03:51:06 +0000 Subject: [PATCH 050/688] commit Signed-off-by: Aimony <2249398422@qq.com> --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..8adcf81 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ + +# JavaWeb作业 + + + + +#### [第一章:JavaWeb开发入门](https://www.aliyundrive.com/s/gkZ8R4NNsKp) +#### [第二章:Servlet入门](https://www.aliyundrive.com/s/YFFBL4omDkF) +#### [第三章:Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) + +#### [Response](https://www.aliyundrive.com/s/b5sW2MCjDvw) + +- 注:密码请联系管理员获取 \ No newline at end of file -- Gitee From 342d099af6c49d6000a754407c28c658a487dd1b Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Mon, 26 Sep 2022 03:51:58 +0000 Subject: [PATCH 051/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 8adcf81..0000000 --- a/README.md +++ /dev/null @@ -1,13 +0,0 @@ - -# JavaWeb作业 - - - - -#### [第一章:JavaWeb开发入门](https://www.aliyundrive.com/s/gkZ8R4NNsKp) -#### [第二章:Servlet入门](https://www.aliyundrive.com/s/YFFBL4omDkF) -#### [第三章:Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) - -#### [Response](https://www.aliyundrive.com/s/b5sW2MCjDvw) - -- 注:密码请联系管理员获取 \ No newline at end of file -- Gitee From 64848c8ead1d80376bf3c9adf4c0efe6111a71f5 Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Mon, 26 Sep 2022 03:52:23 +0000 Subject: [PATCH 052/688] commit Signed-off-by: Aimony <2249398422@qq.com> --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..3c6b8bf --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ + +# JavaWeb作业 + + + + +#### [第一章:JavaWeb开发入门](https://www.aliyundrive.com/s/gkZ8R4NNsKp) +#### [第二章:Servlet入门](https://www.aliyundrive.com/s/YFFBL4omDkF) +#### [第三章:Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) + +#### [Response](https://www.aliyundrive.com/s/b5sW2MCjDvw) + +- 注:密码请联系管理员获取 \ No newline at end of file -- Gitee From 0ebe8295bdda28995cee45c9a2232c5f91d92342 Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Mon, 26 Sep 2022 04:00:06 +0000 Subject: [PATCH 053/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 3c6b8bf..0000000 --- a/README.md +++ /dev/null @@ -1,13 +0,0 @@ - -# JavaWeb作业 - - - - -#### [第一章:JavaWeb开发入门](https://www.aliyundrive.com/s/gkZ8R4NNsKp) -#### [第二章:Servlet入门](https://www.aliyundrive.com/s/YFFBL4omDkF) -#### [第三章:Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) - -#### [Response](https://www.aliyundrive.com/s/b5sW2MCjDvw) - -- 注:密码请联系管理员获取 \ No newline at end of file -- Gitee From 7f2d9d1438c8efd623f0265974a6071c6fd0efa3 Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Mon, 26 Sep 2022 04:00:22 +0000 Subject: [PATCH 054/688] commit Signed-off-by: Aimony <2249398422@qq.com> --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..704d1dd --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ + +# JavaWeb作业 + + + + +#### [第一章:JavaWeb开发入门](https://www.aliyundrive.com/s/gkZ8R4NNsKp) +#### [第二章:Servlet入门](https://www.aliyundrive.com/s/YFFBL4omDkF) +#### 第三章: +- ##### [Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) +- ##### [Response](https://www.aliyundrive.com/s/b5sW2MCjDvw) + + + + + + + + + + + + + + +> 注:密码请联系管理员获取 + -- Gitee From 381ae2ba11e7b509a9ffde9640b5c19070e22800 Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Mon, 26 Sep 2022 04:01:19 +0000 Subject: [PATCH 055/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 704d1dd..0000000 --- a/README.md +++ /dev/null @@ -1,27 +0,0 @@ - -# JavaWeb作业 - - - - -#### [第一章:JavaWeb开发入门](https://www.aliyundrive.com/s/gkZ8R4NNsKp) -#### [第二章:Servlet入门](https://www.aliyundrive.com/s/YFFBL4omDkF) -#### 第三章: -- ##### [Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) -- ##### [Response](https://www.aliyundrive.com/s/b5sW2MCjDvw) - - - - - - - - - - - - - - -> 注:密码请联系管理员获取 - -- Gitee From dfed273a62160fc2211ba1ac654e1935c4c361e2 Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Mon, 26 Sep 2022 04:01:30 +0000 Subject: [PATCH 056/688] commit Signed-off-by: Aimony <2249398422@qq.com> --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ef0e25a --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ + +# JavaWeb作业 + + + + +#### [第一章:JavaWeb开发入门](https://www.aliyundrive.com/s/gkZ8R4NNsKp) +#### [第二章:Servlet入门](https://www.aliyundrive.com/s/YFFBL4omDkF) +#### 第三章: +- ##### [Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) +- ##### [Response](https://www.aliyundrive.com/s/b5sW2MCjDvw) + + + + + + + + + + + + + + +> 注:提取码请联系管理员获取 + -- Gitee From 40e4b6e202f7039be65e8440ce7110975c55cd2a Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Mon, 26 Sep 2022 04:02:07 +0000 Subject: [PATCH 057/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index ef0e25a..0000000 --- a/README.md +++ /dev/null @@ -1,27 +0,0 @@ - -# JavaWeb作业 - - - - -#### [第一章:JavaWeb开发入门](https://www.aliyundrive.com/s/gkZ8R4NNsKp) -#### [第二章:Servlet入门](https://www.aliyundrive.com/s/YFFBL4omDkF) -#### 第三章: -- ##### [Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) -- ##### [Response](https://www.aliyundrive.com/s/b5sW2MCjDvw) - - - - - - - - - - - - - - -> 注:提取码请联系管理员获取 - -- Gitee From 09d3423259f358fbb7e8075db2abc3ad62dc056e Mon Sep 17 00:00:00 2001 From: Aimony <2249398422@qq.com> Date: Mon, 26 Sep 2022 04:02:17 +0000 Subject: [PATCH 058/688] commit Signed-off-by: Aimony <2249398422@qq.com> --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..4b86c19 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ + +# JavaWeb作业 + + + + +#### 第一章:[JavaWeb开发入门](https://www.aliyundrive.com/s/gkZ8R4NNsKp) +#### 第二章:[Servlet入门](https://www.aliyundrive.com/s/YFFBL4omDkF) +#### 第三章: +- ##### [Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) +- ##### [Response](https://www.aliyundrive.com/s/b5sW2MCjDvw) + + + + + + + + + + + + + + +> 注:提取码请联系管理员获取 + -- Gitee From 1e68deda219f308265abef487d7c060b8e146ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 26 Sep 2022 12:39:32 +0000 Subject: [PATCH 059/688] =?UTF-8?q?add=20=E7=AC=AC=E4=B8=80=E7=AB=A0?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A/=E7=8E=8B=E6=97=AD.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王旭 <10602891+wx1927910504@user.noreply.gitee.com> --- .../\347\216\213\346\227\255" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255" new file mode 100644 index 0000000..e69de29 -- Gitee From a96497dadbd4e953de961dd085f90e3880f33b0a Mon Sep 17 00:00:00 2001 From: zsy <1135989631@qq.com> Date: Mon, 26 Sep 2022 12:42:04 +0000 Subject: [PATCH 060/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9C=B1=E6=9D=89?= =?UTF-8?q?=E7=91=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\234\261\346\235\211\347\221\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 94d501af936fb9a91c875909b80e44a46c2ed148 Mon Sep 17 00:00:00 2001 From: zsy <1135989631@qq.com> Date: Mon, 26 Sep 2022 12:43:33 +0000 Subject: [PATCH 061/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zsy <1135989631@qq.com> --- .../2022.9.25/FailServlet.java" | 20 ++++++++++ .../2022.9.25/LoginServlet.java" | 39 +++++++++++++++++++ .../2022.9.25/SuccessServlet.java" | 20 ++++++++++ .../2022.9.25/register.html" | 23 +++++++++++ .../2022.9.25/request.html" | 24 ++++++++++++ 5 files changed, 126 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/register.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/request.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/FailServlet.java" new file mode 100644 index 0000000..b5c9f91 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/FailServlet.java" @@ -0,0 +1,20 @@ + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/LoginServlet.java" new file mode 100644 index 0000000..64f6438 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/LoginServlet.java" @@ -0,0 +1,39 @@ + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/SuccessServlet.java" new file mode 100644 index 0000000..17f4d8a --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/SuccessServlet.java" @@ -0,0 +1,20 @@ + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/register.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/register.html" new file mode 100644 index 0000000..8d6d07e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/register.html" @@ -0,0 +1,23 @@ + + + +  +  +register  + + + +
+Username:
+Password:
+Gender:男 +
+Hobby:画画 +唱歌 +跳舞 +写作 +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/request.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/request.html" new file mode 100644 index 0000000..1f08c8c --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.25/request.html" @@ -0,0 +1,24 @@ + + + +  +  +登陆界面 + + +
+Username:
+Password: +
+ + + + + \ No newline at end of file -- Gitee From 4d3f9f203115735155c5ba11bfd18d1777bc386f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 26 Sep 2022 12:48:05 +0000 Subject: [PATCH 062/688] =?UTF-8?q?=E7=8E=8B=E6=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王旭 <10602891+wx1927910504@user.noreply.gitee.com> --- .../\347\216\213\346\227\255/Servlet.java" | 60 ++++++++++++++++++ .../\347\216\213\346\227\255/Servlet02.java" | 61 +++++++++++++++++++ .../\347\216\213\346\227\255/login.html" | 26 ++++++++ .../\347\216\213\346\227\255/register.html" | 34 +++++++++++ 4 files changed, 181 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Servlet.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Servlet02.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Servlet.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Servlet.java" new file mode 100644 index 0000000..cdba57b --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Servlet.java" @@ -0,0 +1,60 @@ +package chapter03; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; + + +@WebServlet("/servlet") +public class Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("servlet.........get........."); + String parameterString = req.getQueryString(); + System.out.println(parameterString); + String[] parametersArr = parameterString.split("&"); + String username = parametersArr[0].split("=")[1]; + String password = parametersArr[1].split("=")[1]; + + System.out.println(username); + System.out.println(password); + + if ("admin".equals(username)&&"admin".equals(password)) { + System.out.println("登录成功!"); + }else{ + System.out.println("登录失败!"); + } + // for (int i = 0; i + + + + Title + + +

登录页面

+
+ + + + + + + + + + + + + +
用户名:
密码:
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/register.html" new file mode 100644 index 0000000..cfb3713 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/register.html" @@ -0,0 +1,34 @@ + + + + + Title + + +

注册页面

+
+ + + + + + + + + + + + + + + + + + + + + +
用户名:
密码:
性别:
爱好:打游戏读书运动
+
+ + \ No newline at end of file -- Gitee From 6efc7fa4cb4520d6fa74c81c980900909197a571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 26 Sep 2022 12:52:29 +0000 Subject: [PATCH 063/688] =?UTF-8?q?=E7=8E=8B=E6=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王旭 <10602891+wx1927910504@user.noreply.gitee.com> --- .../FailServlet.java" | 23 +++++++++++++++ .../LoginServlet.java" | 28 +++++++++++++++++++ .../SuccessServlet.java" | 23 +++++++++++++++ .../\347\216\213\346\227\255/login.html" | 26 +++++++++++++++++ 4 files changed, 100 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/login.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/FailServlet.java" new file mode 100644 index 0000000..3b025e0 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/FailServlet.java" @@ -0,0 +1,23 @@ +package chapter02; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/fail") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("fail...................."); + Object username = req.getAttribute("username"); + System.out.println("登录失败,"+username+"或密码错误!"); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/LoginServlet.java" new file mode 100644 index 0000000..f10bfb0 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/LoginServlet.java" @@ -0,0 +1,28 @@ +package chapter02; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/c2") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username = req.getParameter("username"); + String password = req.getParameter("password"); + req.setAttribute("username",username); + if("admin".equals(username)&&"admin".equals(password)){ + req.getRequestDispatcher("/c2/success").forward(req,resp); + }else { + req.getRequestDispatcher("/c2/fail").forward(req,resp); + } + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/SuccessServlet.java" new file mode 100644 index 0000000..b791eed --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/SuccessServlet.java" @@ -0,0 +1,23 @@ +package chapter02; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/success") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("success...................."); + Object username = req.getAttribute("username"); + System.out.println("登录成功,"+username+"欢迎您!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/login.html" new file mode 100644 index 0000000..b299069 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/login.html" @@ -0,0 +1,26 @@ + + + + + Title + + +

登录页面

+
+ + + + + + + + + + + + + +
用户名:
密码:
+
+ + \ No newline at end of file -- Gitee From b6b85d2ef49d47ae3a173614aa8675128da74a63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 26 Sep 2022 12:53:53 +0000 Subject: [PATCH 064/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=8E=8B=E6=97=AD=20?= =?UTF-8?q?=E4=B8=BA=20=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FailServlet.java" | 0 .../LoginServlet.java" | 0 .../SuccessServlet.java" | 0 .../login.html" | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/FailServlet.java" => "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" (100%) rename "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/LoginServlet.java" => "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" (100%) rename "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/SuccessServlet.java" => "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" (100%) rename "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/login.html" => "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/login.html" (100%) diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" similarity index 100% rename from "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/FailServlet.java" rename to "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" similarity index 100% rename from "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/LoginServlet.java" rename to "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" similarity index 100% rename from "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/SuccessServlet.java" rename to "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/login.html" similarity index 100% rename from "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/login.html" rename to "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/login.html" -- Gitee From 68662ef16480a76710406101252fb01bf09b2b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 26 Sep 2022 12:54:15 +0000 Subject: [PATCH 065/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=8E=8B=E6=97=AD=20?= =?UTF-8?q?=E4=B8=BA=20=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Servlet.java" | 0 .../Servlet02.java" | 0 .../login.html" | 0 .../register.html" | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Servlet.java" => "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/Servlet.java" (100%) rename "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Servlet02.java" => "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/Servlet02.java" (100%) rename "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/login.html" => "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/login.html" (100%) rename "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/register.html" => "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/register.html" (100%) diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Servlet.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/Servlet.java" similarity index 100% rename from "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Servlet.java" rename to "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/Servlet.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Servlet02.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/Servlet02.java" similarity index 100% rename from "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Servlet02.java" rename to "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/Servlet02.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/login.html" similarity index 100% rename from "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/login.html" rename to "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/login.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/register.html" similarity index 100% rename from "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/register.html" rename to "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/register.html" -- Gitee From 5ff70192303fff9808a9c79a278a4b84f55963ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 26 Sep 2022 12:56:18 +0000 Subject: [PATCH 066/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FailServlet.java" | 23 --------------- .../LoginServlet.java" | 28 ------------------- .../SuccessServlet.java" | 23 --------------- .../login.html" | 26 ----------------- 4 files changed, 100 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/login.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" deleted file mode 100644 index 3b025e0..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" +++ /dev/null @@ -1,23 +0,0 @@ -package chapter02; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/fail") -public class FailServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req, resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - System.out.println("fail...................."); - Object username = req.getAttribute("username"); - System.out.println("登录失败,"+username+"或密码错误!"); - } -} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" deleted file mode 100644 index f10bfb0..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" +++ /dev/null @@ -1,28 +0,0 @@ -package chapter02; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/c2") -public class LoginServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req, resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - String username = req.getParameter("username"); - String password = req.getParameter("password"); - req.setAttribute("username",username); - if("admin".equals(username)&&"admin".equals(password)){ - req.getRequestDispatcher("/c2/success").forward(req,resp); - }else { - req.getRequestDispatcher("/c2/fail").forward(req,resp); - } - } -} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" deleted file mode 100644 index b791eed..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" +++ /dev/null @@ -1,23 +0,0 @@ -package chapter02; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/success") -public class SuccessServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req, resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - System.out.println("success...................."); - Object username = req.getAttribute("username"); - System.out.println("登录成功,"+username+"欢迎您!"); - } -} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/login.html" deleted file mode 100644 index b299069..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/login.html" +++ /dev/null @@ -1,26 +0,0 @@ - - - - - Title - - -

登录页面

-
- - - - - - - - - - - - - -
用户名:
密码:
-
- - \ No newline at end of file -- Gitee From e81f8ffe5a34bf4e19d91042c1c113d748a6e43c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 26 Sep 2022 12:56:27 +0000 Subject: [PATCH 067/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Servlet.java" | 60 ------------------ .../Servlet02.java" | 61 ------------------- .../login.html" | 26 -------- .../register.html" | 34 ----------- 4 files changed, 181 deletions(-) delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/Servlet.java" delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/Servlet02.java" delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/login.html" delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/Servlet.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/Servlet.java" deleted file mode 100644 index cdba57b..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/Servlet.java" +++ /dev/null @@ -1,60 +0,0 @@ -package chapter03; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; -import java.util.Arrays; - - -@WebServlet("/servlet") -public class Servlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - System.out.println("servlet.........get........."); - String parameterString = req.getQueryString(); - System.out.println(parameterString); - String[] parametersArr = parameterString.split("&"); - String username = parametersArr[0].split("=")[1]; - String password = parametersArr[1].split("=")[1]; - - System.out.println(username); - System.out.println(password); - - if ("admin".equals(username)&&"admin".equals(password)) { - System.out.println("登录成功!"); - }else{ - System.out.println("登录失败!"); - } - // for (int i = 0; i - - - - Title - - -

登录页面

-
- - - - - - - - - - - - - -
用户名:
密码:
-
- - \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/register.html" deleted file mode 100644 index cfb3713..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/register.html" +++ /dev/null @@ -1,34 +0,0 @@ - - - - - Title - - -

注册页面

-
- - - - - - - - - - - - - - - - - - - - - -
用户名:
密码:
性别:
爱好:打游戏读书运动
-
- - \ No newline at end of file -- Gitee From 11ef750827cd0f612159317df49994301b5658d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 26 Sep 2022 12:56:58 +0000 Subject: [PATCH 068/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王旭 <10602891+wx1927910504@user.noreply.gitee.com> --- .../FailServlet.java" | 23 +++++++++++++++ .../LoginServlet.java" | 28 +++++++++++++++++++ .../SuccessServlet.java" | 23 +++++++++++++++ .../login.html" | 26 +++++++++++++++++ 4 files changed, 100 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/login.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" new file mode 100644 index 0000000..3b025e0 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" @@ -0,0 +1,23 @@ +package chapter02; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/fail") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("fail...................."); + Object username = req.getAttribute("username"); + System.out.println("登录失败,"+username+"或密码错误!"); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" new file mode 100644 index 0000000..f10bfb0 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" @@ -0,0 +1,28 @@ +package chapter02; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/c2") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username = req.getParameter("username"); + String password = req.getParameter("password"); + req.setAttribute("username",username); + if("admin".equals(username)&&"admin".equals(password)){ + req.getRequestDispatcher("/c2/success").forward(req,resp); + }else { + req.getRequestDispatcher("/c2/fail").forward(req,resp); + } + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" new file mode 100644 index 0000000..b791eed --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" @@ -0,0 +1,23 @@ +package chapter02; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/success") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("success...................."); + Object username = req.getAttribute("username"); + System.out.println("登录成功,"+username+"欢迎您!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/login.html" new file mode 100644 index 0000000..b299069 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/login.html" @@ -0,0 +1,26 @@ + + + + + Title + + +

登录页面

+
+ + + + + + + + + + + + + +
用户名:
密码:
+
+ + \ No newline at end of file -- Gitee From 875db39a8e2c66022d5b2589634c699c0bc608b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Tue, 27 Sep 2022 03:45:48 +0000 Subject: [PATCH 069/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=8E=8B=E6=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 7a1beccf084249c8bf8f597d78555fbc69631bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Tue, 27 Sep 2022 03:52:59 +0000 Subject: [PATCH 070/688] 0925 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王旭 <10602891+wx1927910504@user.noreply.gitee.com> --- .../\347\216\213\346\227\255/Servlet.java" | 60 ++++++++++++++++++ .../\347\216\213\346\227\255/Servlet02.java" | 61 +++++++++++++++++++ .../\347\216\213\346\227\255/login.html" | 26 ++++++++ .../\347\216\213\346\227\255/register.html" | 34 +++++++++++ 4 files changed, 181 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Servlet.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Servlet02.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Servlet.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Servlet.java" new file mode 100644 index 0000000..cdba57b --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Servlet.java" @@ -0,0 +1,60 @@ +package chapter03; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; + + +@WebServlet("/servlet") +public class Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("servlet.........get........."); + String parameterString = req.getQueryString(); + System.out.println(parameterString); + String[] parametersArr = parameterString.split("&"); + String username = parametersArr[0].split("=")[1]; + String password = parametersArr[1].split("=")[1]; + + System.out.println(username); + System.out.println(password); + + if ("admin".equals(username)&&"admin".equals(password)) { + System.out.println("登录成功!"); + }else{ + System.out.println("登录失败!"); + } + // for (int i = 0; i + + + + Title + + +

登录页面

+
+ + + + + + + + + + + + + +
用户名:
密码:
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/register.html" new file mode 100644 index 0000000..cfb3713 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/register.html" @@ -0,0 +1,34 @@ + + + + + Title + + +

注册页面

+
+ + + + + + + + + + + + + + + + + + + + + +
用户名:
密码:
性别:
爱好:打游戏读书运动
+
+ + \ No newline at end of file -- Gitee From 567939b5ddcbf0c6ea0e0c51ff5bbdea5c0c69e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Tue, 27 Sep 2022 03:53:21 +0000 Subject: [PATCH 071/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=8E=8B?= =?UTF-8?q?=E6=97=AD/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 19a2aac772658f831909b687de55bc2512cdf6fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Tue, 27 Sep 2022 04:03:00 +0000 Subject: [PATCH 072/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=8E=8B?= =?UTF-8?q?=E6=97=AD/=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FailServlet.java" | 23 --------------- .../LoginServlet.java" | 28 ------------------- .../SuccessServlet.java" | 23 --------------- .../login.html" | 26 ----------------- 4 files changed, 100 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/login.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" deleted file mode 100644 index 3b025e0..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" +++ /dev/null @@ -1,23 +0,0 @@ -package chapter02; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/fail") -public class FailServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req, resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - System.out.println("fail...................."); - Object username = req.getAttribute("username"); - System.out.println("登录失败,"+username+"或密码错误!"); - } -} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" deleted file mode 100644 index f10bfb0..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" +++ /dev/null @@ -1,28 +0,0 @@ -package chapter02; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/c2") -public class LoginServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req, resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - String username = req.getParameter("username"); - String password = req.getParameter("password"); - req.setAttribute("username",username); - if("admin".equals(username)&&"admin".equals(password)){ - req.getRequestDispatcher("/c2/success").forward(req,resp); - }else { - req.getRequestDispatcher("/c2/fail").forward(req,resp); - } - } -} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" deleted file mode 100644 index b791eed..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" +++ /dev/null @@ -1,23 +0,0 @@ -package chapter02; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/success") -public class SuccessServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req, resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - System.out.println("success...................."); - Object username = req.getAttribute("username"); - System.out.println("登录成功,"+username+"欢迎您!"); - } -} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/login.html" deleted file mode 100644 index b299069..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/login.html" +++ /dev/null @@ -1,26 +0,0 @@ - - - - - Title - - -

登录页面

-
- - - - - - - - - - - - - -
用户名:
密码:
-
- - \ No newline at end of file -- Gitee From 60e103834de667dc436b40fb5c22c312746bd6d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Tue, 27 Sep 2022 04:03:20 +0000 Subject: [PATCH 073/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=8E=8B=E6=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From ebbb212dd7545bcbd9a8078f271d271b34505d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Tue, 27 Sep 2022 04:04:36 +0000 Subject: [PATCH 074/688] 0925 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王旭 <10602891+wx1927910504@user.noreply.gitee.com> --- .../FailServlet.java" | 23 +++++++++++++++ .../LoginServlet.java" | 28 +++++++++++++++++++ .../SuccessServlet.java" | 23 +++++++++++++++ .../\347\216\213\346\227\255/login.html" | 26 +++++++++++++++++ 4 files changed, 100 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/login.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/FailServlet.java" new file mode 100644 index 0000000..3b025e0 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/FailServlet.java" @@ -0,0 +1,23 @@ +package chapter02; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/fail") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("fail...................."); + Object username = req.getAttribute("username"); + System.out.println("登录失败,"+username+"或密码错误!"); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/LoginServlet.java" new file mode 100644 index 0000000..f10bfb0 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/LoginServlet.java" @@ -0,0 +1,28 @@ +package chapter02; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/c2") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username = req.getParameter("username"); + String password = req.getParameter("password"); + req.setAttribute("username",username); + if("admin".equals(username)&&"admin".equals(password)){ + req.getRequestDispatcher("/c2/success").forward(req,resp); + }else { + req.getRequestDispatcher("/c2/fail").forward(req,resp); + } + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/SuccessServlet.java" new file mode 100644 index 0000000..b791eed --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/SuccessServlet.java" @@ -0,0 +1,23 @@ +package chapter02; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/success") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("success...................."); + Object username = req.getAttribute("username"); + System.out.println("登录成功,"+username+"欢迎您!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/login.html" new file mode 100644 index 0000000..b299069 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/login.html" @@ -0,0 +1,26 @@ + + + + + Title + + +

登录页面

+
+ + + + + + + + + + + + + +
用户名:
密码:
+
+ + \ No newline at end of file -- Gitee From e802023350a4558c365753181b89e439295c5f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Tue, 27 Sep 2022 04:04:43 +0000 Subject: [PATCH 075/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=8E=8B?= =?UTF-8?q?=E6=97=AD/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From e350c066c617619d1052cb35353ab2878d795fa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Tue, 27 Sep 2022 04:15:55 +0000 Subject: [PATCH 076/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=8E=8B=E6=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255" => "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" (100%) diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" similarity index 100% rename from "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255" rename to "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" -- Gitee From ee727e5c3f3eacce4b62f8cd2760c2c4faae41e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Fri, 30 Sep 2022 02:16:14 +0000 Subject: [PATCH 077/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=82=93=E7=BE=8E?= =?UTF-8?q?=E8=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\202\223\347\276\216\350\220\215/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 285771e51da7fda8034af9ea34a6e6e2c813c8f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Fri, 30 Sep 2022 02:17:57 +0000 Subject: [PATCH 078/688] =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邓美萍 <479405703@qq.com> --- .../Servlet/Servlet1.java" | 40 +++++++++++++++++++ .../Servlet/Servlet2.java" | 32 +++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\351\202\223\347\276\216\350\220\215/Servlet/Servlet1.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\351\202\223\347\276\216\350\220\215/Servlet/Servlet2.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\351\202\223\347\276\216\350\220\215/Servlet/Servlet1.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\351\202\223\347\276\216\350\220\215/Servlet/Servlet1.java" new file mode 100644 index 0000000..17d5f67 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\351\202\223\347\276\216\350\220\215/Servlet/Servlet1.java" @@ -0,0 +1,40 @@ +package javaweb.Servlet; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +@WebServlet("/s0") +public class Servlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username=req.getParameter("username"); + String password=req.getParameter("password"); + System.out.println(req.getQueryString()); + if ("admin".equals(username)&&"admin".equals(password)) { + System.out.println("登陆成功!"); + }else { + System.out.println("登陆失败"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + BufferedReader reader=req.getReader(); + String line; + while ((line=reader.readLine())!=null){ + String[] parametersArr=line.split("&"); + String username=parametersArr[0].split("=")[1]; + String password=parametersArr[1].split("=")[1]; + System.out.println(line); + if ("admin".equals(username)&&"admin".equals(password)) { + System.out.println("登陆成功!"); + }else { + System.out.println("登陆失败"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\351\202\223\347\276\216\350\220\215/Servlet/Servlet2.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\351\202\223\347\276\216\350\220\215/Servlet/Servlet2.java" new file mode 100644 index 0000000..8045d30 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\351\202\223\347\276\216\350\220\215/Servlet/Servlet2.java" @@ -0,0 +1,32 @@ +package javaweb.Servlet; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/s1") +public class Servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("UTF-8"); + + System.out.println("do....................post"); + String username=req.getParameter("username"); + String password=req.getParameter("password"); + String hobby=req.getParameter("hobby"); + String gender=req.getParameter("gender"); + + System.out.println("账号:"+username); + System.out.println("密码:"+password); + System.out.println("性别:"+gender); + System.out.println("爱好:"+hobby); + } +} -- Gitee From ee596c45c71cd7a93769c0910042b320044c9a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Fri, 30 Sep 2022 02:23:10 +0000 Subject: [PATCH 079/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邓美萍 <479405703@qq.com> --- .../tiaozhuan/FailServlet.java" | 22 +++++++++++ .../tiaozhuan/Servlet3.java" | 37 +++++++++++++++++++ .../tiaozhuan/SuccessServlet.java" | 22 +++++++++++ 3 files changed, 81 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/tiaozhuan/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/tiaozhuan/Servlet3.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/tiaozhuan/SuccessServlet.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/tiaozhuan/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/tiaozhuan/FailServlet.java" new file mode 100644 index 0000000..4046385 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/tiaozhuan/FailServlet.java" @@ -0,0 +1,22 @@ +package tiaozhuan; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/fail3") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("登陆失败!!!!!!!!!!!!!!!!!!!!!!!!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/tiaozhuan/Servlet3.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/tiaozhuan/Servlet3.java" new file mode 100644 index 0000000..57f8553 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/tiaozhuan/Servlet3.java" @@ -0,0 +1,37 @@ +package tiaozhuan; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +@WebServlet("/s3") +public class Servlet3 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + BufferedReader reader=req.getReader(); + String line; + while ((line=reader.readLine())!=null){ + String []arr=line.split("&"); + String username=arr[0].split("=")[1]; + String password=arr[1].split("=")[1]; + if ("admin".equals(username)&&"admin".equals(password)) { + req.getRequestDispatcher("/success3").forward(req,resp); + System.out.println(line); + } + else { + req.getRequestDispatcher("/fail3").forward(req,resp); + } + + } + + + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/tiaozhuan/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/tiaozhuan/SuccessServlet.java" new file mode 100644 index 0000000..ceaca26 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/tiaozhuan/SuccessServlet.java" @@ -0,0 +1,22 @@ +package tiaozhuan; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/success3") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("登陆成功!!!!!!!!!!!!!!!!!!!!!!!!!"); +} +} \ No newline at end of file -- Gitee From 597442ee10bcdd75da7e9a948fa66d025a0ae181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Fri, 30 Sep 2022 02:23:38 +0000 Subject: [PATCH 080/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=82=93?= =?UTF-8?q?=E7=BE=8E=E8=90=8D/=E9=82=93=E7=BE=8E=E8=90=8D/Servlet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Servlet/Servlet1.java" | 40 ------------------- .../Servlet/Servlet2.java" | 32 --------------- 2 files changed, 72 deletions(-) delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\351\202\223\347\276\216\350\220\215/Servlet/Servlet1.java" delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\351\202\223\347\276\216\350\220\215/Servlet/Servlet2.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\351\202\223\347\276\216\350\220\215/Servlet/Servlet1.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\351\202\223\347\276\216\350\220\215/Servlet/Servlet1.java" deleted file mode 100644 index 17d5f67..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\351\202\223\347\276\216\350\220\215/Servlet/Servlet1.java" +++ /dev/null @@ -1,40 +0,0 @@ -package javaweb.Servlet; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; -@WebServlet("/s0") -public class Servlet1 extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - String username=req.getParameter("username"); - String password=req.getParameter("password"); - System.out.println(req.getQueryString()); - if ("admin".equals(username)&&"admin".equals(password)) { - System.out.println("登陆成功!"); - }else { - System.out.println("登陆失败"); - } - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - BufferedReader reader=req.getReader(); - String line; - while ((line=reader.readLine())!=null){ - String[] parametersArr=line.split("&"); - String username=parametersArr[0].split("=")[1]; - String password=parametersArr[1].split("=")[1]; - System.out.println(line); - if ("admin".equals(username)&&"admin".equals(password)) { - System.out.println("登陆成功!"); - }else { - System.out.println("登陆失败"); - } - } - } -} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\351\202\223\347\276\216\350\220\215/Servlet/Servlet2.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\351\202\223\347\276\216\350\220\215/Servlet/Servlet2.java" deleted file mode 100644 index 8045d30..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\351\202\223\347\276\216\350\220\215/Servlet/Servlet2.java" +++ /dev/null @@ -1,32 +0,0 @@ -package javaweb.Servlet; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/s1") -public class Servlet2 extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.setCharacterEncoding("UTF-8"); - - System.out.println("do....................post"); - String username=req.getParameter("username"); - String password=req.getParameter("password"); - String hobby=req.getParameter("hobby"); - String gender=req.getParameter("gender"); - - System.out.println("账号:"+username); - System.out.println("密码:"+password); - System.out.println("性别:"+gender); - System.out.println("爱好:"+hobby); - } -} -- Gitee From 5b5400c11e055866b5f8dc3cd7e85a17c3cb665b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Fri, 30 Sep 2022 02:24:04 +0000 Subject: [PATCH 081/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邓美萍 <479405703@qq.com> --- .../Servlet/Servlet1.java" | 40 +++++++++++++++++++ .../Servlet/Servlet2.java" | 32 +++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/Servlet/Servlet1.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/Servlet/Servlet2.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/Servlet/Servlet1.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/Servlet/Servlet1.java" new file mode 100644 index 0000000..17d5f67 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/Servlet/Servlet1.java" @@ -0,0 +1,40 @@ +package javaweb.Servlet; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +@WebServlet("/s0") +public class Servlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username=req.getParameter("username"); + String password=req.getParameter("password"); + System.out.println(req.getQueryString()); + if ("admin".equals(username)&&"admin".equals(password)) { + System.out.println("登陆成功!"); + }else { + System.out.println("登陆失败"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + BufferedReader reader=req.getReader(); + String line; + while ((line=reader.readLine())!=null){ + String[] parametersArr=line.split("&"); + String username=parametersArr[0].split("=")[1]; + String password=parametersArr[1].split("=")[1]; + System.out.println(line); + if ("admin".equals(username)&&"admin".equals(password)) { + System.out.println("登陆成功!"); + }else { + System.out.println("登陆失败"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/Servlet/Servlet2.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/Servlet/Servlet2.java" new file mode 100644 index 0000000..8045d30 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/Servlet/Servlet2.java" @@ -0,0 +1,32 @@ +package javaweb.Servlet; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/s1") +public class Servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("UTF-8"); + + System.out.println("do....................post"); + String username=req.getParameter("username"); + String password=req.getParameter("password"); + String hobby=req.getParameter("hobby"); + String gender=req.getParameter("gender"); + + System.out.println("账号:"+username); + System.out.println("密码:"+password); + System.out.println("性别:"+gender); + System.out.println("爱好:"+hobby); + } +} -- Gitee From 8cade1bfeb2f6d225d422a25bcc0b0982c33d6d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Fri, 30 Sep 2022 03:26:13 +0000 Subject: [PATCH 082/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From eac4dcc2f4e3abb31d895537fce86ece7c516043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Fri, 30 Sep 2022 03:26:33 +0000 Subject: [PATCH 083/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?README.en.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 README.en.md diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 860ff47..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# JavaWeb作业 - -#### Description -JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业JavaWeb作业 - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) -- Gitee From 7d5bd39ad5714745f249a79322cb3cc5fabbb9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Fri, 30 Sep 2022 03:26:49 +0000 Subject: [PATCH 084/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=209.30?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../9.30/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 47992627a90147a66e4b8071fa8be9030dca9465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Fri, 30 Sep 2022 03:28:50 +0000 Subject: [PATCH 085/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈斯雅 <435508900@qq.com> --- .../9.30/Login.java" | 46 +++++++++++++++++++ .../9.30/Register.java" | 41 +++++++++++++++++ .../9.30/login.html" | 16 +++++++ .../9.30/register.html" | 19 ++++++++ 4 files changed, 122 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/Login.java" new file mode 100644 index 0000000..19bcdae --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/Login.java" @@ -0,0 +1,46 @@ +package second; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/Register.java" new file mode 100644 index 0000000..188e6a3 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/Register.java" @@ -0,0 +1,41 @@ +package second; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/login.html" new file mode 100644 index 0000000..0885c4f --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/login.html" @@ -0,0 +1,16 @@ + + + + + 用户登录 + + +
+
+
+
+ +
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/register.html" new file mode 100644 index 0000000..f2c6030 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/register.html" @@ -0,0 +1,19 @@ + + + + + 用户注册 + + +
+

注册界面

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+
+ + \ No newline at end of file -- Gitee From 016b566ed8af233ba8184a4976eb8e0ce47d4022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Fri, 30 Sep 2022 03:29:11 +0000 Subject: [PATCH 086/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=209.30?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../9.30/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From de80a8d56b9c59e208ffa6722ee79d3c361b5cdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Fri, 30 Sep 2022 03:29:36 +0000 Subject: [PATCH 087/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈斯雅 <435508900@qq.com> --- .../9.30/fail.java" | 21 +++++++++++ .../9.30/login.html" | 17 +++++++++ .../9.30/login.java" | 36 +++++++++++++++++++ .../9.30/success.java" | 20 +++++++++++ 4 files changed, 94 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/login.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/success.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/fail.java" new file mode 100644 index 0000000..eed2ce7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/fail.java" @@ -0,0 +1,21 @@ +package third; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail") +public class fail extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } +} + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/login.html" new file mode 100644 index 0000000..70f8f2b --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/login.html" @@ -0,0 +1,17 @@ + + + + + 用户登录 + + +
+
+ 姓名:
+ 密码:
+ + +
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/login.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/login.java" new file mode 100644 index 0000000..56829f5 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/login.java" @@ -0,0 +1,36 @@ +package third; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/success.java" new file mode 100644 index 0000000..5b7de3e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/success.java" @@ -0,0 +1,20 @@ +package third; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Success") +public class success extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } +} -- Gitee From 49a1ec3f73ee336f84dbdbe91eb39bb4223ad1bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Fri, 30 Sep 2022 15:06:33 +0000 Subject: [PATCH 088/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/9.30=20=E4=B8=BA=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=99=88?= =?UTF-8?q?=E6=96=AF=E9=9B=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\231\210\346\226\257\351\233\205/.keep" | 0 .../\351\231\210\346\226\257\351\233\205/fail.java" | 0 .../\351\231\210\346\226\257\351\233\205/login.html" | 0 .../\351\231\210\346\226\257\351\233\205/login.java" | 0 .../\351\231\210\346\226\257\351\233\205/success.java" | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/.keep" => "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" (100%) rename "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/fail.java" => "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/fail.java" (100%) rename "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/login.html" => "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.html" (100%) rename "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/login.java" => "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.java" (100%) rename "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/success.java" => "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/success.java" (100%) diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" similarity index 100% rename from "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/.keep" rename to "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/fail.java" similarity index 100% rename from "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/fail.java" rename to "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/fail.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.html" similarity index 100% rename from "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/login.html" rename to "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/login.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.java" similarity index 100% rename from "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/login.java" rename to "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/success.java" similarity index 100% rename from "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/9.30/success.java" rename to "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/success.java" -- Gitee From 0757bd2ff9dd6b6b8e490d845b3143c5e36ca514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Fri, 30 Sep 2022 15:07:41 +0000 Subject: [PATCH 089/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/9.30=20=E4=B8=BA=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=99=88?= =?UTF-8?q?=E6=96=AF=E9=9B=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\231\210\346\226\257\351\233\205/.keep" | 0 .../\351\231\210\346\226\257\351\233\205/Login.java" | 0 .../\351\231\210\346\226\257\351\233\205/Register.java" | 0 .../\351\231\210\346\226\257\351\233\205/login.html" | 0 .../\351\231\210\346\226\257\351\233\205/register.html" | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/.keep" => "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" (100%) rename "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/Login.java" => "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/Login.java" (100%) rename "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/Register.java" => "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/Register.java" (100%) rename "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/login.html" => "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.html" (100%) rename "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/register.html" => "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/register.html" (100%) diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" similarity index 100% rename from "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/.keep" rename to "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/Login.java" similarity index 100% rename from "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/Login.java" rename to "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/Login.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/Register.java" similarity index 100% rename from "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/Register.java" rename to "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/Register.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.html" similarity index 100% rename from "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/login.html" rename to "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/register.html" similarity index 100% rename from "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/9.30/register.html" rename to "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/register.html" -- Gitee From 89c6eb63daa079a38d8a343d237fcb4bcf589131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 4 Oct 2022 12:40:36 +0000 Subject: [PATCH 090/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E7=A7=8B?= =?UTF-8?q?=E5=8D=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\347\247\213\345\215\216/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 68ca1893f11a3b39e24c22e05e0470570df7c5b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 4 Oct 2022 12:40:54 +0000 Subject: [PATCH 091/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E7=A7=8B?= =?UTF-8?q?=E5=8D=8E=E3=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\347\247\213\345\215\216\343\200\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216\343\200\201/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216\343\200\201/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216\343\200\201/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 2bb9a247179a30363e0321e597f663f2d38a7f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 4 Oct 2022 12:40:55 +0000 Subject: [PATCH 092/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E7=A7=8B?= =?UTF-8?q?=E5=8D=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\347\247\213\345\215\216/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 414f8b31155956b2519045695938612b22cfea5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 4 Oct 2022 12:42:33 +0000 Subject: [PATCH 093/688] Chapter 02 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林秋华 <1241881982@qq.com> --- .../Servlet1.java" | 40 +++++++++++++++++++ .../Servlet2.java" | 32 +++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Servlet1.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Servlet2.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Servlet1.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Servlet1.java" new file mode 100644 index 0000000..17d5f67 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Servlet1.java" @@ -0,0 +1,40 @@ +package javaweb.Servlet; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +@WebServlet("/s0") +public class Servlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username=req.getParameter("username"); + String password=req.getParameter("password"); + System.out.println(req.getQueryString()); + if ("admin".equals(username)&&"admin".equals(password)) { + System.out.println("登陆成功!"); + }else { + System.out.println("登陆失败"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + BufferedReader reader=req.getReader(); + String line; + while ((line=reader.readLine())!=null){ + String[] parametersArr=line.split("&"); + String username=parametersArr[0].split("=")[1]; + String password=parametersArr[1].split("=")[1]; + System.out.println(line); + if ("admin".equals(username)&&"admin".equals(password)) { + System.out.println("登陆成功!"); + }else { + System.out.println("登陆失败"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Servlet2.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Servlet2.java" new file mode 100644 index 0000000..8045d30 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Servlet2.java" @@ -0,0 +1,32 @@ +package javaweb.Servlet; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/s1") +public class Servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("UTF-8"); + + System.out.println("do....................post"); + String username=req.getParameter("username"); + String password=req.getParameter("password"); + String hobby=req.getParameter("hobby"); + String gender=req.getParameter("gender"); + + System.out.println("账号:"+username); + System.out.println("密码:"+password); + System.out.println("性别:"+gender); + System.out.println("爱好:"+hobby); + } +} -- Gitee From 83c3f6a416ccc1dfc08c060086638742e4ba5f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 4 Oct 2022 12:42:55 +0000 Subject: [PATCH 094/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9E=97?= =?UTF-8?q?=E7=A7=8B=E5=8D=8E=E3=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\347\247\213\345\215\216\343\200\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216\343\200\201/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216\343\200\201/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216\343\200\201/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From b05acdf3494ce6fd5617f68f20f3cfd730cb8a7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 4 Oct 2022 12:43:24 +0000 Subject: [PATCH 095/688] Chapter 03 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林秋华 <1241881982@qq.com> --- .../FailServlet.java" | 22 +++++++++++ .../Servlet3.java" | 37 +++++++++++++++++++ .../SuccessServlet.java" | 22 +++++++++++ 3 files changed, 81 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Servlet3.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" new file mode 100644 index 0000000..4046385 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" @@ -0,0 +1,22 @@ +package tiaozhuan; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/fail3") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("登陆失败!!!!!!!!!!!!!!!!!!!!!!!!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Servlet3.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Servlet3.java" new file mode 100644 index 0000000..57f8553 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Servlet3.java" @@ -0,0 +1,37 @@ +package tiaozhuan; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +@WebServlet("/s3") +public class Servlet3 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + BufferedReader reader=req.getReader(); + String line; + while ((line=reader.readLine())!=null){ + String []arr=line.split("&"); + String username=arr[0].split("=")[1]; + String password=arr[1].split("=")[1]; + if ("admin".equals(username)&&"admin".equals(password)) { + req.getRequestDispatcher("/success3").forward(req,resp); + System.out.println(line); + } + else { + req.getRequestDispatcher("/fail3").forward(req,resp); + } + + } + + + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" new file mode 100644 index 0000000..ceaca26 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" @@ -0,0 +1,22 @@ +package tiaozhuan; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/success3") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("登陆成功!!!!!!!!!!!!!!!!!!!!!!!!!"); +} +} \ No newline at end of file -- Gitee From 47600ac2c375e746776f0d55ae4515af07a21dca Mon Sep 17 00:00:00 2001 From: zsy <1135989631@qq.com> Date: Sun, 9 Oct 2022 14:45:53 +0000 Subject: [PATCH 096/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=202022.9.30?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\234\261\346\235\211\347\221\234/2022.9.30/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 39efde9d9264fff8d03e3598ea1518913613d1b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Sun, 9 Oct 2022 14:46:09 +0000 Subject: [PATCH 097/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=2010.9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\220\264\350\257\227\346\264\201/10.9/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From ba8b088004b3ae1d367f83c91bba955c11832797 Mon Sep 17 00:00:00 2001 From: zsy <1135989631@qq.com> Date: Sun, 9 Oct 2022 14:46:52 +0000 Subject: [PATCH 098/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zsy <1135989631@qq.com> --- .../2022.9.30/fail.java" | 18 ++++++++++ .../2022.9.30/login.HTML" | 17 +++++++++ .../2022.9.30/login.Java" | 34 ++++++++++++++++++ .../2022.9.30/success.java" | 36 +++++++++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/login.HTML" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/login.Java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/success.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/fail.java" new file mode 100644 index 0000000..8206477 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/fail.java" @@ -0,0 +1,18 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail") +public class fail extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/login.HTML" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/login.HTML" new file mode 100644 index 0000000..70f8f2b --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/login.HTML" @@ -0,0 +1,17 @@ + + + + + 用户登录 + + +
+
+ 姓名:
+ 密码:
+ + +
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/login.Java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/login.Java" new file mode 100644 index 0000000..6d83de9 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/login.Java" @@ -0,0 +1,34 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/success.java" new file mode 100644 index 0000000..c2cd68e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/2022.9.30/success.java" @@ -0,0 +1,36 @@ + + import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} + -- Gitee From b2a28a4180b58e37c3d51c38077a2d5ecb0e43db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Sun, 9 Oct 2022 14:47:17 +0000 Subject: [PATCH 099/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴诗洁 <2716787815@qq.com> --- .../JavaWebServlet01/Fail01.java" | 24 ++++++++++++++++ .../JavaWebServlet01/Servlet1.java" | 27 ++++++++++++++++++ .../JavaWebServlet01/Success01.java" | 23 +++++++++++++++ .../JavaWebServlet02/Fail02.java" | 24 ++++++++++++++++ .../JavaWebServlet02/Servlet2.java" | 28 +++++++++++++++++++ .../JavaWebServlet02/Success02.java" | 24 ++++++++++++++++ .../web/WEB-INF/web.xml" | 6 ++++ .../web/index.jsp" | 16 +++++++++++ .../web/login.html" | 14 ++++++++++ .../web/login2.html" | 14 ++++++++++ 10 files changed, 200 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet01/Fail01.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet01/Servlet1.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet01/Success01.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet02/Fail02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet02/Servlet2.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet02/Success02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/web/WEB-INF/web.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/web/index.jsp" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/web/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/web/login2.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet01/Fail01.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet01/Fail01.java" new file mode 100644 index 0000000..d9b853a --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet01/Fail01.java" @@ -0,0 +1,24 @@ +package JavaWebServlet01; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail01") +public class Fail01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet01/Servlet1.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet01/Servlet1.java" new file mode 100644 index 0000000..8c8c0d3 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet01/Servlet1.java" @@ -0,0 +1,27 @@ +package JavaWebServlet01; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/s1") +public class Servlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username=req.getParameter("username"); + String password=req.getParameter("password"); + if ("admin".equals(username)&&"admin".equals(password)) { + req.getRequestDispatcher("/Success01").forward(req,resp); + } + else { + req.getRequestDispatcher("/Fail01").forward(req,resp); + } + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet01/Success01.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet01/Success01.java" new file mode 100644 index 0000000..14589c8 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet01/Success01.java" @@ -0,0 +1,23 @@ +package JavaWebServlet01; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Success01") +public class Success01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet02/Fail02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet02/Fail02.java" new file mode 100644 index 0000000..f81a3b4 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet02/Fail02.java" @@ -0,0 +1,24 @@ +package JavaWebServlet02; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail02") +public class Fail02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet02/Servlet2.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet02/Servlet2.java" new file mode 100644 index 0000000..482f1a9 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet02/Servlet2.java" @@ -0,0 +1,28 @@ +package JavaWebServlet02; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/s2") +public class Servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String uname=req.getParameter("uname"); + String password=req.getParameter("password"); + if ("admin".equals(uname)&&"admin".equals(password)) { + resp.sendRedirect("Success02"); + } + else { + resp.sendRedirect("Fail02"); + } + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet02/Success02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet02/Success02.java" new file mode 100644 index 0000000..6353777 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/JavaWebServlet02/Success02.java" @@ -0,0 +1,24 @@ +package JavaWebServlet02; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Success02") +public class Success02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/web/WEB-INF/web.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/web/WEB-INF/web.xml" new file mode 100644 index 0000000..d80081d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/web/WEB-INF/web.xml" @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/web/index.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/web/index.jsp" new file mode 100644 index 0000000..4347da2 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/web/index.jsp" @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/9/27 + Time: 11:16 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + $END$ + + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/web/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/web/login.html" new file mode 100644 index 0000000..c19aa58 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/web/login.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/web/login2.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/web/login2.html" new file mode 100644 index 0000000..3a32640 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/10.9/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/web/login2.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file -- Gitee From 01d0851fc1acd547981245ae010b11af58335fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Fri, 14 Oct 2022 02:16:16 +0000 Subject: [PATCH 100/688] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李晓云 <2061522600@qq.com> --- .../fail.java" | 17 ++++++++++ .../login.html" | 17 ++++++++++ .../login.java" | 34 +++++++++++++++++++ .../success.java" | 34 +++++++++++++++++++ 4 files changed, 102 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/login.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/success.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/fail.java" new file mode 100644 index 0000000..03420ec --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/fail.java" @@ -0,0 +1,17 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Fail") +public class fail extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/login.html" new file mode 100644 index 0000000..70f8f2b --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/login.html" @@ -0,0 +1,17 @@ + + + + + 用户登录 + + +
+
+ 姓名:
+ 密码:
+ + +
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/login.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/login.java" new file mode 100644 index 0000000..6d83de9 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/login.java" @@ -0,0 +1,34 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/success.java" new file mode 100644 index 0000000..6d83de9 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/success.java" @@ -0,0 +1,34 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file -- Gitee From baeacdc2f516e1cdd22db6c9725f0dd9dbcd4783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Fri, 14 Oct 2022 02:16:47 +0000 Subject: [PATCH 101/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=8E?= =?UTF-8?q?=E6=99=93=E4=BA=91/fail.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fail.java" | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/fail.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/fail.java" deleted file mode 100644 index 03420ec..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/fail.java" +++ /dev/null @@ -1,17 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -@WebServlet("/Fail") -public class fail extends HttpServlet { - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.getWriter().write("登录失败,用户名或密码错误!"); - } -} -- Gitee From bdbd73e232a8b7588441119c8e6e5425d8c3b189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Fri, 14 Oct 2022 02:16:53 +0000 Subject: [PATCH 102/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=8E?= =?UTF-8?q?=E6=99=93=E4=BA=91/login.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../login.html" | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/login.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/login.html" deleted file mode 100644 index 70f8f2b..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/login.html" +++ /dev/null @@ -1,17 +0,0 @@ - - - - - 用户登录 - - -
-
- 姓名:
- 密码:
- - -
-
- - \ No newline at end of file -- Gitee From 9b77bb17358a78ea8b1fc69ecac9a0f1f4c261ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Fri, 14 Oct 2022 02:17:00 +0000 Subject: [PATCH 103/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=8E?= =?UTF-8?q?=E6=99=93=E4=BA=91/login.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../login.java" | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/login.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/login.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/login.java" deleted file mode 100644 index 6d83de9..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/login.java" +++ /dev/null @@ -1,34 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; - -@WebServlet("/login") -public class login extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.setCharacterEncoding("utf-8"); - BufferedReader reader = req.getReader(); - String line; - while ((line = reader.readLine()) != null) { - System.out.println(line); - String[] paramsArr = line.split("&"); - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - if ("admin".equals(username) && "admin".equals(password)) { - System.out.println("登录成功!"); - req.getRequestDispatcher("/Success").forward(req,resp); - } else { - System.out.println("登录失败!"); - req.getRequestDispatcher("/Fail").forward(req,resp); - } - } - } - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} \ No newline at end of file -- Gitee From 4499a6e18418b7dbe6c610f7b393779e24f7e91c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Fri, 14 Oct 2022 02:17:08 +0000 Subject: [PATCH 104/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=8E?= =?UTF-8?q?=E6=99=93=E4=BA=91/success.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../success.java" | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/success.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/success.java" deleted file mode 100644 index 6d83de9..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/success.java" +++ /dev/null @@ -1,34 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; - -@WebServlet("/login") -public class login extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.setCharacterEncoding("utf-8"); - BufferedReader reader = req.getReader(); - String line; - while ((line = reader.readLine()) != null) { - System.out.println(line); - String[] paramsArr = line.split("&"); - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - if ("admin".equals(username) && "admin".equals(password)) { - System.out.println("登录成功!"); - req.getRequestDispatcher("/Success").forward(req,resp); - } else { - System.out.println("登录失败!"); - req.getRequestDispatcher("/Fail").forward(req,resp); - } - } - } - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} \ No newline at end of file -- Gitee From caae0a841495c66de9b72a33b84aaad3ddea5040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Fri, 14 Oct 2022 02:17:21 +0000 Subject: [PATCH 105/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=202022.9.30?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\216\346\231\223\344\272\221/2022.9.30/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 674ec0c645328c0496143a6fb9beb9d7ac4ebb0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Fri, 14 Oct 2022 02:18:14 +0000 Subject: [PATCH 106/688] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李晓云 <2061522600@qq.com> --- .../2022.9.30/fail.java" | 17 ++++++++++ .../2022.9.30/login.html" | 17 ++++++++++ .../2022.9.30/login.java" | 34 +++++++++++++++++++ .../2022.9.30/success.java" | 34 +++++++++++++++++++ 4 files changed, 102 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/login.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/success.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/fail.java" new file mode 100644 index 0000000..03420ec --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/fail.java" @@ -0,0 +1,17 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Fail") +public class fail extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/login.html" new file mode 100644 index 0000000..70f8f2b --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/login.html" @@ -0,0 +1,17 @@ + + + + + 用户登录 + + +
+
+ 姓名:
+ 密码:
+ + +
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/login.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/login.java" new file mode 100644 index 0000000..6d83de9 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/login.java" @@ -0,0 +1,34 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/success.java" new file mode 100644 index 0000000..6d83de9 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/2022.9.30/success.java" @@ -0,0 +1,34 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file -- Gitee From 807f71a58446bba55aaff33fc001c77b6b0ffb67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sun, 6 Nov 2022 02:07:05 +0000 Subject: [PATCH 107/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗鑫lxxx666 <10602820+jason666NB@user.noreply.gitee.com> --- .../webWork/.idea/compiler.xml" | 8 + .../webWork/.idea/jarRepositories.xml" | 20 + .../webWork/.idea/misc.xml" | 19 + .../webWork/.idea/webContexts.xml" | 10 + .../webWork/.idea/workspace.xml" | 101 + .../webWork/pom.xml" | 80 + .../webWork/src/main/webapp/WEB-INF/web.xml" | 6 + .../webWork/src/main/webapp/step1.html" | 35 + .../webWork/src/main/webapp/step2.html" | 44 + .../webWork/src/main/webapp/step3.jsp" | 73 + .../classes/com/web/addressServlet.class" | Bin 0 -> 1580 bytes .../classes/com/web/shopcarServlet.class" | Bin 0 -> 1623 bytes .../target/tomcat/conf/logging.properties" | 64 + .../target/tomcat/conf/tomcat-users.xml" | 26 + .../webWork/target/tomcat/conf/web.xml" | 4283 +++++++++++++++++ .../target/tomcat/logs/access_log.2022-10-29" | 20 + .../target/tomcat/logs/access_log.2022-10-31" | 50 + .../target/tomcat/logs/access_log.2022-11-01" | 6 + .../target/tomcat/logs/access_log.2022-11-03" | 63 + .../target/tomcat/logs/access_log.2022-11-06" | 87 + 20 files changed, 4995 insertions(+) create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/compiler.xml" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/jarRepositories.xml" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/misc.xml" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/webContexts.xml" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/workspace.xml" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/pom.xml" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/WEB-INF/web.xml" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step1.html" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step2.html" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step3.jsp" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/addressServlet.class" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/shopcarServlet.class" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/logging.properties" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/tomcat-users.xml" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/web.xml" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-29" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-31" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-01" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-03" create mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-06" diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/compiler.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/compiler.xml" new file mode 100644 index 0000000..6e5a203 --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/compiler.xml" @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/jarRepositories.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/jarRepositories.xml" new file mode 100644 index 0000000..a468a99 --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/jarRepositories.xml" @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/misc.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/misc.xml" new file mode 100644 index 0000000..149f5ab --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/misc.xml" @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/webContexts.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/webContexts.xml" new file mode 100644 index 0000000..0c7b27c --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/webContexts.xml" @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/workspace.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/workspace.xml" new file mode 100644 index 0000000..1483d55 --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/workspace.xml" @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1667038653869 + + + + + + \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/pom.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/pom.xml" new file mode 100644 index 0000000..6c3d706 --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/pom.xml" @@ -0,0 +1,80 @@ + + + 4.0.0 + + org.example + webWork + 1.0-SNAPSHOT + + pom + + + 8 + 8 + + + + + + + org.mybatis + mybatis + 3.5.5 + + + + + mysql + mysql-connector-java + 8.0.30 + + + + + javax.servlet + javax.servlet-api + 3.1.0 + provided + + + + + + javax.servlet.jsp + jsp-api + 2.2 + provided + + + + + jstl + jstl + 1.2 + + + taglibs + standard + 1.1.2 + + + + + + + + + org.apache.tomcat.maven + tomcat7-maven-plugin + 2.2 + + true + + + + + + + \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/WEB-INF/web.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/WEB-INF/web.xml" new file mode 100644 index 0000000..d80081d --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/WEB-INF/web.xml" @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step1.html" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step1.html" new file mode 100644 index 0000000..f8f1376 --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step1.html" @@ -0,0 +1,35 @@ + + + + + 购物车 + + +
+ +

Step1:选择要购买的书籍

+ + + + + + + + + + + + + + + + + + + + + +
书名购买
Java

Oraclecheck

Strutscheck

+
+ + \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step2.html" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step2.html" new file mode 100644 index 0000000..2ab8b4e --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step2.html" @@ -0,0 +1,44 @@ + + + + + 订单信息 + + +

请输入寄送地址与信用卡信息

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
信用卡信息
种类Master
Visa
卡号
+
+ + \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step3.jsp" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step3.jsp" new file mode 100644 index 0000000..bf53de8 --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step3.jsp" @@ -0,0 +1,73 @@ +<%-- + Created by IntelliJ IDEA. + User: ɶ + Date: 2022/10/31 + Time: 17:07 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" pageEncoding="gb2312"%> +<%@ page contentType="text/html;charset=gb2312"%> +<%@ page import="java.net.URLEncoder" %> +<%@ page import="java.net.URLDecoder" %> + + + + ȷ + + +
+ + + <% + request.setCharacterEncoding("utf-8"); + %> + + + <% +// response.setContentType("test/http;charset=UTF-8"); + HttpSession session1 = request.getSession(); + String name = String.valueOf(session1.getAttribute("name")); + String javacheck = (String) session1.getAttribute("javacheck"); + String Oraclecheck = (String) session1.getAttribute("Oraclecheck"); + String Strutscheck = (String) session1.getAttribute("Strutscheck"); + String address = String.valueOf(session1.getAttribute("address")); + String cardcheck = String.valueOf(session1.getAttribute("cardcheck")); + String cardnumber = String.valueOf(session1.getAttribute("cardnumber")); + + %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
˿<%out.write(name);%>
ַ<%URLDecoder.decode(address,"UTF-8");%> + <%out.print(address);%>
Ϣ
ÿ<%out.write(cardcheck);%>
<%out.write(cardnumber);%>
Ŀ
<%out.write(javacheck);%>
<%out.print(Oraclecheck);%>
<%out.print(Strutscheck);%>
+
+ + diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/addressServlet.class" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/addressServlet.class" new file mode 100644 index 0000000000000000000000000000000000000000..20a9e9433fb8d15794edbbfdf3fc78b48a3ec7b7 GIT binary patch literal 1580 zcmah}*-{fh6g{17LNb5`L85G;tN}&^7Zw);7phW11q-Y6X)@`8fiM$hI>>MNqJ^1TssuW2>hE$?=ITfz*mylLDP(+mUaZ`&H?^Gplvp6w0n;*0)U0 z4$kpqO6}ObKyTS{_l-}oYM8Z}Cw+fYdWUtX76sBZ_q9|4mGSbfd1xLPe)MGQDAh3D zaEW~@@}MbwwRowU-*6pYE(Tzeo;(m3yEG)qOmf855V#ylT!RsgxgU}bz#Dbb*)}$n zXFJ=Zrp06h+APznSv%6&6UYU&6LyX+KAT~?j=<3QAVUx4%e_3ZWJA&2*YH@wJjJQG z8?MjxXUSJ~AVt^dF3$wm1d5fWqwIaTW&1W2T6P>)nPE18k$o+vK(6NG59o^^= z=s9~j1O_f1iT@m8pshZ!6`?M+YpkuGxE;ATZ#-%O`nFUXrbmgD^aMtu!8j%JMA*4g zS5$*>n}3uY9*=y^9PK~ap3gL%58an)S#h+gO+^95&VX_P$$E8HS}Obxj9$hynq`vp zrBkcOn(Z-Ep!U$SR;F|eO<+MQYK6q~F|tX} zN);Irndu^9A~RED5Y4GV+c9zp{Dn4yJWF<X=PYt4nypwhGC+} zF!DC;(08QOlr`o^@=cp8O?^TBFYp|l5hm#mK@CN2El^quloo?JSt5Z^MkfemoO=hs MPw+SS5yD65H_EwwYXATM literal 0 HcmV?d00001 diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/shopcarServlet.class" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/shopcarServlet.class" new file mode 100644 index 0000000000000000000000000000000000000000..4e7e47818e4bd08a4fcdeaf380135e7b2a4961d5 GIT binary patch literal 1623 zcmai!*-{fh6o&uKHd#j0;1(6c1zCcO`vPu=2v(t3LF0v2lSvmDO=jYB2YD@TwD7_Q z@KJmS%YPOFXpoEaobLJiobN1?AHTkR2XGTBMI6FR9%o9pg4sMq@)!+GtAwk#7FyTy zxKX0=RuLv{8@OZOu0Za->$&=&KzeejE|6LDn^NHLs_V&@y-q_0ukA*gC*@V&vDMm%Ot7>T*iKs}k`m8*S|vL}Nu^xh6ByecF;aw%9N*J&OTV&pOQ5*4<;bq) zWo6)=fjNO}(_faXWO3c^1&(~?hHV+%Tk+YDP@q!ldD`vBx~p7vYr*q;ZAZ=o#{WXG z`!B7xva!>-?55rBg`@CSQ%wxvuz`6K_wm5QLp(C@*u(;!m{`P9B88Li)(<{dO3Uu` z*_Q6K4J?^>hGi4SaYEq4;CT@k{r`;oBS>)j#bWfRN3L%@U)yy${(ry8>FDUA7$VE!?pZpP@a##0$sJUa_#nSj5I8=7WU7wy{8u@|zak(F5zYwL zBivbh3O=*bUm-rzNZ}~gTy$7MnYI}VFpOi|Wx^SuD!lxY&hmWLtL4--(kZ;GmNStt zm#LPsv6ZcEBPTGItK`b5E88&App~gm7@OG&l{Bf#Q)kSS3)?8ButPJABBKnUKEyKnUaMIn8QUZ;Syf(VptJ*Bq!_63(o6(37R&lj eMjy&Zpmv8y;WBThn9wAjLxi8=Z~7gCLiIOaj*r~{ literal 0 HcmV?d00001 diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/logging.properties" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/logging.properties" new file mode 100644 index 0000000..76c9512 --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/logging.properties" @@ -0,0 +1,64 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler + +.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler + +############################################################ +# Handler specific properties. +# Describes specific configuration info for Handlers. +############################################################ + +1catalina.org.apache.juli.FileHandler.level = FINE +1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +1catalina.org.apache.juli.FileHandler.prefix = catalina. + +2localhost.org.apache.juli.FileHandler.level = FINE +2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +2localhost.org.apache.juli.FileHandler.prefix = localhost. + +3manager.org.apache.juli.FileHandler.level = FINE +3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +3manager.org.apache.juli.FileHandler.prefix = manager. + +4host-manager.org.apache.juli.FileHandler.level = FINE +4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +4host-manager.org.apache.juli.FileHandler.prefix = host-manager. + +java.util.logging.ConsoleHandler.level = FINE +java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter + + +############################################################ +# Facility specific properties. +# Provides extra control for each logger. +############################################################ + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler + +# For example, set the org.apache.catalina.util.LifecycleBase logger to log +# each component that extends LifecycleBase changing state: +#org.apache.catalina.util.LifecycleBase.level = FINE + +# To see debug messages in TldLocationsCache, uncomment the following line: +#org.apache.jasper.compiler.TldLocationsCache.level = FINE diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/tomcat-users.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/tomcat-users.xml" new file mode 100644 index 0000000..7114f5d --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/tomcat-users.xml" @@ -0,0 +1,26 @@ + + + + + diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/web.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/web.xml" new file mode 100644 index 0000000..cc8383c --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/web.xml" @@ -0,0 +1,4283 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + org.apache.catalina.servlets.DefaultServlet + + debug + 0 + + + listings + false + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jsp + org.apache.jasper.servlet.JspServlet + + fork + false + + + xpoweredBy + false + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + / + + + + + jsp + *.jsp + *.jspx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 30 + + + + + + + + + + + + 123 + application/vnd.lotus-1-2-3 + + + 3dml + text/vnd.in3d.3dml + + + 3g2 + video/3gpp2 + + + 3gp + video/3gpp + + + 7z + application/x-7z-compressed + + + aab + application/x-authorware-bin + + + aac + audio/x-aac + + + aam + application/x-authorware-map + + + aas + application/x-authorware-seg + + + abs + audio/x-mpeg + + + abw + application/x-abiword + + + ac + application/pkix-attr-cert + + + acc + application/vnd.americandynamics.acc + + + ace + application/x-ace-compressed + + + acu + application/vnd.acucobol + + + acutc + application/vnd.acucorp + + + adp + audio/adpcm + + + aep + application/vnd.audiograph + + + afm + application/x-font-type1 + + + afp + application/vnd.ibm.modcap + + + ahead + application/vnd.ahead.space + + + ai + application/postscript + + + aif + audio/x-aiff + + + aifc + audio/x-aiff + + + aiff + audio/x-aiff + + + aim + application/x-aim + + + air + application/vnd.adobe.air-application-installer-package+zip + + + ait + application/vnd.dvb.ait + + + ami + application/vnd.amiga.ami + + + anx + application/annodex + + + apk + application/vnd.android.package-archive + + + application + application/x-ms-application + + + apr + application/vnd.lotus-approach + + + art + image/x-jg + + + asc + application/pgp-signature + + + asf + video/x-ms-asf + + + asm + text/x-asm + + + aso + application/vnd.accpac.simply.aso + + + asx + video/x-ms-asf + + + atc + application/vnd.acucorp + + + atom + application/atom+xml + + + atomcat + application/atomcat+xml + + + atomsvc + application/atomsvc+xml + + + atx + application/vnd.antix.game-component + + + au + audio/basic + + + avi + video/x-msvideo + + + avx + video/x-rad-screenplay + + + aw + application/applixware + + + axa + audio/annodex + + + axv + video/annodex + + + azf + application/vnd.airzip.filesecure.azf + + + azs + application/vnd.airzip.filesecure.azs + + + azw + application/vnd.amazon.ebook + + + bat + application/x-msdownload + + + bcpio + application/x-bcpio + + + bdf + application/x-font-bdf + + + bdm + application/vnd.syncml.dm+wbxml + + + bed + application/vnd.realvnc.bed + + + bh2 + application/vnd.fujitsu.oasysprs + + + bin + application/octet-stream + + + bmi + application/vnd.bmi + + + bmp + image/bmp + + + body + text/html + + + book + application/vnd.framemaker + + + box + application/vnd.previewsystems.box + + + boz + application/x-bzip2 + + + bpk + application/octet-stream + + + btif + image/prs.btif + + + bz + application/x-bzip + + + bz2 + application/x-bzip2 + + + c + text/x-c + + + c11amc + application/vnd.cluetrust.cartomobile-config + + + c11amz + application/vnd.cluetrust.cartomobile-config-pkg + + + c4d + application/vnd.clonk.c4group + + + c4f + application/vnd.clonk.c4group + + + c4g + application/vnd.clonk.c4group + + + c4p + application/vnd.clonk.c4group + + + c4u + application/vnd.clonk.c4group + + + cab + application/vnd.ms-cab-compressed + + + cap + application/vnd.tcpdump.pcap + + + car + application/vnd.curl.car + + + cat + application/vnd.ms-pki.seccat + + + cc + text/x-c + + + cct + application/x-director + + + ccxml + application/ccxml+xml + + + cdbcmsg + application/vnd.contact.cmsg + + + cdf + application/x-cdf + + + cdkey + application/vnd.mediastation.cdkey + + + cdmia + application/cdmi-capability + + + cdmic + application/cdmi-container + + + cdmid + application/cdmi-domain + + + cdmio + application/cdmi-object + + + cdmiq + application/cdmi-queue + + + cdx + chemical/x-cdx + + + cdxml + application/vnd.chemdraw+xml + + + cdy + application/vnd.cinderella + + + cer + application/pkix-cert + + + cgm + image/cgm + + + chat + application/x-chat + + + chm + application/vnd.ms-htmlhelp + + + chrt + application/vnd.kde.kchart + + + cif + chemical/x-cif + + + cii + application/vnd.anser-web-certificate-issue-initiation + + + cil + application/vnd.ms-artgalry + + + cla + application/vnd.claymore + + + class + application/java + + + clkk + application/vnd.crick.clicker.keyboard + + + clkp + application/vnd.crick.clicker.palette + + + clkt + application/vnd.crick.clicker.template + + + clkw + application/vnd.crick.clicker.wordbank + + + clkx + application/vnd.crick.clicker + + + clp + application/x-msclip + + + cmc + application/vnd.cosmocaller + + + cmdf + chemical/x-cmdf + + + cml + chemical/x-cml + + + cmp + application/vnd.yellowriver-custom-menu + + + cmx + image/x-cmx + + + cod + application/vnd.rim.cod + + + com + application/x-msdownload + + + conf + text/plain + + + cpio + application/x-cpio + + + cpp + text/x-c + + + cpt + application/mac-compactpro + + + crd + application/x-mscardfile + + + crl + application/pkix-crl + + + crt + application/x-x509-ca-cert + + + cryptonote + application/vnd.rig.cryptonote + + + csh + application/x-csh + + + csml + chemical/x-csml + + + csp + application/vnd.commonspace + + + css + text/css + + + cst + application/x-director + + + csv + text/csv + + + cu + application/cu-seeme + + + curl + text/vnd.curl + + + cww + application/prs.cww + + + cxt + application/x-director + + + cxx + text/x-c + + + dae + model/vnd.collada+xml + + + daf + application/vnd.mobius.daf + + + dataless + application/vnd.fdsn.seed + + + davmount + application/davmount+xml + + + dcr + application/x-director + + + dcurl + text/vnd.curl.dcurl + + + dd2 + application/vnd.oma.dd2+xml + + + ddd + application/vnd.fujixerox.ddd + + + deb + application/x-debian-package + + + def + text/plain + + + deploy + application/octet-stream + + + der + application/x-x509-ca-cert + + + dfac + application/vnd.dreamfactory + + + dib + image/bmp + + + dic + text/x-c + + + dir + application/x-director + + + dis + application/vnd.mobius.dis + + + dist + application/octet-stream + + + distz + application/octet-stream + + + djv + image/vnd.djvu + + + djvu + image/vnd.djvu + + + dll + application/x-msdownload + + + dmg + application/octet-stream + + + dmp + application/vnd.tcpdump.pcap + + + dms + application/octet-stream + + + dna + application/vnd.dna + + + doc + application/msword + + + docm + application/vnd.ms-word.document.macroenabled.12 + + + docx + application/vnd.openxmlformats-officedocument.wordprocessingml.document + + + dot + application/msword + + + dotm + application/vnd.ms-word.template.macroenabled.12 + + + dotx + application/vnd.openxmlformats-officedocument.wordprocessingml.template + + + dp + application/vnd.osgi.dp + + + dpg + application/vnd.dpgraph + + + dra + audio/vnd.dra + + + dsc + text/prs.lines.tag + + + dssc + application/dssc+der + + + dtb + application/x-dtbook+xml + + + dtd + application/xml-dtd + + + dts + audio/vnd.dts + + + dtshd + audio/vnd.dts.hd + + + dump + application/octet-stream + + + dv + video/x-dv + + + dvb + video/vnd.dvb.file + + + dvi + application/x-dvi + + + dwf + model/vnd.dwf + + + dwg + image/vnd.dwg + + + dxf + image/vnd.dxf + + + dxp + application/vnd.spotfire.dxp + + + dxr + application/x-director + + + ecelp4800 + audio/vnd.nuera.ecelp4800 + + + ecelp7470 + audio/vnd.nuera.ecelp7470 + + + ecelp9600 + audio/vnd.nuera.ecelp9600 + + + ecma + application/ecmascript + + + edm + application/vnd.novadigm.edm + + + edx + application/vnd.novadigm.edx + + + efif + application/vnd.picsel + + + ei6 + application/vnd.pg.osasli + + + elc + application/octet-stream + + + eml + message/rfc822 + + + emma + application/emma+xml + + + eol + audio/vnd.digital-winds + + + eot + application/vnd.ms-fontobject + + + eps + application/postscript + + + epub + application/epub+zip + + + es3 + application/vnd.eszigno3+xml + + + esf + application/vnd.epson.esf + + + et3 + application/vnd.eszigno3+xml + + + etx + text/x-setext + + + exe + application/octet-stream + + + exi + application/exi + + + ext + application/vnd.novadigm.ext + + + ez + application/andrew-inset + + + ez2 + application/vnd.ezpix-album + + + ez3 + application/vnd.ezpix-package + + + f + text/x-fortran + + + f4v + video/x-f4v + + + f77 + text/x-fortran + + + f90 + text/x-fortran + + + fbs + image/vnd.fastbidsheet + + + fcs + application/vnd.isac.fcs + + + fdf + application/vnd.fdf + + + fe_launch + application/vnd.denovo.fcselayout-link + + + fg5 + application/vnd.fujitsu.oasysgp + + + fgd + application/x-director + + + fh + image/x-freehand + + + fh4 + image/x-freehand + + + fh5 + image/x-freehand + + + fh7 + image/x-freehand + + + fhc + image/x-freehand + + + fig + application/x-xfig + + + flac + audio/flac + + + fli + video/x-fli + + + flo + application/vnd.micrografx.flo + + + flv + video/x-flv + + + flw + application/vnd.kde.kivio + + + flx + text/vnd.fmi.flexstor + + + fly + text/vnd.fly + + + fm + application/vnd.framemaker + + + fnc + application/vnd.frogans.fnc + + + for + text/x-fortran + + + fpx + image/vnd.fpx + + + frame + application/vnd.framemaker + + + fsc + application/vnd.fsc.weblaunch + + + fst + image/vnd.fst + + + ftc + application/vnd.fluxtime.clip + + + fti + application/vnd.anser-web-funds-transfer-initiation + + + fvt + video/vnd.fvt + + + fxp + application/vnd.adobe.fxp + + + fxpl + application/vnd.adobe.fxp + + + fzs + application/vnd.fuzzysheet + + + g2w + application/vnd.geoplan + + + g3 + image/g3fax + + + g3w + application/vnd.geospace + + + gac + application/vnd.groove-account + + + gbr + application/rpki-ghostbusters + + + gdl + model/vnd.gdl + + + geo + application/vnd.dynageo + + + gex + application/vnd.geometry-explorer + + + ggb + application/vnd.geogebra.file + + + ggt + application/vnd.geogebra.tool + + + ghf + application/vnd.groove-help + + + gif + image/gif + + + gim + application/vnd.groove-identity-message + + + gmx + application/vnd.gmx + + + gnumeric + application/x-gnumeric + + + gph + application/vnd.flographit + + + gqf + application/vnd.grafeq + + + gqs + application/vnd.grafeq + + + gram + application/srgs + + + gre + application/vnd.geometry-explorer + + + grv + application/vnd.groove-injector + + + grxml + application/srgs+xml + + + gsf + application/x-font-ghostscript + + + gtar + application/x-gtar + + + gtm + application/vnd.groove-tool-message + + + gtw + model/vnd.gtw + + + gv + text/vnd.graphviz + + + gxt + application/vnd.geonext + + + gz + application/x-gzip + + + h + text/x-c + + + h261 + video/h261 + + + h263 + video/h263 + + + h264 + video/h264 + + + hal + application/vnd.hal+xml + + + hbci + application/vnd.hbci + + + hdf + application/x-hdf + + + hh + text/x-c + + + hlp + application/winhlp + + + hpgl + application/vnd.hp-hpgl + + + hpid + application/vnd.hp-hpid + + + hps + application/vnd.hp-hps + + + hqx + application/mac-binhex40 + + + htc + text/x-component + + + htke + application/vnd.kenameaapp + + + htm + text/html + + + html + text/html + + + hvd + application/vnd.yamaha.hv-dic + + + hvp + application/vnd.yamaha.hv-voice + + + hvs + application/vnd.yamaha.hv-script + + + i2g + application/vnd.intergeo + + + icc + application/vnd.iccprofile + + + ice + x-conference/x-cooltalk + + + icm + application/vnd.iccprofile + + + ico + image/x-icon + + + ics + text/calendar + + + ief + image/ief + + + ifb + text/calendar + + + ifm + application/vnd.shana.informed.formdata + + + iges + model/iges + + + igl + application/vnd.igloader + + + igm + application/vnd.insors.igm + + + igs + model/iges + + + igx + application/vnd.micrografx.igx + + + iif + application/vnd.shana.informed.interchange + + + imp + application/vnd.accpac.simply.imp + + + ims + application/vnd.ms-ims + + + in + text/plain + + + ink + application/inkml+xml + + + inkml + application/inkml+xml + + + iota + application/vnd.astraea-software.iota + + + ipfix + application/ipfix + + + ipk + application/vnd.shana.informed.package + + + irm + application/vnd.ibm.rights-management + + + irp + application/vnd.irepository.package+xml + + + iso + application/octet-stream + + + itp + application/vnd.shana.informed.formtemplate + + + ivp + application/vnd.immervision-ivp + + + ivu + application/vnd.immervision-ivu + + + jad + text/vnd.sun.j2me.app-descriptor + + + jam + application/vnd.jam + + + jar + application/java-archive + + + java + text/x-java-source + + + jisp + application/vnd.jisp + + + jlt + application/vnd.hp-jlyt + + + jnlp + application/x-java-jnlp-file + + + joda + application/vnd.joost.joda-archive + + + jpe + image/jpeg + + + jpeg + image/jpeg + + + jpg + image/jpeg + + + jpgm + video/jpm + + + jpgv + video/jpeg + + + jpm + video/jpm + + + js + application/javascript + + + jsf + text/plain + + + json + application/json + + + jspf + text/plain + + + kar + audio/midi + + + karbon + application/vnd.kde.karbon + + + kfo + application/vnd.kde.kformula + + + kia + application/vnd.kidspiration + + + kml + application/vnd.google-earth.kml+xml + + + kmz + application/vnd.google-earth.kmz + + + kne + application/vnd.kinar + + + knp + application/vnd.kinar + + + kon + application/vnd.kde.kontour + + + kpr + application/vnd.kde.kpresenter + + + kpt + application/vnd.kde.kpresenter + + + ksp + application/vnd.kde.kspread + + + ktr + application/vnd.kahootz + + + ktx + image/ktx + + + ktz + application/vnd.kahootz + + + kwd + application/vnd.kde.kword + + + kwt + application/vnd.kde.kword + + + lasxml + application/vnd.las.las+xml + + + latex + application/x-latex + + + lbd + application/vnd.llamagraphics.life-balance.desktop + + + lbe + application/vnd.llamagraphics.life-balance.exchange+xml + + + les + application/vnd.hhe.lesson-player + + + lha + application/octet-stream + + + link66 + application/vnd.route66.link66+xml + + + list + text/plain + + + list3820 + application/vnd.ibm.modcap + + + listafp + application/vnd.ibm.modcap + + + log + text/plain + + + lostxml + application/lost+xml + + + lrf + application/octet-stream + + + lrm + application/vnd.ms-lrm + + + ltf + application/vnd.frogans.ltf + + + lvp + audio/vnd.lucent.voice + + + lwp + application/vnd.lotus-wordpro + + + lzh + application/octet-stream + + + m13 + application/x-msmediaview + + + m14 + application/x-msmediaview + + + m1v + video/mpeg + + + m21 + application/mp21 + + + m2a + audio/mpeg + + + m2v + video/mpeg + + + m3a + audio/mpeg + + + m3u + audio/x-mpegurl + + + m3u8 + application/vnd.apple.mpegurl + + + m4a + audio/mp4 + + + m4b + audio/mp4 + + + m4r + audio/mp4 + + + m4u + video/vnd.mpegurl + + + m4v + video/mp4 + + + ma + application/mathematica + + + mac + image/x-macpaint + + + mads + application/mads+xml + + + mag + application/vnd.ecowin.chart + + + maker + application/vnd.framemaker + + + man + text/troff + + + mathml + application/mathml+xml + + + mb + application/mathematica + + + mbk + application/vnd.mobius.mbk + + + mbox + application/mbox + + + mc1 + application/vnd.medcalcdata + + + mcd + application/vnd.mcd + + + mcurl + text/vnd.curl.mcurl + + + mdb + application/x-msaccess + + + mdi + image/vnd.ms-modi + + + me + text/troff + + + mesh + model/mesh + + + meta4 + application/metalink4+xml + + + mets + application/mets+xml + + + mfm + application/vnd.mfmp + + + mft + application/rpki-manifest + + + mgp + application/vnd.osgeo.mapguide.package + + + mgz + application/vnd.proteus.magazine + + + mid + audio/midi + + + midi + audio/midi + + + mif + application/x-mif + + + mime + message/rfc822 + + + mj2 + video/mj2 + + + mjp2 + video/mj2 + + + mlp + application/vnd.dolby.mlp + + + mmd + application/vnd.chipnuts.karaoke-mmd + + + mmf + application/vnd.smaf + + + mmr + image/vnd.fujixerox.edmics-mmr + + + mny + application/x-msmoney + + + mobi + application/x-mobipocket-ebook + + + mods + application/mods+xml + + + mov + video/quicktime + + + movie + video/x-sgi-movie + + + mp1 + audio/mpeg + + + mp2 + audio/mpeg + + + mp21 + application/mp21 + + + mp2a + audio/mpeg + + + mp3 + audio/mpeg + + + mp4 + video/mp4 + + + mp4a + audio/mp4 + + + mp4s + application/mp4 + + + mp4v + video/mp4 + + + mpa + audio/mpeg + + + mpc + application/vnd.mophun.certificate + + + mpe + video/mpeg + + + mpeg + video/mpeg + + + mpega + audio/x-mpeg + + + mpg + video/mpeg + + + mpg4 + video/mp4 + + + mpga + audio/mpeg + + + mpkg + application/vnd.apple.installer+xml + + + mpm + application/vnd.blueice.multipass + + + mpn + application/vnd.mophun.application + + + mpp + application/vnd.ms-project + + + mpt + application/vnd.ms-project + + + mpv2 + video/mpeg2 + + + mpy + application/vnd.ibm.minipay + + + mqy + application/vnd.mobius.mqy + + + mrc + application/marc + + + mrcx + application/marcxml+xml + + + ms + text/troff + + + mscml + application/mediaservercontrol+xml + + + mseed + application/vnd.fdsn.mseed + + + mseq + application/vnd.mseq + + + msf + application/vnd.epson.msf + + + msh + model/mesh + + + msi + application/x-msdownload + + + msl + application/vnd.mobius.msl + + + msty + application/vnd.muvee.style + + + mts + model/vnd.mts + + + mus + application/vnd.musician + + + musicxml + application/vnd.recordare.musicxml+xml + + + mvb + application/x-msmediaview + + + mwf + application/vnd.mfer + + + mxf + application/mxf + + + mxl + application/vnd.recordare.musicxml + + + mxml + application/xv+xml + + + mxs + application/vnd.triscape.mxs + + + mxu + video/vnd.mpegurl + + + n-gage + application/vnd.nokia.n-gage.symbian.install + + + n3 + text/n3 + + + nb + application/mathematica + + + nbp + application/vnd.wolfram.player + + + nc + application/x-netcdf + + + ncx + application/x-dtbncx+xml + + + ngdat + application/vnd.nokia.n-gage.data + + + nlu + application/vnd.neurolanguage.nlu + + + nml + application/vnd.enliven + + + nnd + application/vnd.noblenet-directory + + + nns + application/vnd.noblenet-sealer + + + nnw + application/vnd.noblenet-web + + + npx + image/vnd.net-fpx + + + nsf + application/vnd.lotus-notes + + + oa2 + application/vnd.fujitsu.oasys2 + + + oa3 + application/vnd.fujitsu.oasys3 + + + oas + application/vnd.fujitsu.oasys + + + obd + application/x-msbinder + + + oda + application/oda + + + + odb + application/vnd.oasis.opendocument.database + + + + odc + application/vnd.oasis.opendocument.chart + + + + odf + application/vnd.oasis.opendocument.formula + + + odft + application/vnd.oasis.opendocument.formula-template + + + + odg + application/vnd.oasis.opendocument.graphics + + + + odi + application/vnd.oasis.opendocument.image + + + + odm + application/vnd.oasis.opendocument.text-master + + + + odp + application/vnd.oasis.opendocument.presentation + + + + ods + application/vnd.oasis.opendocument.spreadsheet + + + + odt + application/vnd.oasis.opendocument.text + + + oga + audio/ogg + + + ogg + audio/ogg + + + ogv + video/ogg + + + + ogx + application/ogg + + + onepkg + application/onenote + + + onetmp + application/onenote + + + onetoc + application/onenote + + + onetoc2 + application/onenote + + + opf + application/oebps-package+xml + + + oprc + application/vnd.palm + + + org + application/vnd.lotus-organizer + + + osf + application/vnd.yamaha.openscoreformat + + + osfpvg + application/vnd.yamaha.openscoreformat.osfpvg+xml + + + otc + application/vnd.oasis.opendocument.chart-template + + + otf + application/x-font-otf + + + + otg + application/vnd.oasis.opendocument.graphics-template + + + + oth + application/vnd.oasis.opendocument.text-web + + + oti + application/vnd.oasis.opendocument.image-template + + + + otp + application/vnd.oasis.opendocument.presentation-template + + + + ots + application/vnd.oasis.opendocument.spreadsheet-template + + + + ott + application/vnd.oasis.opendocument.text-template + + + oxps + application/oxps + + + oxt + application/vnd.openofficeorg.extension + + + p + text/x-pascal + + + p10 + application/pkcs10 + + + p12 + application/x-pkcs12 + + + p7b + application/x-pkcs7-certificates + + + p7c + application/pkcs7-mime + + + p7m + application/pkcs7-mime + + + p7r + application/x-pkcs7-certreqresp + + + p7s + application/pkcs7-signature + + + p8 + application/pkcs8 + + + pas + text/x-pascal + + + paw + application/vnd.pawaafile + + + pbd + application/vnd.powerbuilder6 + + + pbm + image/x-portable-bitmap + + + pcap + application/vnd.tcpdump.pcap + + + pcf + application/x-font-pcf + + + pcl + application/vnd.hp-pcl + + + pclxl + application/vnd.hp-pclxl + + + pct + image/pict + + + pcurl + application/vnd.curl.pcurl + + + pcx + image/x-pcx + + + pdb + application/vnd.palm + + + pdf + application/pdf + + + pfa + application/x-font-type1 + + + pfb + application/x-font-type1 + + + pfm + application/x-font-type1 + + + pfr + application/font-tdpfr + + + pfx + application/x-pkcs12 + + + pgm + image/x-portable-graymap + + + pgn + application/x-chess-pgn + + + pgp + application/pgp-encrypted + + + pic + image/pict + + + pict + image/pict + + + pkg + application/octet-stream + + + pki + application/pkixcmp + + + pkipath + application/pkix-pkipath + + + plb + application/vnd.3gpp.pic-bw-large + + + plc + application/vnd.mobius.plc + + + plf + application/vnd.pocketlearn + + + pls + audio/x-scpls + + + pml + application/vnd.ctc-posml + + + png + image/png + + + pnm + image/x-portable-anymap + + + pnt + image/x-macpaint + + + portpkg + application/vnd.macports.portpkg + + + pot + application/vnd.ms-powerpoint + + + potm + application/vnd.ms-powerpoint.template.macroenabled.12 + + + potx + application/vnd.openxmlformats-officedocument.presentationml.template + + + ppam + application/vnd.ms-powerpoint.addin.macroenabled.12 + + + ppd + application/vnd.cups-ppd + + + ppm + image/x-portable-pixmap + + + pps + application/vnd.ms-powerpoint + + + ppsm + application/vnd.ms-powerpoint.slideshow.macroenabled.12 + + + ppsx + application/vnd.openxmlformats-officedocument.presentationml.slideshow + + + ppt + application/vnd.ms-powerpoint + + + pptm + application/vnd.ms-powerpoint.presentation.macroenabled.12 + + + pptx + application/vnd.openxmlformats-officedocument.presentationml.presentation + + + pqa + application/vnd.palm + + + prc + application/x-mobipocket-ebook + + + pre + application/vnd.lotus-freelance + + + prf + application/pics-rules + + + ps + application/postscript + + + psb + application/vnd.3gpp.pic-bw-small + + + psd + image/vnd.adobe.photoshop + + + psf + application/x-font-linux-psf + + + pskcxml + application/pskc+xml + + + ptid + application/vnd.pvi.ptid1 + + + pub + application/x-mspublisher + + + pvb + application/vnd.3gpp.pic-bw-var + + + pwn + application/vnd.3m.post-it-notes + + + pya + audio/vnd.ms-playready.media.pya + + + pyv + video/vnd.ms-playready.media.pyv + + + qam + application/vnd.epson.quickanime + + + qbo + application/vnd.intu.qbo + + + qfx + application/vnd.intu.qfx + + + qps + application/vnd.publishare-delta-tree + + + qt + video/quicktime + + + qti + image/x-quicktime + + + qtif + image/x-quicktime + + + qwd + application/vnd.quark.quarkxpress + + + qwt + application/vnd.quark.quarkxpress + + + qxb + application/vnd.quark.quarkxpress + + + qxd + application/vnd.quark.quarkxpress + + + qxl + application/vnd.quark.quarkxpress + + + qxt + application/vnd.quark.quarkxpress + + + ra + audio/x-pn-realaudio + + + ram + audio/x-pn-realaudio + + + rar + application/x-rar-compressed + + + ras + image/x-cmu-raster + + + rcprofile + application/vnd.ipunplugged.rcprofile + + + rdf + application/rdf+xml + + + rdz + application/vnd.data-vision.rdz + + + rep + application/vnd.businessobjects + + + res + application/x-dtbresource+xml + + + rgb + image/x-rgb + + + rif + application/reginfo+xml + + + rip + audio/vnd.rip + + + rl + application/resource-lists+xml + + + rlc + image/vnd.fujixerox.edmics-rlc + + + rld + application/resource-lists-diff+xml + + + rm + application/vnd.rn-realmedia + + + rmi + audio/midi + + + rmp + audio/x-pn-realaudio-plugin + + + rms + application/vnd.jcp.javame.midlet-rms + + + rnc + application/relax-ng-compact-syntax + + + roa + application/rpki-roa + + + roff + text/troff + + + rp9 + application/vnd.cloanto.rp9 + + + rpss + application/vnd.nokia.radio-presets + + + rpst + application/vnd.nokia.radio-preset + + + rq + application/sparql-query + + + rs + application/rls-services+xml + + + rsd + application/rsd+xml + + + rss + application/rss+xml + + + rtf + application/rtf + + + rtx + text/richtext + + + s + text/x-asm + + + saf + application/vnd.yamaha.smaf-audio + + + sbml + application/sbml+xml + + + sc + application/vnd.ibm.secure-container + + + scd + application/x-msschedule + + + scm + application/vnd.lotus-screencam + + + scq + application/scvp-cv-request + + + scs + application/scvp-cv-response + + + scurl + text/vnd.curl.scurl + + + sda + application/vnd.stardivision.draw + + + sdc + application/vnd.stardivision.calc + + + sdd + application/vnd.stardivision.impress + + + sdkd + application/vnd.solent.sdkm+xml + + + sdkm + application/vnd.solent.sdkm+xml + + + sdp + application/sdp + + + sdw + application/vnd.stardivision.writer + + + see + application/vnd.seemail + + + seed + application/vnd.fdsn.seed + + + sema + application/vnd.sema + + + semd + application/vnd.semd + + + semf + application/vnd.semf + + + ser + application/java-serialized-object + + + setpay + application/set-payment-initiation + + + setreg + application/set-registration-initiation + + + sfd-hdstx + application/vnd.hydrostatix.sof-data + + + sfs + application/vnd.spotfire.sfs + + + sgl + application/vnd.stardivision.writer-global + + + sgm + text/sgml + + + sgml + text/sgml + + + sh + application/x-sh + + + shar + application/x-shar + + + shf + application/shf+xml + + + + sig + application/pgp-signature + + + silo + model/mesh + + + sis + application/vnd.symbian.install + + + sisx + application/vnd.symbian.install + + + sit + application/x-stuffit + + + sitx + application/x-stuffitx + + + skd + application/vnd.koan + + + skm + application/vnd.koan + + + skp + application/vnd.koan + + + skt + application/vnd.koan + + + sldm + application/vnd.ms-powerpoint.slide.macroenabled.12 + + + sldx + application/vnd.openxmlformats-officedocument.presentationml.slide + + + slt + application/vnd.epson.salt + + + sm + application/vnd.stepmania.stepchart + + + smf + application/vnd.stardivision.math + + + smi + application/smil+xml + + + smil + application/smil+xml + + + smzip + application/vnd.stepmania.package + + + snd + audio/basic + + + snf + application/x-font-snf + + + so + application/octet-stream + + + spc + application/x-pkcs7-certificates + + + spf + application/vnd.yamaha.smaf-phrase + + + spl + application/x-futuresplash + + + spot + text/vnd.in3d.spot + + + spp + application/scvp-vp-response + + + spq + application/scvp-vp-request + + + spx + audio/ogg + + + src + application/x-wais-source + + + sru + application/sru+xml + + + srx + application/sparql-results+xml + + + sse + application/vnd.kodak-descriptor + + + ssf + application/vnd.epson.ssf + + + ssml + application/ssml+xml + + + st + application/vnd.sailingtracker.track + + + stc + application/vnd.sun.xml.calc.template + + + std + application/vnd.sun.xml.draw.template + + + stf + application/vnd.wt.stf + + + sti + application/vnd.sun.xml.impress.template + + + stk + application/hyperstudio + + + stl + application/vnd.ms-pki.stl + + + str + application/vnd.pg.format + + + stw + application/vnd.sun.xml.writer.template + + + sub + text/vnd.dvb.subtitle + + + sus + application/vnd.sus-calendar + + + susp + application/vnd.sus-calendar + + + sv4cpio + application/x-sv4cpio + + + sv4crc + application/x-sv4crc + + + svc + application/vnd.dvb.service + + + svd + application/vnd.svd + + + svg + image/svg+xml + + + svgz + image/svg+xml + + + swa + application/x-director + + + swf + application/x-shockwave-flash + + + swi + application/vnd.aristanetworks.swi + + + sxc + application/vnd.sun.xml.calc + + + sxd + application/vnd.sun.xml.draw + + + sxg + application/vnd.sun.xml.writer.global + + + sxi + application/vnd.sun.xml.impress + + + sxm + application/vnd.sun.xml.math + + + sxw + application/vnd.sun.xml.writer + + + t + text/troff + + + taglet + application/vnd.mynfc + + + tao + application/vnd.tao.intent-module-archive + + + tar + application/x-tar + + + tcap + application/vnd.3gpp2.tcap + + + tcl + application/x-tcl + + + teacher + application/vnd.smart.teacher + + + tei + application/tei+xml + + + teicorpus + application/tei+xml + + + tex + application/x-tex + + + texi + application/x-texinfo + + + texinfo + application/x-texinfo + + + text + text/plain + + + tfi + application/thraud+xml + + + tfm + application/x-tex-tfm + + + thmx + application/vnd.ms-officetheme + + + tif + image/tiff + + + tiff + image/tiff + + + tmo + application/vnd.tmobile-livetv + + + torrent + application/x-bittorrent + + + tpl + application/vnd.groove-tool-template + + + tpt + application/vnd.trid.tpt + + + tr + text/troff + + + tra + application/vnd.trueapp + + + trm + application/x-msterminal + + + tsd + application/timestamped-data + + + tsv + text/tab-separated-values + + + ttc + application/x-font-ttf + + + ttf + application/x-font-ttf + + + ttl + text/turtle + + + twd + application/vnd.simtech-mindmapper + + + twds + application/vnd.simtech-mindmapper + + + txd + application/vnd.genomatix.tuxedo + + + txf + application/vnd.mobius.txf + + + txt + text/plain + + + u32 + application/x-authorware-bin + + + udeb + application/x-debian-package + + + ufd + application/vnd.ufdl + + + ufdl + application/vnd.ufdl + + + ulw + audio/basic + + + umj + application/vnd.umajin + + + unityweb + application/vnd.unity + + + uoml + application/vnd.uoml+xml + + + uri + text/uri-list + + + uris + text/uri-list + + + urls + text/uri-list + + + ustar + application/x-ustar + + + utz + application/vnd.uiq.theme + + + uu + text/x-uuencode + + + uva + audio/vnd.dece.audio + + + uvd + application/vnd.dece.data + + + uvf + application/vnd.dece.data + + + uvg + image/vnd.dece.graphic + + + uvh + video/vnd.dece.hd + + + uvi + image/vnd.dece.graphic + + + uvm + video/vnd.dece.mobile + + + uvp + video/vnd.dece.pd + + + uvs + video/vnd.dece.sd + + + uvt + application/vnd.dece.ttml+xml + + + uvu + video/vnd.uvvu.mp4 + + + uvv + video/vnd.dece.video + + + uvva + audio/vnd.dece.audio + + + uvvd + application/vnd.dece.data + + + uvvf + application/vnd.dece.data + + + uvvg + image/vnd.dece.graphic + + + uvvh + video/vnd.dece.hd + + + uvvi + image/vnd.dece.graphic + + + uvvm + video/vnd.dece.mobile + + + uvvp + video/vnd.dece.pd + + + uvvs + video/vnd.dece.sd + + + uvvt + application/vnd.dece.ttml+xml + + + uvvu + video/vnd.uvvu.mp4 + + + uvvv + video/vnd.dece.video + + + uvvx + application/vnd.dece.unspecified + + + uvvz + application/vnd.dece.zip + + + uvx + application/vnd.dece.unspecified + + + uvz + application/vnd.dece.zip + + + vcard + text/vcard + + + vcd + application/x-cdlink + + + vcf + text/x-vcard + + + vcg + application/vnd.groove-vcard + + + vcs + text/x-vcalendar + + + vcx + application/vnd.vcx + + + vis + application/vnd.visionary + + + viv + video/vnd.vivo + + + vor + application/vnd.stardivision.writer + + + vox + application/x-authorware-bin + + + vrml + model/vrml + + + vsd + application/vnd.visio + + + vsf + application/vnd.vsf + + + vss + application/vnd.visio + + + vst + application/vnd.visio + + + vsw + application/vnd.visio + + + vtu + model/vnd.vtu + + + vxml + application/voicexml+xml + + + w3d + application/x-director + + + wad + application/x-doom + + + wav + audio/x-wav + + + wax + audio/x-ms-wax + + + + wbmp + image/vnd.wap.wbmp + + + wbs + application/vnd.criticaltools.wbs+xml + + + wbxml + application/vnd.wap.wbxml + + + wcm + application/vnd.ms-works + + + wdb + application/vnd.ms-works + + + weba + audio/webm + + + webm + video/webm + + + webp + image/webp + + + wg + application/vnd.pmi.widget + + + wgt + application/widget + + + wks + application/vnd.ms-works + + + wm + video/x-ms-wm + + + wma + audio/x-ms-wma + + + wmd + application/x-ms-wmd + + + wmf + application/x-msmetafile + + + + wml + text/vnd.wap.wml + + + + wmlc + application/vnd.wap.wmlc + + + + wmls + text/vnd.wap.wmlscript + + + + wmlsc + application/vnd.wap.wmlscriptc + + + wmv + video/x-ms-wmv + + + wmx + video/x-ms-wmx + + + wmz + application/x-ms-wmz + + + woff + application/x-font-woff + + + wpd + application/vnd.wordperfect + + + wpl + application/vnd.ms-wpl + + + wps + application/vnd.ms-works + + + wqd + application/vnd.wqd + + + wri + application/x-mswrite + + + wrl + model/vrml + + + wsdl + application/wsdl+xml + + + wspolicy + application/wspolicy+xml + + + wtb + application/vnd.webturbo + + + wvx + video/x-ms-wvx + + + x32 + application/x-authorware-bin + + + x3d + application/vnd.hzn-3d-crossword + + + xap + application/x-silverlight-app + + + xar + application/vnd.xara + + + xbap + application/x-ms-xbap + + + xbd + application/vnd.fujixerox.docuworks.binder + + + xbm + image/x-xbitmap + + + xdf + application/xcap-diff+xml + + + xdm + application/vnd.syncml.dm+xml + + + xdp + application/vnd.adobe.xdp+xml + + + xdssc + application/dssc+xml + + + xdw + application/vnd.fujixerox.docuworks + + + xenc + application/xenc+xml + + + xer + application/patch-ops-error+xml + + + xfdf + application/vnd.adobe.xfdf + + + xfdl + application/vnd.xfdl + + + xht + application/xhtml+xml + + + xhtml + application/xhtml+xml + + + xhvml + application/xv+xml + + + xif + image/vnd.xiff + + + xla + application/vnd.ms-excel + + + xlam + application/vnd.ms-excel.addin.macroenabled.12 + + + xlc + application/vnd.ms-excel + + + xlm + application/vnd.ms-excel + + + xls + application/vnd.ms-excel + + + xlsb + application/vnd.ms-excel.sheet.binary.macroenabled.12 + + + xlsm + application/vnd.ms-excel.sheet.macroenabled.12 + + + xlsx + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + + + xlt + application/vnd.ms-excel + + + xltm + application/vnd.ms-excel.template.macroenabled.12 + + + xltx + application/vnd.openxmlformats-officedocument.spreadsheetml.template + + + xlw + application/vnd.ms-excel + + + xml + application/xml + + + xo + application/vnd.olpc-sugar + + + xop + application/xop+xml + + + xpi + application/x-xpinstall + + + xpm + image/x-xpixmap + + + xpr + application/vnd.is-xpr + + + xps + application/vnd.ms-xpsdocument + + + xpw + application/vnd.intercon.formnet + + + xpx + application/vnd.intercon.formnet + + + xsl + application/xml + + + xslt + application/xslt+xml + + + xsm + application/vnd.syncml+xml + + + xspf + application/xspf+xml + + + xul + application/vnd.mozilla.xul+xml + + + xvm + application/xv+xml + + + xvml + application/xv+xml + + + xwd + image/x-xwindowdump + + + xyz + chemical/x-xyz + + + yang + application/yang + + + yin + application/yin+xml + + + z + application/x-compress + + + Z + application/x-compress + + + zaz + application/vnd.zzazz.deck+xml + + + zip + application/zip + + + zir + application/vnd.zul + + + zirz + application/vnd.zul + + + zmm + application/vnd.handheld-entertainment+xml + + + + + + + + + + + + + + + + + + index.html + index.htm + index.jsp + + + diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-29" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-29" new file mode 100644 index 0000000..5f3a7d0 --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-29" @@ -0,0 +1,20 @@ +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:54:08 +0800] "GET /brand-demo HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:30 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:30 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 7 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:55 +0800] "GET /webWork/step1.html HTTP/1.1" 200 994 http-bio-8080-exec-4 1 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:54 +0800] "GET /webWork/step1.html HTTP/1.1" 200 994 http-bio-8080-exec-5 5 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:55 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:57 +0800] "POST /src/main/webapp HTTP/1.1" 404 - http-bio-8080-exec-8 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:00:13 +0800] "POST /src/main/webapp HTTP/1.1" 404 - http-bio-8080-exec-9 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:19 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:19 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 7 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:30 +0800] "GET /webWork/step1.html HTTP/1.1" 200 975 http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:55 +0800] "GET /webWork/step1.html HTTP/1.1" 200 975 http-bio-8080-exec-5 1 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:58 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-6 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:41 +0800] "GET /login-test/loginServlet HTTP/1.1" 404 - http-bio-8080-exec-7 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:47 +0800] "GET /webWork/step1.html HTTP/1.1" 200 988 http-bio-8080-exec-9 2 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:52 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-10 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:39 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:39 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:45 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:48 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-5 0 diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-31" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-31" new file mode 100644 index 0000000..5c1dc1b --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-31" @@ -0,0 +1,50 @@ +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 14 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:37:04 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 5 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:37:08 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-6 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:15 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-5 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:58:57 +0800] "GET /webWork/step1.html HTTP/1.1" 200 1010 http-bio-8080-exec-1 26 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:59:00 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-3 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:29 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:29 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:35 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 4 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:10:24 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-6 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:10:26 +0800] "GET /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 15 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:58 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:02 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-6 5 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:56 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:57 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 19 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:05 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:14 +0800] "GET /webWork/step2.heml HTTP/1.1" 404 987 http-bio-8080-exec-5 1 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:19 +0800] "GET /webWork/step2.html HTTP/1.1" 200 1191 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:33:18 +0800] "GET /webWork/step1.heml HTTP/1.1" 404 987 http-bio-8080-exec-1 30 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:33:25 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-3 4 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:36:41 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:36:41 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 20 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:37:16 +0800] "GET /webWork/step1.html HTTP/1.1" 200 1000 http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:37:19 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 4 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:40 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:40 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:46 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:48 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:22 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:22 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 14 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:31 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:33 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:08 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:08 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:22 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 5 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:22 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:05 +0800] "GET /webWork/step3.html HTTP/1.1" 404 987 http-bio-8080-exec-7 2 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:10 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 993 http-bio-8080-exec-9 418 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 993 http-bio-8080-exec-10 35 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:29:55 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1057 http-bio-8080-exec-3 26 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:31:26 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1069 http-bio-8080-exec-2 24 diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-01" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-01" new file mode 100644 index 0000000..9fc8f49 --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-01" @@ -0,0 +1,6 @@ +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:04 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-2 0 +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:04 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:05 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1208 http-bio-8080-exec-5 464 +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:54 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1230 http-bio-8080-exec-6 42 +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:53:28 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1230 http-bio-8080-exec-7 43 diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-03" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-03" new file mode 100644 index 0000000..d350f0a --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-03" @@ -0,0 +1,63 @@ +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:46 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 10 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:49 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-6 8 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:49 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-7 7 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:27:59 +0800] "GET /webWork/step2.html HTTP/1.1" 200 1191 http-bio-8080-exec-9 3 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:07 +0800] "POST /webWork/addressServlet HTTP/1.1" 200 - http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:21 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:21 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 12 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:28 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 7 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:28 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:33 +0800] "POST /webWork/addressServlet HTTP/1.1" 200 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:15 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:15 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 12 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:21 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 7 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:21 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:25 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:26 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1209 http-bio-8080-exec-7 412 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:35 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-9 3 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-9 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:38 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:43 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:43 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1175 http-bio-8080-exec-9 73 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:55:44 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 64 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:55:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:12 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:12 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 3 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:32 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:32 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 70 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:19 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1106 http-bio-8080-exec-10 64 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:21 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1106 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:40 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-10 66 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:41 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:59:54 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-5 47 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:59:56 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-5 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:00 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 38 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:00 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:02 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:36 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:36 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 9 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:44 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 4 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:44 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 2 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:48 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-7 13 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 264 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:08 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:08 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:04:19 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1192 http-bio-8080-exec-8 48 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:05:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1179 http-bio-8080-exec-8 43 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:05:22 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1179 http-bio-8080-exec-8 42 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:30 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-1 326 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:30 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:36 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 2 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:38 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:43 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:43 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-8 1 diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-06" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-06" new file mode 100644 index 0000000..96549aa --- /dev/null +++ "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-06" @@ -0,0 +1,87 @@ +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:22 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:39 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-6 7 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:39 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-7 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:45 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-8 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-9 21 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:14:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1147 http-bio-8080-exec-1 429 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:15:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-3 46 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:35 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:35 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 11 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:43 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 6 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:43 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:48 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-7 21 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:18:33 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-8 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:18:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-9 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:19:23 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:22 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-10 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:22 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-10 358 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:25 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-4 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-4 45 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:34 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-6 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:01 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:01 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:04 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-4 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:15 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 5 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:15 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 3 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:19 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:20 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-8 368 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:46 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1224 http-bio-8080-exec-2 55 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:22:27 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1242 http-bio-8080-exec-10 41 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:42 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 38 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:44 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-1 49 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:17 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-2 4 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:19 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:20 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:20 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:24 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:24 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-8 3 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:35 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-3 3 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-9 340 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-10 5 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-1 4 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:21 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-2 43 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 39 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:37 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:37 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:38 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:38 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:39 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:12 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 41 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:14 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:36:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1226 http-bio-8080-exec-9 41 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:36:49 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1226 http-bio-8080-exec-9 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:39:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-4 37 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 32 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:52 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:49:03 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1364 http-bio-8080-exec-6 34 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:14 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 27 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:42 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 31 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1269 http-bio-8080-exec-10 31 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 32 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:06 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:52:59 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-1 28 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:00 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-3 8 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:00 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:04 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-5 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2370 http-bio-8080-exec-6 25 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:28 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2804 http-bio-8080-exec-2 344 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1199 http-bio-8080-exec-7 49 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:54:40 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:54:40 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1113 http-bio-8080-exec-10 40 -- Gitee From 02ae4f497a531f4273b3641c2b502bb05e4184bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sun, 6 Nov 2022 02:07:33 +0000 Subject: [PATCH 108/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=BD=97=E9=91=AB/=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/webWork?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webWork/.idea/compiler.xml" | 8 - .../webWork/.idea/jarRepositories.xml" | 20 - .../webWork/.idea/misc.xml" | 19 - .../webWork/.idea/webContexts.xml" | 10 - .../webWork/.idea/workspace.xml" | 101 - .../webWork/pom.xml" | 80 - .../webWork/src/main/webapp/WEB-INF/web.xml" | 6 - .../webWork/src/main/webapp/step1.html" | 35 - .../webWork/src/main/webapp/step2.html" | 44 - .../webWork/src/main/webapp/step3.jsp" | 73 - .../classes/com/web/addressServlet.class" | Bin 1580 -> 0 bytes .../classes/com/web/shopcarServlet.class" | Bin 1623 -> 0 bytes .../target/tomcat/conf/logging.properties" | 64 - .../target/tomcat/conf/tomcat-users.xml" | 26 - .../webWork/target/tomcat/conf/web.xml" | 4283 ----------------- .../target/tomcat/logs/access_log.2022-10-29" | 20 - .../target/tomcat/logs/access_log.2022-10-31" | 50 - .../target/tomcat/logs/access_log.2022-11-01" | 6 - .../target/tomcat/logs/access_log.2022-11-03" | 63 - .../target/tomcat/logs/access_log.2022-11-06" | 87 - 20 files changed, 4995 deletions(-) delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/compiler.xml" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/jarRepositories.xml" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/misc.xml" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/webContexts.xml" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/workspace.xml" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/pom.xml" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/WEB-INF/web.xml" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step1.html" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step2.html" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step3.jsp" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/addressServlet.class" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/shopcarServlet.class" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/logging.properties" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/tomcat-users.xml" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/web.xml" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-29" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-31" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-01" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-03" delete mode 100644 "\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-06" diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/compiler.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/compiler.xml" deleted file mode 100644 index 6e5a203..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/compiler.xml" +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/jarRepositories.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/jarRepositories.xml" deleted file mode 100644 index a468a99..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/jarRepositories.xml" +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/misc.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/misc.xml" deleted file mode 100644 index 149f5ab..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/misc.xml" +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/webContexts.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/webContexts.xml" deleted file mode 100644 index 0c7b27c..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/webContexts.xml" +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/workspace.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/workspace.xml" deleted file mode 100644 index 1483d55..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/workspace.xml" +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1667038653869 - - - - - - \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/pom.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/pom.xml" deleted file mode 100644 index 6c3d706..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/pom.xml" +++ /dev/null @@ -1,80 +0,0 @@ - - - 4.0.0 - - org.example - webWork - 1.0-SNAPSHOT - - pom - - - 8 - 8 - - - - - - - org.mybatis - mybatis - 3.5.5 - - - - - mysql - mysql-connector-java - 8.0.30 - - - - - javax.servlet - javax.servlet-api - 3.1.0 - provided - - - - - - javax.servlet.jsp - jsp-api - 2.2 - provided - - - - - jstl - jstl - 1.2 - - - taglibs - standard - 1.1.2 - - - - - - - - - org.apache.tomcat.maven - tomcat7-maven-plugin - 2.2 - - true - - - - - - - \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/WEB-INF/web.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/WEB-INF/web.xml" deleted file mode 100644 index d80081d..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/WEB-INF/web.xml" +++ /dev/null @@ -1,6 +0,0 @@ - - - \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step1.html" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step1.html" deleted file mode 100644 index f8f1376..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step1.html" +++ /dev/null @@ -1,35 +0,0 @@ - - - - - 购物车 - - -
- -

Step1:选择要购买的书籍

- - - - - - - - - - - - - - - - - - - - - -
书名购买
Java

Oraclecheck

Strutscheck

-
- - \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step2.html" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step2.html" deleted file mode 100644 index 2ab8b4e..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step2.html" +++ /dev/null @@ -1,44 +0,0 @@ - - - - - 订单信息 - - -

请输入寄送地址与信用卡信息

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
基本信息
姓名
寄送地址
信用卡信息
种类Master
Visa
卡号
-
- - \ No newline at end of file diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step3.jsp" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step3.jsp" deleted file mode 100644 index bf53de8..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step3.jsp" +++ /dev/null @@ -1,73 +0,0 @@ -<%-- - Created by IntelliJ IDEA. - User: ɶ - Date: 2022/10/31 - Time: 17:07 - To change this template use File | Settings | File Templates. ---%> -<%@ page language="java" pageEncoding="gb2312"%> -<%@ page contentType="text/html;charset=gb2312"%> -<%@ page import="java.net.URLEncoder" %> -<%@ page import="java.net.URLDecoder" %> - - - - ȷ - - -
- - - <% - request.setCharacterEncoding("utf-8"); - %> - - - <% -// response.setContentType("test/http;charset=UTF-8"); - HttpSession session1 = request.getSession(); - String name = String.valueOf(session1.getAttribute("name")); - String javacheck = (String) session1.getAttribute("javacheck"); - String Oraclecheck = (String) session1.getAttribute("Oraclecheck"); - String Strutscheck = (String) session1.getAttribute("Strutscheck"); - String address = String.valueOf(session1.getAttribute("address")); - String cardcheck = String.valueOf(session1.getAttribute("cardcheck")); - String cardnumber = String.valueOf(session1.getAttribute("cardnumber")); - - %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
˿<%out.write(name);%>
ַ<%URLDecoder.decode(address,"UTF-8");%> - <%out.print(address);%>
Ϣ
ÿ<%out.write(cardcheck);%>
<%out.write(cardnumber);%>
Ŀ
<%out.write(javacheck);%>
<%out.print(Oraclecheck);%>
<%out.print(Strutscheck);%>
-
- - diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/addressServlet.class" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/addressServlet.class" deleted file mode 100644 index 20a9e9433fb8d15794edbbfdf3fc78b48a3ec7b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1580 zcmah}*-{fh6g{17LNb5`L85G;tN}&^7Zw);7phW11q-Y6X)@`8fiM$hI>>MNqJ^1TssuW2>hE$?=ITfz*mylLDP(+mUaZ`&H?^Gplvp6w0n;*0)U0 z4$kpqO6}ObKyTS{_l-}oYM8Z}Cw+fYdWUtX76sBZ_q9|4mGSbfd1xLPe)MGQDAh3D zaEW~@@}MbwwRowU-*6pYE(Tzeo;(m3yEG)qOmf855V#ylT!RsgxgU}bz#Dbb*)}$n zXFJ=Zrp06h+APznSv%6&6UYU&6LyX+KAT~?j=<3QAVUx4%e_3ZWJA&2*YH@wJjJQG z8?MjxXUSJ~AVt^dF3$wm1d5fWqwIaTW&1W2T6P>)nPE18k$o+vK(6NG59o^^= z=s9~j1O_f1iT@m8pshZ!6`?M+YpkuGxE;ATZ#-%O`nFUXrbmgD^aMtu!8j%JMA*4g zS5$*>n}3uY9*=y^9PK~ap3gL%58an)S#h+gO+^95&VX_P$$E8HS}Obxj9$hynq`vp zrBkcOn(Z-Ep!U$SR;F|eO<+MQYK6q~F|tX} zN);Irndu^9A~RED5Y4GV+c9zp{Dn4yJWF<X=PYt4nypwhGC+} zF!DC;(08QOlr`o^@=cp8O?^TBFYp|l5hm#mK@CN2El^quloo?JSt5Z^MkfemoO=hs MPw+SS5yD65H_EwwYXATM diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/shopcarServlet.class" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/shopcarServlet.class" deleted file mode 100644 index 4e7e47818e4bd08a4fcdeaf380135e7b2a4961d5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1623 zcmai!*-{fh6o&uKHd#j0;1(6c1zCcO`vPu=2v(t3LF0v2lSvmDO=jYB2YD@TwD7_Q z@KJmS%YPOFXpoEaobLJiobN1?AHTkR2XGTBMI6FR9%o9pg4sMq@)!+GtAwk#7FyTy zxKX0=RuLv{8@OZOu0Za->$&=&KzeejE|6LDn^NHLs_V&@y-q_0ukA*gC*@V&vDMm%Ot7>T*iKs}k`m8*S|vL}Nu^xh6ByecF;aw%9N*J&OTV&pOQ5*4<;bq) zWo6)=fjNO}(_faXWO3c^1&(~?hHV+%Tk+YDP@q!ldD`vBx~p7vYr*q;ZAZ=o#{WXG z`!B7xva!>-?55rBg`@CSQ%wxvuz`6K_wm5QLp(C@*u(;!m{`P9B88Li)(<{dO3Uu` z*_Q6K4J?^>hGi4SaYEq4;CT@k{r`;oBS>)j#bWfRN3L%@U)yy${(ry8>FDUA7$VE!?pZpP@a##0$sJUa_#nSj5I8=7WU7wy{8u@|zak(F5zYwL zBivbh3O=*bUm-rzNZ}~gTy$7MnYI}VFpOi|Wx^SuD!lxY&hmWLtL4--(kZ;GmNStt zm#LPsv6ZcEBPTGItK`b5E88&App~gm7@OG&l{Bf#Q)kSS3)?8ButPJABBKnUKEyKnUaMIn8QUZ;Syf(VptJ*Bq!_63(o6(37R&lj eMjy&Zpmv8y;WBThn9wAjLxi8=Z~7gCLiIOaj*r~{ diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/logging.properties" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/logging.properties" deleted file mode 100644 index 76c9512..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/logging.properties" +++ /dev/null @@ -1,64 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler - -.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler - -############################################################ -# Handler specific properties. -# Describes specific configuration info for Handlers. -############################################################ - -1catalina.org.apache.juli.FileHandler.level = FINE -1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -1catalina.org.apache.juli.FileHandler.prefix = catalina. - -2localhost.org.apache.juli.FileHandler.level = FINE -2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -2localhost.org.apache.juli.FileHandler.prefix = localhost. - -3manager.org.apache.juli.FileHandler.level = FINE -3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -3manager.org.apache.juli.FileHandler.prefix = manager. - -4host-manager.org.apache.juli.FileHandler.level = FINE -4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -4host-manager.org.apache.juli.FileHandler.prefix = host-manager. - -java.util.logging.ConsoleHandler.level = FINE -java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter - - -############################################################ -# Facility specific properties. -# Provides extra control for each logger. -############################################################ - -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler - -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler - -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler - -# For example, set the org.apache.catalina.util.LifecycleBase logger to log -# each component that extends LifecycleBase changing state: -#org.apache.catalina.util.LifecycleBase.level = FINE - -# To see debug messages in TldLocationsCache, uncomment the following line: -#org.apache.jasper.compiler.TldLocationsCache.level = FINE diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/tomcat-users.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/tomcat-users.xml" deleted file mode 100644 index 7114f5d..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/tomcat-users.xml" +++ /dev/null @@ -1,26 +0,0 @@ - - - - - diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/web.xml" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/web.xml" deleted file mode 100644 index cc8383c..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/web.xml" +++ /dev/null @@ -1,4283 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - default - org.apache.catalina.servlets.DefaultServlet - - debug - 0 - - - listings - false - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jsp - org.apache.jasper.servlet.JspServlet - - fork - false - - - xpoweredBy - false - - 3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - default - / - - - - - jsp - *.jsp - *.jspx - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 30 - - - - - - - - - - - - 123 - application/vnd.lotus-1-2-3 - - - 3dml - text/vnd.in3d.3dml - - - 3g2 - video/3gpp2 - - - 3gp - video/3gpp - - - 7z - application/x-7z-compressed - - - aab - application/x-authorware-bin - - - aac - audio/x-aac - - - aam - application/x-authorware-map - - - aas - application/x-authorware-seg - - - abs - audio/x-mpeg - - - abw - application/x-abiword - - - ac - application/pkix-attr-cert - - - acc - application/vnd.americandynamics.acc - - - ace - application/x-ace-compressed - - - acu - application/vnd.acucobol - - - acutc - application/vnd.acucorp - - - adp - audio/adpcm - - - aep - application/vnd.audiograph - - - afm - application/x-font-type1 - - - afp - application/vnd.ibm.modcap - - - ahead - application/vnd.ahead.space - - - ai - application/postscript - - - aif - audio/x-aiff - - - aifc - audio/x-aiff - - - aiff - audio/x-aiff - - - aim - application/x-aim - - - air - application/vnd.adobe.air-application-installer-package+zip - - - ait - application/vnd.dvb.ait - - - ami - application/vnd.amiga.ami - - - anx - application/annodex - - - apk - application/vnd.android.package-archive - - - application - application/x-ms-application - - - apr - application/vnd.lotus-approach - - - art - image/x-jg - - - asc - application/pgp-signature - - - asf - video/x-ms-asf - - - asm - text/x-asm - - - aso - application/vnd.accpac.simply.aso - - - asx - video/x-ms-asf - - - atc - application/vnd.acucorp - - - atom - application/atom+xml - - - atomcat - application/atomcat+xml - - - atomsvc - application/atomsvc+xml - - - atx - application/vnd.antix.game-component - - - au - audio/basic - - - avi - video/x-msvideo - - - avx - video/x-rad-screenplay - - - aw - application/applixware - - - axa - audio/annodex - - - axv - video/annodex - - - azf - application/vnd.airzip.filesecure.azf - - - azs - application/vnd.airzip.filesecure.azs - - - azw - application/vnd.amazon.ebook - - - bat - application/x-msdownload - - - bcpio - application/x-bcpio - - - bdf - application/x-font-bdf - - - bdm - application/vnd.syncml.dm+wbxml - - - bed - application/vnd.realvnc.bed - - - bh2 - application/vnd.fujitsu.oasysprs - - - bin - application/octet-stream - - - bmi - application/vnd.bmi - - - bmp - image/bmp - - - body - text/html - - - book - application/vnd.framemaker - - - box - application/vnd.previewsystems.box - - - boz - application/x-bzip2 - - - bpk - application/octet-stream - - - btif - image/prs.btif - - - bz - application/x-bzip - - - bz2 - application/x-bzip2 - - - c - text/x-c - - - c11amc - application/vnd.cluetrust.cartomobile-config - - - c11amz - application/vnd.cluetrust.cartomobile-config-pkg - - - c4d - application/vnd.clonk.c4group - - - c4f - application/vnd.clonk.c4group - - - c4g - application/vnd.clonk.c4group - - - c4p - application/vnd.clonk.c4group - - - c4u - application/vnd.clonk.c4group - - - cab - application/vnd.ms-cab-compressed - - - cap - application/vnd.tcpdump.pcap - - - car - application/vnd.curl.car - - - cat - application/vnd.ms-pki.seccat - - - cc - text/x-c - - - cct - application/x-director - - - ccxml - application/ccxml+xml - - - cdbcmsg - application/vnd.contact.cmsg - - - cdf - application/x-cdf - - - cdkey - application/vnd.mediastation.cdkey - - - cdmia - application/cdmi-capability - - - cdmic - application/cdmi-container - - - cdmid - application/cdmi-domain - - - cdmio - application/cdmi-object - - - cdmiq - application/cdmi-queue - - - cdx - chemical/x-cdx - - - cdxml - application/vnd.chemdraw+xml - - - cdy - application/vnd.cinderella - - - cer - application/pkix-cert - - - cgm - image/cgm - - - chat - application/x-chat - - - chm - application/vnd.ms-htmlhelp - - - chrt - application/vnd.kde.kchart - - - cif - chemical/x-cif - - - cii - application/vnd.anser-web-certificate-issue-initiation - - - cil - application/vnd.ms-artgalry - - - cla - application/vnd.claymore - - - class - application/java - - - clkk - application/vnd.crick.clicker.keyboard - - - clkp - application/vnd.crick.clicker.palette - - - clkt - application/vnd.crick.clicker.template - - - clkw - application/vnd.crick.clicker.wordbank - - - clkx - application/vnd.crick.clicker - - - clp - application/x-msclip - - - cmc - application/vnd.cosmocaller - - - cmdf - chemical/x-cmdf - - - cml - chemical/x-cml - - - cmp - application/vnd.yellowriver-custom-menu - - - cmx - image/x-cmx - - - cod - application/vnd.rim.cod - - - com - application/x-msdownload - - - conf - text/plain - - - cpio - application/x-cpio - - - cpp - text/x-c - - - cpt - application/mac-compactpro - - - crd - application/x-mscardfile - - - crl - application/pkix-crl - - - crt - application/x-x509-ca-cert - - - cryptonote - application/vnd.rig.cryptonote - - - csh - application/x-csh - - - csml - chemical/x-csml - - - csp - application/vnd.commonspace - - - css - text/css - - - cst - application/x-director - - - csv - text/csv - - - cu - application/cu-seeme - - - curl - text/vnd.curl - - - cww - application/prs.cww - - - cxt - application/x-director - - - cxx - text/x-c - - - dae - model/vnd.collada+xml - - - daf - application/vnd.mobius.daf - - - dataless - application/vnd.fdsn.seed - - - davmount - application/davmount+xml - - - dcr - application/x-director - - - dcurl - text/vnd.curl.dcurl - - - dd2 - application/vnd.oma.dd2+xml - - - ddd - application/vnd.fujixerox.ddd - - - deb - application/x-debian-package - - - def - text/plain - - - deploy - application/octet-stream - - - der - application/x-x509-ca-cert - - - dfac - application/vnd.dreamfactory - - - dib - image/bmp - - - dic - text/x-c - - - dir - application/x-director - - - dis - application/vnd.mobius.dis - - - dist - application/octet-stream - - - distz - application/octet-stream - - - djv - image/vnd.djvu - - - djvu - image/vnd.djvu - - - dll - application/x-msdownload - - - dmg - application/octet-stream - - - dmp - application/vnd.tcpdump.pcap - - - dms - application/octet-stream - - - dna - application/vnd.dna - - - doc - application/msword - - - docm - application/vnd.ms-word.document.macroenabled.12 - - - docx - application/vnd.openxmlformats-officedocument.wordprocessingml.document - - - dot - application/msword - - - dotm - application/vnd.ms-word.template.macroenabled.12 - - - dotx - application/vnd.openxmlformats-officedocument.wordprocessingml.template - - - dp - application/vnd.osgi.dp - - - dpg - application/vnd.dpgraph - - - dra - audio/vnd.dra - - - dsc - text/prs.lines.tag - - - dssc - application/dssc+der - - - dtb - application/x-dtbook+xml - - - dtd - application/xml-dtd - - - dts - audio/vnd.dts - - - dtshd - audio/vnd.dts.hd - - - dump - application/octet-stream - - - dv - video/x-dv - - - dvb - video/vnd.dvb.file - - - dvi - application/x-dvi - - - dwf - model/vnd.dwf - - - dwg - image/vnd.dwg - - - dxf - image/vnd.dxf - - - dxp - application/vnd.spotfire.dxp - - - dxr - application/x-director - - - ecelp4800 - audio/vnd.nuera.ecelp4800 - - - ecelp7470 - audio/vnd.nuera.ecelp7470 - - - ecelp9600 - audio/vnd.nuera.ecelp9600 - - - ecma - application/ecmascript - - - edm - application/vnd.novadigm.edm - - - edx - application/vnd.novadigm.edx - - - efif - application/vnd.picsel - - - ei6 - application/vnd.pg.osasli - - - elc - application/octet-stream - - - eml - message/rfc822 - - - emma - application/emma+xml - - - eol - audio/vnd.digital-winds - - - eot - application/vnd.ms-fontobject - - - eps - application/postscript - - - epub - application/epub+zip - - - es3 - application/vnd.eszigno3+xml - - - esf - application/vnd.epson.esf - - - et3 - application/vnd.eszigno3+xml - - - etx - text/x-setext - - - exe - application/octet-stream - - - exi - application/exi - - - ext - application/vnd.novadigm.ext - - - ez - application/andrew-inset - - - ez2 - application/vnd.ezpix-album - - - ez3 - application/vnd.ezpix-package - - - f - text/x-fortran - - - f4v - video/x-f4v - - - f77 - text/x-fortran - - - f90 - text/x-fortran - - - fbs - image/vnd.fastbidsheet - - - fcs - application/vnd.isac.fcs - - - fdf - application/vnd.fdf - - - fe_launch - application/vnd.denovo.fcselayout-link - - - fg5 - application/vnd.fujitsu.oasysgp - - - fgd - application/x-director - - - fh - image/x-freehand - - - fh4 - image/x-freehand - - - fh5 - image/x-freehand - - - fh7 - image/x-freehand - - - fhc - image/x-freehand - - - fig - application/x-xfig - - - flac - audio/flac - - - fli - video/x-fli - - - flo - application/vnd.micrografx.flo - - - flv - video/x-flv - - - flw - application/vnd.kde.kivio - - - flx - text/vnd.fmi.flexstor - - - fly - text/vnd.fly - - - fm - application/vnd.framemaker - - - fnc - application/vnd.frogans.fnc - - - for - text/x-fortran - - - fpx - image/vnd.fpx - - - frame - application/vnd.framemaker - - - fsc - application/vnd.fsc.weblaunch - - - fst - image/vnd.fst - - - ftc - application/vnd.fluxtime.clip - - - fti - application/vnd.anser-web-funds-transfer-initiation - - - fvt - video/vnd.fvt - - - fxp - application/vnd.adobe.fxp - - - fxpl - application/vnd.adobe.fxp - - - fzs - application/vnd.fuzzysheet - - - g2w - application/vnd.geoplan - - - g3 - image/g3fax - - - g3w - application/vnd.geospace - - - gac - application/vnd.groove-account - - - gbr - application/rpki-ghostbusters - - - gdl - model/vnd.gdl - - - geo - application/vnd.dynageo - - - gex - application/vnd.geometry-explorer - - - ggb - application/vnd.geogebra.file - - - ggt - application/vnd.geogebra.tool - - - ghf - application/vnd.groove-help - - - gif - image/gif - - - gim - application/vnd.groove-identity-message - - - gmx - application/vnd.gmx - - - gnumeric - application/x-gnumeric - - - gph - application/vnd.flographit - - - gqf - application/vnd.grafeq - - - gqs - application/vnd.grafeq - - - gram - application/srgs - - - gre - application/vnd.geometry-explorer - - - grv - application/vnd.groove-injector - - - grxml - application/srgs+xml - - - gsf - application/x-font-ghostscript - - - gtar - application/x-gtar - - - gtm - application/vnd.groove-tool-message - - - gtw - model/vnd.gtw - - - gv - text/vnd.graphviz - - - gxt - application/vnd.geonext - - - gz - application/x-gzip - - - h - text/x-c - - - h261 - video/h261 - - - h263 - video/h263 - - - h264 - video/h264 - - - hal - application/vnd.hal+xml - - - hbci - application/vnd.hbci - - - hdf - application/x-hdf - - - hh - text/x-c - - - hlp - application/winhlp - - - hpgl - application/vnd.hp-hpgl - - - hpid - application/vnd.hp-hpid - - - hps - application/vnd.hp-hps - - - hqx - application/mac-binhex40 - - - htc - text/x-component - - - htke - application/vnd.kenameaapp - - - htm - text/html - - - html - text/html - - - hvd - application/vnd.yamaha.hv-dic - - - hvp - application/vnd.yamaha.hv-voice - - - hvs - application/vnd.yamaha.hv-script - - - i2g - application/vnd.intergeo - - - icc - application/vnd.iccprofile - - - ice - x-conference/x-cooltalk - - - icm - application/vnd.iccprofile - - - ico - image/x-icon - - - ics - text/calendar - - - ief - image/ief - - - ifb - text/calendar - - - ifm - application/vnd.shana.informed.formdata - - - iges - model/iges - - - igl - application/vnd.igloader - - - igm - application/vnd.insors.igm - - - igs - model/iges - - - igx - application/vnd.micrografx.igx - - - iif - application/vnd.shana.informed.interchange - - - imp - application/vnd.accpac.simply.imp - - - ims - application/vnd.ms-ims - - - in - text/plain - - - ink - application/inkml+xml - - - inkml - application/inkml+xml - - - iota - application/vnd.astraea-software.iota - - - ipfix - application/ipfix - - - ipk - application/vnd.shana.informed.package - - - irm - application/vnd.ibm.rights-management - - - irp - application/vnd.irepository.package+xml - - - iso - application/octet-stream - - - itp - application/vnd.shana.informed.formtemplate - - - ivp - application/vnd.immervision-ivp - - - ivu - application/vnd.immervision-ivu - - - jad - text/vnd.sun.j2me.app-descriptor - - - jam - application/vnd.jam - - - jar - application/java-archive - - - java - text/x-java-source - - - jisp - application/vnd.jisp - - - jlt - application/vnd.hp-jlyt - - - jnlp - application/x-java-jnlp-file - - - joda - application/vnd.joost.joda-archive - - - jpe - image/jpeg - - - jpeg - image/jpeg - - - jpg - image/jpeg - - - jpgm - video/jpm - - - jpgv - video/jpeg - - - jpm - video/jpm - - - js - application/javascript - - - jsf - text/plain - - - json - application/json - - - jspf - text/plain - - - kar - audio/midi - - - karbon - application/vnd.kde.karbon - - - kfo - application/vnd.kde.kformula - - - kia - application/vnd.kidspiration - - - kml - application/vnd.google-earth.kml+xml - - - kmz - application/vnd.google-earth.kmz - - - kne - application/vnd.kinar - - - knp - application/vnd.kinar - - - kon - application/vnd.kde.kontour - - - kpr - application/vnd.kde.kpresenter - - - kpt - application/vnd.kde.kpresenter - - - ksp - application/vnd.kde.kspread - - - ktr - application/vnd.kahootz - - - ktx - image/ktx - - - ktz - application/vnd.kahootz - - - kwd - application/vnd.kde.kword - - - kwt - application/vnd.kde.kword - - - lasxml - application/vnd.las.las+xml - - - latex - application/x-latex - - - lbd - application/vnd.llamagraphics.life-balance.desktop - - - lbe - application/vnd.llamagraphics.life-balance.exchange+xml - - - les - application/vnd.hhe.lesson-player - - - lha - application/octet-stream - - - link66 - application/vnd.route66.link66+xml - - - list - text/plain - - - list3820 - application/vnd.ibm.modcap - - - listafp - application/vnd.ibm.modcap - - - log - text/plain - - - lostxml - application/lost+xml - - - lrf - application/octet-stream - - - lrm - application/vnd.ms-lrm - - - ltf - application/vnd.frogans.ltf - - - lvp - audio/vnd.lucent.voice - - - lwp - application/vnd.lotus-wordpro - - - lzh - application/octet-stream - - - m13 - application/x-msmediaview - - - m14 - application/x-msmediaview - - - m1v - video/mpeg - - - m21 - application/mp21 - - - m2a - audio/mpeg - - - m2v - video/mpeg - - - m3a - audio/mpeg - - - m3u - audio/x-mpegurl - - - m3u8 - application/vnd.apple.mpegurl - - - m4a - audio/mp4 - - - m4b - audio/mp4 - - - m4r - audio/mp4 - - - m4u - video/vnd.mpegurl - - - m4v - video/mp4 - - - ma - application/mathematica - - - mac - image/x-macpaint - - - mads - application/mads+xml - - - mag - application/vnd.ecowin.chart - - - maker - application/vnd.framemaker - - - man - text/troff - - - mathml - application/mathml+xml - - - mb - application/mathematica - - - mbk - application/vnd.mobius.mbk - - - mbox - application/mbox - - - mc1 - application/vnd.medcalcdata - - - mcd - application/vnd.mcd - - - mcurl - text/vnd.curl.mcurl - - - mdb - application/x-msaccess - - - mdi - image/vnd.ms-modi - - - me - text/troff - - - mesh - model/mesh - - - meta4 - application/metalink4+xml - - - mets - application/mets+xml - - - mfm - application/vnd.mfmp - - - mft - application/rpki-manifest - - - mgp - application/vnd.osgeo.mapguide.package - - - mgz - application/vnd.proteus.magazine - - - mid - audio/midi - - - midi - audio/midi - - - mif - application/x-mif - - - mime - message/rfc822 - - - mj2 - video/mj2 - - - mjp2 - video/mj2 - - - mlp - application/vnd.dolby.mlp - - - mmd - application/vnd.chipnuts.karaoke-mmd - - - mmf - application/vnd.smaf - - - mmr - image/vnd.fujixerox.edmics-mmr - - - mny - application/x-msmoney - - - mobi - application/x-mobipocket-ebook - - - mods - application/mods+xml - - - mov - video/quicktime - - - movie - video/x-sgi-movie - - - mp1 - audio/mpeg - - - mp2 - audio/mpeg - - - mp21 - application/mp21 - - - mp2a - audio/mpeg - - - mp3 - audio/mpeg - - - mp4 - video/mp4 - - - mp4a - audio/mp4 - - - mp4s - application/mp4 - - - mp4v - video/mp4 - - - mpa - audio/mpeg - - - mpc - application/vnd.mophun.certificate - - - mpe - video/mpeg - - - mpeg - video/mpeg - - - mpega - audio/x-mpeg - - - mpg - video/mpeg - - - mpg4 - video/mp4 - - - mpga - audio/mpeg - - - mpkg - application/vnd.apple.installer+xml - - - mpm - application/vnd.blueice.multipass - - - mpn - application/vnd.mophun.application - - - mpp - application/vnd.ms-project - - - mpt - application/vnd.ms-project - - - mpv2 - video/mpeg2 - - - mpy - application/vnd.ibm.minipay - - - mqy - application/vnd.mobius.mqy - - - mrc - application/marc - - - mrcx - application/marcxml+xml - - - ms - text/troff - - - mscml - application/mediaservercontrol+xml - - - mseed - application/vnd.fdsn.mseed - - - mseq - application/vnd.mseq - - - msf - application/vnd.epson.msf - - - msh - model/mesh - - - msi - application/x-msdownload - - - msl - application/vnd.mobius.msl - - - msty - application/vnd.muvee.style - - - mts - model/vnd.mts - - - mus - application/vnd.musician - - - musicxml - application/vnd.recordare.musicxml+xml - - - mvb - application/x-msmediaview - - - mwf - application/vnd.mfer - - - mxf - application/mxf - - - mxl - application/vnd.recordare.musicxml - - - mxml - application/xv+xml - - - mxs - application/vnd.triscape.mxs - - - mxu - video/vnd.mpegurl - - - n-gage - application/vnd.nokia.n-gage.symbian.install - - - n3 - text/n3 - - - nb - application/mathematica - - - nbp - application/vnd.wolfram.player - - - nc - application/x-netcdf - - - ncx - application/x-dtbncx+xml - - - ngdat - application/vnd.nokia.n-gage.data - - - nlu - application/vnd.neurolanguage.nlu - - - nml - application/vnd.enliven - - - nnd - application/vnd.noblenet-directory - - - nns - application/vnd.noblenet-sealer - - - nnw - application/vnd.noblenet-web - - - npx - image/vnd.net-fpx - - - nsf - application/vnd.lotus-notes - - - oa2 - application/vnd.fujitsu.oasys2 - - - oa3 - application/vnd.fujitsu.oasys3 - - - oas - application/vnd.fujitsu.oasys - - - obd - application/x-msbinder - - - oda - application/oda - - - - odb - application/vnd.oasis.opendocument.database - - - - odc - application/vnd.oasis.opendocument.chart - - - - odf - application/vnd.oasis.opendocument.formula - - - odft - application/vnd.oasis.opendocument.formula-template - - - - odg - application/vnd.oasis.opendocument.graphics - - - - odi - application/vnd.oasis.opendocument.image - - - - odm - application/vnd.oasis.opendocument.text-master - - - - odp - application/vnd.oasis.opendocument.presentation - - - - ods - application/vnd.oasis.opendocument.spreadsheet - - - - odt - application/vnd.oasis.opendocument.text - - - oga - audio/ogg - - - ogg - audio/ogg - - - ogv - video/ogg - - - - ogx - application/ogg - - - onepkg - application/onenote - - - onetmp - application/onenote - - - onetoc - application/onenote - - - onetoc2 - application/onenote - - - opf - application/oebps-package+xml - - - oprc - application/vnd.palm - - - org - application/vnd.lotus-organizer - - - osf - application/vnd.yamaha.openscoreformat - - - osfpvg - application/vnd.yamaha.openscoreformat.osfpvg+xml - - - otc - application/vnd.oasis.opendocument.chart-template - - - otf - application/x-font-otf - - - - otg - application/vnd.oasis.opendocument.graphics-template - - - - oth - application/vnd.oasis.opendocument.text-web - - - oti - application/vnd.oasis.opendocument.image-template - - - - otp - application/vnd.oasis.opendocument.presentation-template - - - - ots - application/vnd.oasis.opendocument.spreadsheet-template - - - - ott - application/vnd.oasis.opendocument.text-template - - - oxps - application/oxps - - - oxt - application/vnd.openofficeorg.extension - - - p - text/x-pascal - - - p10 - application/pkcs10 - - - p12 - application/x-pkcs12 - - - p7b - application/x-pkcs7-certificates - - - p7c - application/pkcs7-mime - - - p7m - application/pkcs7-mime - - - p7r - application/x-pkcs7-certreqresp - - - p7s - application/pkcs7-signature - - - p8 - application/pkcs8 - - - pas - text/x-pascal - - - paw - application/vnd.pawaafile - - - pbd - application/vnd.powerbuilder6 - - - pbm - image/x-portable-bitmap - - - pcap - application/vnd.tcpdump.pcap - - - pcf - application/x-font-pcf - - - pcl - application/vnd.hp-pcl - - - pclxl - application/vnd.hp-pclxl - - - pct - image/pict - - - pcurl - application/vnd.curl.pcurl - - - pcx - image/x-pcx - - - pdb - application/vnd.palm - - - pdf - application/pdf - - - pfa - application/x-font-type1 - - - pfb - application/x-font-type1 - - - pfm - application/x-font-type1 - - - pfr - application/font-tdpfr - - - pfx - application/x-pkcs12 - - - pgm - image/x-portable-graymap - - - pgn - application/x-chess-pgn - - - pgp - application/pgp-encrypted - - - pic - image/pict - - - pict - image/pict - - - pkg - application/octet-stream - - - pki - application/pkixcmp - - - pkipath - application/pkix-pkipath - - - plb - application/vnd.3gpp.pic-bw-large - - - plc - application/vnd.mobius.plc - - - plf - application/vnd.pocketlearn - - - pls - audio/x-scpls - - - pml - application/vnd.ctc-posml - - - png - image/png - - - pnm - image/x-portable-anymap - - - pnt - image/x-macpaint - - - portpkg - application/vnd.macports.portpkg - - - pot - application/vnd.ms-powerpoint - - - potm - application/vnd.ms-powerpoint.template.macroenabled.12 - - - potx - application/vnd.openxmlformats-officedocument.presentationml.template - - - ppam - application/vnd.ms-powerpoint.addin.macroenabled.12 - - - ppd - application/vnd.cups-ppd - - - ppm - image/x-portable-pixmap - - - pps - application/vnd.ms-powerpoint - - - ppsm - application/vnd.ms-powerpoint.slideshow.macroenabled.12 - - - ppsx - application/vnd.openxmlformats-officedocument.presentationml.slideshow - - - ppt - application/vnd.ms-powerpoint - - - pptm - application/vnd.ms-powerpoint.presentation.macroenabled.12 - - - pptx - application/vnd.openxmlformats-officedocument.presentationml.presentation - - - pqa - application/vnd.palm - - - prc - application/x-mobipocket-ebook - - - pre - application/vnd.lotus-freelance - - - prf - application/pics-rules - - - ps - application/postscript - - - psb - application/vnd.3gpp.pic-bw-small - - - psd - image/vnd.adobe.photoshop - - - psf - application/x-font-linux-psf - - - pskcxml - application/pskc+xml - - - ptid - application/vnd.pvi.ptid1 - - - pub - application/x-mspublisher - - - pvb - application/vnd.3gpp.pic-bw-var - - - pwn - application/vnd.3m.post-it-notes - - - pya - audio/vnd.ms-playready.media.pya - - - pyv - video/vnd.ms-playready.media.pyv - - - qam - application/vnd.epson.quickanime - - - qbo - application/vnd.intu.qbo - - - qfx - application/vnd.intu.qfx - - - qps - application/vnd.publishare-delta-tree - - - qt - video/quicktime - - - qti - image/x-quicktime - - - qtif - image/x-quicktime - - - qwd - application/vnd.quark.quarkxpress - - - qwt - application/vnd.quark.quarkxpress - - - qxb - application/vnd.quark.quarkxpress - - - qxd - application/vnd.quark.quarkxpress - - - qxl - application/vnd.quark.quarkxpress - - - qxt - application/vnd.quark.quarkxpress - - - ra - audio/x-pn-realaudio - - - ram - audio/x-pn-realaudio - - - rar - application/x-rar-compressed - - - ras - image/x-cmu-raster - - - rcprofile - application/vnd.ipunplugged.rcprofile - - - rdf - application/rdf+xml - - - rdz - application/vnd.data-vision.rdz - - - rep - application/vnd.businessobjects - - - res - application/x-dtbresource+xml - - - rgb - image/x-rgb - - - rif - application/reginfo+xml - - - rip - audio/vnd.rip - - - rl - application/resource-lists+xml - - - rlc - image/vnd.fujixerox.edmics-rlc - - - rld - application/resource-lists-diff+xml - - - rm - application/vnd.rn-realmedia - - - rmi - audio/midi - - - rmp - audio/x-pn-realaudio-plugin - - - rms - application/vnd.jcp.javame.midlet-rms - - - rnc - application/relax-ng-compact-syntax - - - roa - application/rpki-roa - - - roff - text/troff - - - rp9 - application/vnd.cloanto.rp9 - - - rpss - application/vnd.nokia.radio-presets - - - rpst - application/vnd.nokia.radio-preset - - - rq - application/sparql-query - - - rs - application/rls-services+xml - - - rsd - application/rsd+xml - - - rss - application/rss+xml - - - rtf - application/rtf - - - rtx - text/richtext - - - s - text/x-asm - - - saf - application/vnd.yamaha.smaf-audio - - - sbml - application/sbml+xml - - - sc - application/vnd.ibm.secure-container - - - scd - application/x-msschedule - - - scm - application/vnd.lotus-screencam - - - scq - application/scvp-cv-request - - - scs - application/scvp-cv-response - - - scurl - text/vnd.curl.scurl - - - sda - application/vnd.stardivision.draw - - - sdc - application/vnd.stardivision.calc - - - sdd - application/vnd.stardivision.impress - - - sdkd - application/vnd.solent.sdkm+xml - - - sdkm - application/vnd.solent.sdkm+xml - - - sdp - application/sdp - - - sdw - application/vnd.stardivision.writer - - - see - application/vnd.seemail - - - seed - application/vnd.fdsn.seed - - - sema - application/vnd.sema - - - semd - application/vnd.semd - - - semf - application/vnd.semf - - - ser - application/java-serialized-object - - - setpay - application/set-payment-initiation - - - setreg - application/set-registration-initiation - - - sfd-hdstx - application/vnd.hydrostatix.sof-data - - - sfs - application/vnd.spotfire.sfs - - - sgl - application/vnd.stardivision.writer-global - - - sgm - text/sgml - - - sgml - text/sgml - - - sh - application/x-sh - - - shar - application/x-shar - - - shf - application/shf+xml - - - - sig - application/pgp-signature - - - silo - model/mesh - - - sis - application/vnd.symbian.install - - - sisx - application/vnd.symbian.install - - - sit - application/x-stuffit - - - sitx - application/x-stuffitx - - - skd - application/vnd.koan - - - skm - application/vnd.koan - - - skp - application/vnd.koan - - - skt - application/vnd.koan - - - sldm - application/vnd.ms-powerpoint.slide.macroenabled.12 - - - sldx - application/vnd.openxmlformats-officedocument.presentationml.slide - - - slt - application/vnd.epson.salt - - - sm - application/vnd.stepmania.stepchart - - - smf - application/vnd.stardivision.math - - - smi - application/smil+xml - - - smil - application/smil+xml - - - smzip - application/vnd.stepmania.package - - - snd - audio/basic - - - snf - application/x-font-snf - - - so - application/octet-stream - - - spc - application/x-pkcs7-certificates - - - spf - application/vnd.yamaha.smaf-phrase - - - spl - application/x-futuresplash - - - spot - text/vnd.in3d.spot - - - spp - application/scvp-vp-response - - - spq - application/scvp-vp-request - - - spx - audio/ogg - - - src - application/x-wais-source - - - sru - application/sru+xml - - - srx - application/sparql-results+xml - - - sse - application/vnd.kodak-descriptor - - - ssf - application/vnd.epson.ssf - - - ssml - application/ssml+xml - - - st - application/vnd.sailingtracker.track - - - stc - application/vnd.sun.xml.calc.template - - - std - application/vnd.sun.xml.draw.template - - - stf - application/vnd.wt.stf - - - sti - application/vnd.sun.xml.impress.template - - - stk - application/hyperstudio - - - stl - application/vnd.ms-pki.stl - - - str - application/vnd.pg.format - - - stw - application/vnd.sun.xml.writer.template - - - sub - text/vnd.dvb.subtitle - - - sus - application/vnd.sus-calendar - - - susp - application/vnd.sus-calendar - - - sv4cpio - application/x-sv4cpio - - - sv4crc - application/x-sv4crc - - - svc - application/vnd.dvb.service - - - svd - application/vnd.svd - - - svg - image/svg+xml - - - svgz - image/svg+xml - - - swa - application/x-director - - - swf - application/x-shockwave-flash - - - swi - application/vnd.aristanetworks.swi - - - sxc - application/vnd.sun.xml.calc - - - sxd - application/vnd.sun.xml.draw - - - sxg - application/vnd.sun.xml.writer.global - - - sxi - application/vnd.sun.xml.impress - - - sxm - application/vnd.sun.xml.math - - - sxw - application/vnd.sun.xml.writer - - - t - text/troff - - - taglet - application/vnd.mynfc - - - tao - application/vnd.tao.intent-module-archive - - - tar - application/x-tar - - - tcap - application/vnd.3gpp2.tcap - - - tcl - application/x-tcl - - - teacher - application/vnd.smart.teacher - - - tei - application/tei+xml - - - teicorpus - application/tei+xml - - - tex - application/x-tex - - - texi - application/x-texinfo - - - texinfo - application/x-texinfo - - - text - text/plain - - - tfi - application/thraud+xml - - - tfm - application/x-tex-tfm - - - thmx - application/vnd.ms-officetheme - - - tif - image/tiff - - - tiff - image/tiff - - - tmo - application/vnd.tmobile-livetv - - - torrent - application/x-bittorrent - - - tpl - application/vnd.groove-tool-template - - - tpt - application/vnd.trid.tpt - - - tr - text/troff - - - tra - application/vnd.trueapp - - - trm - application/x-msterminal - - - tsd - application/timestamped-data - - - tsv - text/tab-separated-values - - - ttc - application/x-font-ttf - - - ttf - application/x-font-ttf - - - ttl - text/turtle - - - twd - application/vnd.simtech-mindmapper - - - twds - application/vnd.simtech-mindmapper - - - txd - application/vnd.genomatix.tuxedo - - - txf - application/vnd.mobius.txf - - - txt - text/plain - - - u32 - application/x-authorware-bin - - - udeb - application/x-debian-package - - - ufd - application/vnd.ufdl - - - ufdl - application/vnd.ufdl - - - ulw - audio/basic - - - umj - application/vnd.umajin - - - unityweb - application/vnd.unity - - - uoml - application/vnd.uoml+xml - - - uri - text/uri-list - - - uris - text/uri-list - - - urls - text/uri-list - - - ustar - application/x-ustar - - - utz - application/vnd.uiq.theme - - - uu - text/x-uuencode - - - uva - audio/vnd.dece.audio - - - uvd - application/vnd.dece.data - - - uvf - application/vnd.dece.data - - - uvg - image/vnd.dece.graphic - - - uvh - video/vnd.dece.hd - - - uvi - image/vnd.dece.graphic - - - uvm - video/vnd.dece.mobile - - - uvp - video/vnd.dece.pd - - - uvs - video/vnd.dece.sd - - - uvt - application/vnd.dece.ttml+xml - - - uvu - video/vnd.uvvu.mp4 - - - uvv - video/vnd.dece.video - - - uvva - audio/vnd.dece.audio - - - uvvd - application/vnd.dece.data - - - uvvf - application/vnd.dece.data - - - uvvg - image/vnd.dece.graphic - - - uvvh - video/vnd.dece.hd - - - uvvi - image/vnd.dece.graphic - - - uvvm - video/vnd.dece.mobile - - - uvvp - video/vnd.dece.pd - - - uvvs - video/vnd.dece.sd - - - uvvt - application/vnd.dece.ttml+xml - - - uvvu - video/vnd.uvvu.mp4 - - - uvvv - video/vnd.dece.video - - - uvvx - application/vnd.dece.unspecified - - - uvvz - application/vnd.dece.zip - - - uvx - application/vnd.dece.unspecified - - - uvz - application/vnd.dece.zip - - - vcard - text/vcard - - - vcd - application/x-cdlink - - - vcf - text/x-vcard - - - vcg - application/vnd.groove-vcard - - - vcs - text/x-vcalendar - - - vcx - application/vnd.vcx - - - vis - application/vnd.visionary - - - viv - video/vnd.vivo - - - vor - application/vnd.stardivision.writer - - - vox - application/x-authorware-bin - - - vrml - model/vrml - - - vsd - application/vnd.visio - - - vsf - application/vnd.vsf - - - vss - application/vnd.visio - - - vst - application/vnd.visio - - - vsw - application/vnd.visio - - - vtu - model/vnd.vtu - - - vxml - application/voicexml+xml - - - w3d - application/x-director - - - wad - application/x-doom - - - wav - audio/x-wav - - - wax - audio/x-ms-wax - - - - wbmp - image/vnd.wap.wbmp - - - wbs - application/vnd.criticaltools.wbs+xml - - - wbxml - application/vnd.wap.wbxml - - - wcm - application/vnd.ms-works - - - wdb - application/vnd.ms-works - - - weba - audio/webm - - - webm - video/webm - - - webp - image/webp - - - wg - application/vnd.pmi.widget - - - wgt - application/widget - - - wks - application/vnd.ms-works - - - wm - video/x-ms-wm - - - wma - audio/x-ms-wma - - - wmd - application/x-ms-wmd - - - wmf - application/x-msmetafile - - - - wml - text/vnd.wap.wml - - - - wmlc - application/vnd.wap.wmlc - - - - wmls - text/vnd.wap.wmlscript - - - - wmlsc - application/vnd.wap.wmlscriptc - - - wmv - video/x-ms-wmv - - - wmx - video/x-ms-wmx - - - wmz - application/x-ms-wmz - - - woff - application/x-font-woff - - - wpd - application/vnd.wordperfect - - - wpl - application/vnd.ms-wpl - - - wps - application/vnd.ms-works - - - wqd - application/vnd.wqd - - - wri - application/x-mswrite - - - wrl - model/vrml - - - wsdl - application/wsdl+xml - - - wspolicy - application/wspolicy+xml - - - wtb - application/vnd.webturbo - - - wvx - video/x-ms-wvx - - - x32 - application/x-authorware-bin - - - x3d - application/vnd.hzn-3d-crossword - - - xap - application/x-silverlight-app - - - xar - application/vnd.xara - - - xbap - application/x-ms-xbap - - - xbd - application/vnd.fujixerox.docuworks.binder - - - xbm - image/x-xbitmap - - - xdf - application/xcap-diff+xml - - - xdm - application/vnd.syncml.dm+xml - - - xdp - application/vnd.adobe.xdp+xml - - - xdssc - application/dssc+xml - - - xdw - application/vnd.fujixerox.docuworks - - - xenc - application/xenc+xml - - - xer - application/patch-ops-error+xml - - - xfdf - application/vnd.adobe.xfdf - - - xfdl - application/vnd.xfdl - - - xht - application/xhtml+xml - - - xhtml - application/xhtml+xml - - - xhvml - application/xv+xml - - - xif - image/vnd.xiff - - - xla - application/vnd.ms-excel - - - xlam - application/vnd.ms-excel.addin.macroenabled.12 - - - xlc - application/vnd.ms-excel - - - xlm - application/vnd.ms-excel - - - xls - application/vnd.ms-excel - - - xlsb - application/vnd.ms-excel.sheet.binary.macroenabled.12 - - - xlsm - application/vnd.ms-excel.sheet.macroenabled.12 - - - xlsx - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - - - xlt - application/vnd.ms-excel - - - xltm - application/vnd.ms-excel.template.macroenabled.12 - - - xltx - application/vnd.openxmlformats-officedocument.spreadsheetml.template - - - xlw - application/vnd.ms-excel - - - xml - application/xml - - - xo - application/vnd.olpc-sugar - - - xop - application/xop+xml - - - xpi - application/x-xpinstall - - - xpm - image/x-xpixmap - - - xpr - application/vnd.is-xpr - - - xps - application/vnd.ms-xpsdocument - - - xpw - application/vnd.intercon.formnet - - - xpx - application/vnd.intercon.formnet - - - xsl - application/xml - - - xslt - application/xslt+xml - - - xsm - application/vnd.syncml+xml - - - xspf - application/xspf+xml - - - xul - application/vnd.mozilla.xul+xml - - - xvm - application/xv+xml - - - xvml - application/xv+xml - - - xwd - image/x-xwindowdump - - - xyz - chemical/x-xyz - - - yang - application/yang - - - yin - application/yin+xml - - - z - application/x-compress - - - Z - application/x-compress - - - zaz - application/vnd.zzazz.deck+xml - - - zip - application/zip - - - zir - application/vnd.zul - - - zirz - application/vnd.zul - - - zmm - application/vnd.handheld-entertainment+xml - - - - - - - - - - - - - - - - - - index.html - index.htm - index.jsp - - - diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-29" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-29" deleted file mode 100644 index 5f3a7d0..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-29" +++ /dev/null @@ -1,20 +0,0 @@ -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:54:08 +0800] "GET /brand-demo HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:30 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:30 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 7 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:55 +0800] "GET /webWork/step1.html HTTP/1.1" 200 994 http-bio-8080-exec-4 1 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:54 +0800] "GET /webWork/step1.html HTTP/1.1" 200 994 http-bio-8080-exec-5 5 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:55 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:57 +0800] "POST /src/main/webapp HTTP/1.1" 404 - http-bio-8080-exec-8 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:00:13 +0800] "POST /src/main/webapp HTTP/1.1" 404 - http-bio-8080-exec-9 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:19 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:19 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 7 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:30 +0800] "GET /webWork/step1.html HTTP/1.1" 200 975 http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:55 +0800] "GET /webWork/step1.html HTTP/1.1" 200 975 http-bio-8080-exec-5 1 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:58 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-6 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:41 +0800] "GET /login-test/loginServlet HTTP/1.1" 404 - http-bio-8080-exec-7 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:47 +0800] "GET /webWork/step1.html HTTP/1.1" 200 988 http-bio-8080-exec-9 2 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:52 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-10 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:39 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:39 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:45 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:48 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-5 0 diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-31" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-31" deleted file mode 100644 index 5c1dc1b..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-31" +++ /dev/null @@ -1,50 +0,0 @@ -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 14 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:37:04 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 5 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:37:08 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-6 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:15 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-5 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:58:57 +0800] "GET /webWork/step1.html HTTP/1.1" 200 1010 http-bio-8080-exec-1 26 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:59:00 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-3 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:29 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:29 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:35 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 4 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:10:24 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-6 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:10:26 +0800] "GET /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 15 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:58 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:02 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-6 5 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:56 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:57 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 19 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:05 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:14 +0800] "GET /webWork/step2.heml HTTP/1.1" 404 987 http-bio-8080-exec-5 1 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:19 +0800] "GET /webWork/step2.html HTTP/1.1" 200 1191 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:33:18 +0800] "GET /webWork/step1.heml HTTP/1.1" 404 987 http-bio-8080-exec-1 30 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:33:25 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-3 4 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:36:41 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:36:41 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 20 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:37:16 +0800] "GET /webWork/step1.html HTTP/1.1" 200 1000 http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:37:19 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 4 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:40 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:40 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:46 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:48 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:22 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:22 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 14 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:31 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:33 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:08 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:08 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:22 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 5 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:22 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:05 +0800] "GET /webWork/step3.html HTTP/1.1" 404 987 http-bio-8080-exec-7 2 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:10 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 993 http-bio-8080-exec-9 418 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 993 http-bio-8080-exec-10 35 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:29:55 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1057 http-bio-8080-exec-3 26 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:31:26 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1069 http-bio-8080-exec-2 24 diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-01" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-01" deleted file mode 100644 index 9fc8f49..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-01" +++ /dev/null @@ -1,6 +0,0 @@ -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:04 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-2 0 -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:04 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:05 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1208 http-bio-8080-exec-5 464 -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:54 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1230 http-bio-8080-exec-6 42 -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:53:28 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1230 http-bio-8080-exec-7 43 diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-03" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-03" deleted file mode 100644 index d350f0a..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-03" +++ /dev/null @@ -1,63 +0,0 @@ -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:46 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 10 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:49 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-6 8 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:49 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-7 7 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:27:59 +0800] "GET /webWork/step2.html HTTP/1.1" 200 1191 http-bio-8080-exec-9 3 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:07 +0800] "POST /webWork/addressServlet HTTP/1.1" 200 - http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:21 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:21 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 12 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:28 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 7 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:28 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:33 +0800] "POST /webWork/addressServlet HTTP/1.1" 200 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:15 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:15 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 12 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:21 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 7 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:21 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:25 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:26 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1209 http-bio-8080-exec-7 412 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:35 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-9 3 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-9 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:38 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:43 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:43 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1175 http-bio-8080-exec-9 73 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:55:44 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 64 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:55:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:12 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:12 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 3 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:32 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:32 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 70 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:19 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1106 http-bio-8080-exec-10 64 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:21 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1106 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:40 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-10 66 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:41 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:59:54 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-5 47 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:59:56 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-5 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:00 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 38 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:00 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:02 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:36 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:36 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 9 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:44 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 4 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:44 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 2 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:48 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-7 13 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 264 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:08 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:08 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:04:19 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1192 http-bio-8080-exec-8 48 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:05:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1179 http-bio-8080-exec-8 43 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:05:22 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1179 http-bio-8080-exec-8 42 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:30 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-1 326 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:30 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:36 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 2 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:38 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:43 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:43 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-8 1 diff --git "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-06" "b/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-06" deleted file mode 100644 index 96549aa..0000000 --- "a/\347\275\227\351\221\253/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-06" +++ /dev/null @@ -1,87 +0,0 @@ -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:22 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:39 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-6 7 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:39 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-7 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:45 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-8 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-9 21 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:14:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1147 http-bio-8080-exec-1 429 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:15:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-3 46 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:35 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:35 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 11 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:43 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 6 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:43 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:48 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-7 21 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:18:33 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-8 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:18:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-9 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:19:23 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:22 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-10 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:22 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-10 358 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:25 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-4 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-4 45 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:34 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-6 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:01 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:01 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:04 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-4 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:15 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 5 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:15 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 3 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:19 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:20 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-8 368 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:46 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1224 http-bio-8080-exec-2 55 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:22:27 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1242 http-bio-8080-exec-10 41 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:42 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 38 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:44 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-1 49 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:17 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-2 4 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:19 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:20 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:20 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:24 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:24 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-8 3 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:35 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-3 3 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-9 340 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-10 5 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-1 4 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:21 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-2 43 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 39 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:37 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:37 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:38 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:38 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:39 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:12 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 41 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:14 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:36:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1226 http-bio-8080-exec-9 41 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:36:49 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1226 http-bio-8080-exec-9 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:39:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-4 37 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 32 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:52 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:49:03 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1364 http-bio-8080-exec-6 34 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:14 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 27 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:42 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 31 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1269 http-bio-8080-exec-10 31 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 32 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:06 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:52:59 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-1 28 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:00 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-3 8 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:00 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:04 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-5 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2370 http-bio-8080-exec-6 25 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:28 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2804 http-bio-8080-exec-2 344 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1199 http-bio-8080-exec-7 49 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:54:40 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:54:40 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1113 http-bio-8080-exec-10 40 -- Gitee From 89a0a60fea04e5d0eedcc70ab34c053b87edc5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sun, 6 Nov 2022 02:08:07 +0000 Subject: [PATCH 109/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8?= =?UTF-8?q?=E4=BD=B3=E4=BD=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 472192acd05a5187c92edf30d76a52a541b363db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sun, 6 Nov 2022 02:08:12 +0000 Subject: [PATCH 110/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=BB=8E?= =?UTF-8?q?=E5=8C=85=E8=8D=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\273\216\345\214\205\350\215\243/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 06ab57451ec3ff5a2196115e5439dd565c18b1a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sun, 6 Nov 2022 02:08:25 +0000 Subject: [PATCH 111/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8?= =?UTF-8?q?=E4=BD=B3=E4=BD=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 01870da4bf158955e669e289747633bd3a1b31d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sun, 6 Nov 2022 02:08:54 +0000 Subject: [PATCH 112/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗鑫lxxx666 <10602820+jason666NB@user.noreply.gitee.com> --- .../webWork/.idea/compiler.xml" | 8 + .../webWork/.idea/jarRepositories.xml" | 20 + .../webWork/.idea/misc.xml" | 19 + .../webWork/.idea/webContexts.xml" | 10 + .../webWork/.idea/workspace.xml" | 101 + .../webWork/pom.xml" | 80 + .../webWork/src/main/webapp/WEB-INF/web.xml" | 6 + .../webWork/src/main/webapp/step1.html" | 35 + .../webWork/src/main/webapp/step2.html" | 44 + .../webWork/src/main/webapp/step3.jsp" | 73 + .../classes/com/web/addressServlet.class" | Bin 0 -> 1580 bytes .../classes/com/web/shopcarServlet.class" | Bin 0 -> 1623 bytes .../target/tomcat/conf/logging.properties" | 64 + .../target/tomcat/conf/tomcat-users.xml" | 26 + .../webWork/target/tomcat/conf/web.xml" | 4283 +++++++++++++++++ .../target/tomcat/logs/access_log.2022-10-29" | 20 + .../target/tomcat/logs/access_log.2022-10-31" | 50 + .../target/tomcat/logs/access_log.2022-11-01" | 6 + .../target/tomcat/logs/access_log.2022-11-03" | 63 + .../target/tomcat/logs/access_log.2022-11-06" | 87 + 20 files changed, 4995 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/compiler.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/jarRepositories.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/misc.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/webContexts.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/workspace.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/pom.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/WEB-INF/web.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step1.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step2.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step3.jsp" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/addressServlet.class" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/shopcarServlet.class" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/logging.properties" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/tomcat-users.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/web.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-29" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-31" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-01" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-03" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-06" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/compiler.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/compiler.xml" new file mode 100644 index 0000000..6e5a203 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/compiler.xml" @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/jarRepositories.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/jarRepositories.xml" new file mode 100644 index 0000000..a468a99 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/jarRepositories.xml" @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/misc.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/misc.xml" new file mode 100644 index 0000000..149f5ab --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/misc.xml" @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/webContexts.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/webContexts.xml" new file mode 100644 index 0000000..0c7b27c --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/webContexts.xml" @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/workspace.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/workspace.xml" new file mode 100644 index 0000000..1483d55 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/workspace.xml" @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1667038653869 + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/pom.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/pom.xml" new file mode 100644 index 0000000..6c3d706 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/pom.xml" @@ -0,0 +1,80 @@ + + + 4.0.0 + + org.example + webWork + 1.0-SNAPSHOT + + pom + + + 8 + 8 + + + + + + + org.mybatis + mybatis + 3.5.5 + + + + + mysql + mysql-connector-java + 8.0.30 + + + + + javax.servlet + javax.servlet-api + 3.1.0 + provided + + + + + + javax.servlet.jsp + jsp-api + 2.2 + provided + + + + + jstl + jstl + 1.2 + + + taglibs + standard + 1.1.2 + + + + + + + + + org.apache.tomcat.maven + tomcat7-maven-plugin + 2.2 + + true + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/WEB-INF/web.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/WEB-INF/web.xml" new file mode 100644 index 0000000..d80081d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/WEB-INF/web.xml" @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step1.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step1.html" new file mode 100644 index 0000000..f8f1376 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step1.html" @@ -0,0 +1,35 @@ + + + + + 购物车 + + +
+ +

Step1:选择要购买的书籍

+ + + + + + + + + + + + + + + + + + + + + +
书名购买
Java

Oraclecheck

Strutscheck

+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step2.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step2.html" new file mode 100644 index 0000000..2ab8b4e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step2.html" @@ -0,0 +1,44 @@ + + + + + 订单信息 + + +

请输入寄送地址与信用卡信息

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
信用卡信息
种类Master
Visa
卡号
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step3.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step3.jsp" new file mode 100644 index 0000000..bf53de8 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step3.jsp" @@ -0,0 +1,73 @@ +<%-- + Created by IntelliJ IDEA. + User: ɶ + Date: 2022/10/31 + Time: 17:07 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" pageEncoding="gb2312"%> +<%@ page contentType="text/html;charset=gb2312"%> +<%@ page import="java.net.URLEncoder" %> +<%@ page import="java.net.URLDecoder" %> + + + + ȷ + + +
+ + + <% + request.setCharacterEncoding("utf-8"); + %> + + + <% +// response.setContentType("test/http;charset=UTF-8"); + HttpSession session1 = request.getSession(); + String name = String.valueOf(session1.getAttribute("name")); + String javacheck = (String) session1.getAttribute("javacheck"); + String Oraclecheck = (String) session1.getAttribute("Oraclecheck"); + String Strutscheck = (String) session1.getAttribute("Strutscheck"); + String address = String.valueOf(session1.getAttribute("address")); + String cardcheck = String.valueOf(session1.getAttribute("cardcheck")); + String cardnumber = String.valueOf(session1.getAttribute("cardnumber")); + + %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
˿<%out.write(name);%>
ַ<%URLDecoder.decode(address,"UTF-8");%> + <%out.print(address);%>
Ϣ
ÿ<%out.write(cardcheck);%>
<%out.write(cardnumber);%>
Ŀ
<%out.write(javacheck);%>
<%out.print(Oraclecheck);%>
<%out.print(Strutscheck);%>
+
+ + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/addressServlet.class" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/addressServlet.class" new file mode 100644 index 0000000000000000000000000000000000000000..20a9e9433fb8d15794edbbfdf3fc78b48a3ec7b7 GIT binary patch literal 1580 zcmah}*-{fh6g{17LNb5`L85G;tN}&^7Zw);7phW11q-Y6X)@`8fiM$hI>>MNqJ^1TssuW2>hE$?=ITfz*mylLDP(+mUaZ`&H?^Gplvp6w0n;*0)U0 z4$kpqO6}ObKyTS{_l-}oYM8Z}Cw+fYdWUtX76sBZ_q9|4mGSbfd1xLPe)MGQDAh3D zaEW~@@}MbwwRowU-*6pYE(Tzeo;(m3yEG)qOmf855V#ylT!RsgxgU}bz#Dbb*)}$n zXFJ=Zrp06h+APznSv%6&6UYU&6LyX+KAT~?j=<3QAVUx4%e_3ZWJA&2*YH@wJjJQG z8?MjxXUSJ~AVt^dF3$wm1d5fWqwIaTW&1W2T6P>)nPE18k$o+vK(6NG59o^^= z=s9~j1O_f1iT@m8pshZ!6`?M+YpkuGxE;ATZ#-%O`nFUXrbmgD^aMtu!8j%JMA*4g zS5$*>n}3uY9*=y^9PK~ap3gL%58an)S#h+gO+^95&VX_P$$E8HS}Obxj9$hynq`vp zrBkcOn(Z-Ep!U$SR;F|eO<+MQYK6q~F|tX} zN);Irndu^9A~RED5Y4GV+c9zp{Dn4yJWF<X=PYt4nypwhGC+} zF!DC;(08QOlr`o^@=cp8O?^TBFYp|l5hm#mK@CN2El^quloo?JSt5Z^MkfemoO=hs MPw+SS5yD65H_EwwYXATM literal 0 HcmV?d00001 diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/shopcarServlet.class" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/shopcarServlet.class" new file mode 100644 index 0000000000000000000000000000000000000000..4e7e47818e4bd08a4fcdeaf380135e7b2a4961d5 GIT binary patch literal 1623 zcmai!*-{fh6o&uKHd#j0;1(6c1zCcO`vPu=2v(t3LF0v2lSvmDO=jYB2YD@TwD7_Q z@KJmS%YPOFXpoEaobLJiobN1?AHTkR2XGTBMI6FR9%o9pg4sMq@)!+GtAwk#7FyTy zxKX0=RuLv{8@OZOu0Za->$&=&KzeejE|6LDn^NHLs_V&@y-q_0ukA*gC*@V&vDMm%Ot7>T*iKs}k`m8*S|vL}Nu^xh6ByecF;aw%9N*J&OTV&pOQ5*4<;bq) zWo6)=fjNO}(_faXWO3c^1&(~?hHV+%Tk+YDP@q!ldD`vBx~p7vYr*q;ZAZ=o#{WXG z`!B7xva!>-?55rBg`@CSQ%wxvuz`6K_wm5QLp(C@*u(;!m{`P9B88Li)(<{dO3Uu` z*_Q6K4J?^>hGi4SaYEq4;CT@k{r`;oBS>)j#bWfRN3L%@U)yy${(ry8>FDUA7$VE!?pZpP@a##0$sJUa_#nSj5I8=7WU7wy{8u@|zak(F5zYwL zBivbh3O=*bUm-rzNZ}~gTy$7MnYI}VFpOi|Wx^SuD!lxY&hmWLtL4--(kZ;GmNStt zm#LPsv6ZcEBPTGItK`b5E88&App~gm7@OG&l{Bf#Q)kSS3)?8ButPJABBKnUKEyKnUaMIn8QUZ;Syf(VptJ*Bq!_63(o6(37R&lj eMjy&Zpmv8y;WBThn9wAjLxi8=Z~7gCLiIOaj*r~{ literal 0 HcmV?d00001 diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/logging.properties" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/logging.properties" new file mode 100644 index 0000000..76c9512 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/logging.properties" @@ -0,0 +1,64 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler + +.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler + +############################################################ +# Handler specific properties. +# Describes specific configuration info for Handlers. +############################################################ + +1catalina.org.apache.juli.FileHandler.level = FINE +1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +1catalina.org.apache.juli.FileHandler.prefix = catalina. + +2localhost.org.apache.juli.FileHandler.level = FINE +2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +2localhost.org.apache.juli.FileHandler.prefix = localhost. + +3manager.org.apache.juli.FileHandler.level = FINE +3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +3manager.org.apache.juli.FileHandler.prefix = manager. + +4host-manager.org.apache.juli.FileHandler.level = FINE +4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +4host-manager.org.apache.juli.FileHandler.prefix = host-manager. + +java.util.logging.ConsoleHandler.level = FINE +java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter + + +############################################################ +# Facility specific properties. +# Provides extra control for each logger. +############################################################ + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler + +# For example, set the org.apache.catalina.util.LifecycleBase logger to log +# each component that extends LifecycleBase changing state: +#org.apache.catalina.util.LifecycleBase.level = FINE + +# To see debug messages in TldLocationsCache, uncomment the following line: +#org.apache.jasper.compiler.TldLocationsCache.level = FINE diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/tomcat-users.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/tomcat-users.xml" new file mode 100644 index 0000000..7114f5d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/tomcat-users.xml" @@ -0,0 +1,26 @@ + + + + + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/web.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/web.xml" new file mode 100644 index 0000000..cc8383c --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/web.xml" @@ -0,0 +1,4283 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + org.apache.catalina.servlets.DefaultServlet + + debug + 0 + + + listings + false + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jsp + org.apache.jasper.servlet.JspServlet + + fork + false + + + xpoweredBy + false + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + / + + + + + jsp + *.jsp + *.jspx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 30 + + + + + + + + + + + + 123 + application/vnd.lotus-1-2-3 + + + 3dml + text/vnd.in3d.3dml + + + 3g2 + video/3gpp2 + + + 3gp + video/3gpp + + + 7z + application/x-7z-compressed + + + aab + application/x-authorware-bin + + + aac + audio/x-aac + + + aam + application/x-authorware-map + + + aas + application/x-authorware-seg + + + abs + audio/x-mpeg + + + abw + application/x-abiword + + + ac + application/pkix-attr-cert + + + acc + application/vnd.americandynamics.acc + + + ace + application/x-ace-compressed + + + acu + application/vnd.acucobol + + + acutc + application/vnd.acucorp + + + adp + audio/adpcm + + + aep + application/vnd.audiograph + + + afm + application/x-font-type1 + + + afp + application/vnd.ibm.modcap + + + ahead + application/vnd.ahead.space + + + ai + application/postscript + + + aif + audio/x-aiff + + + aifc + audio/x-aiff + + + aiff + audio/x-aiff + + + aim + application/x-aim + + + air + application/vnd.adobe.air-application-installer-package+zip + + + ait + application/vnd.dvb.ait + + + ami + application/vnd.amiga.ami + + + anx + application/annodex + + + apk + application/vnd.android.package-archive + + + application + application/x-ms-application + + + apr + application/vnd.lotus-approach + + + art + image/x-jg + + + asc + application/pgp-signature + + + asf + video/x-ms-asf + + + asm + text/x-asm + + + aso + application/vnd.accpac.simply.aso + + + asx + video/x-ms-asf + + + atc + application/vnd.acucorp + + + atom + application/atom+xml + + + atomcat + application/atomcat+xml + + + atomsvc + application/atomsvc+xml + + + atx + application/vnd.antix.game-component + + + au + audio/basic + + + avi + video/x-msvideo + + + avx + video/x-rad-screenplay + + + aw + application/applixware + + + axa + audio/annodex + + + axv + video/annodex + + + azf + application/vnd.airzip.filesecure.azf + + + azs + application/vnd.airzip.filesecure.azs + + + azw + application/vnd.amazon.ebook + + + bat + application/x-msdownload + + + bcpio + application/x-bcpio + + + bdf + application/x-font-bdf + + + bdm + application/vnd.syncml.dm+wbxml + + + bed + application/vnd.realvnc.bed + + + bh2 + application/vnd.fujitsu.oasysprs + + + bin + application/octet-stream + + + bmi + application/vnd.bmi + + + bmp + image/bmp + + + body + text/html + + + book + application/vnd.framemaker + + + box + application/vnd.previewsystems.box + + + boz + application/x-bzip2 + + + bpk + application/octet-stream + + + btif + image/prs.btif + + + bz + application/x-bzip + + + bz2 + application/x-bzip2 + + + c + text/x-c + + + c11amc + application/vnd.cluetrust.cartomobile-config + + + c11amz + application/vnd.cluetrust.cartomobile-config-pkg + + + c4d + application/vnd.clonk.c4group + + + c4f + application/vnd.clonk.c4group + + + c4g + application/vnd.clonk.c4group + + + c4p + application/vnd.clonk.c4group + + + c4u + application/vnd.clonk.c4group + + + cab + application/vnd.ms-cab-compressed + + + cap + application/vnd.tcpdump.pcap + + + car + application/vnd.curl.car + + + cat + application/vnd.ms-pki.seccat + + + cc + text/x-c + + + cct + application/x-director + + + ccxml + application/ccxml+xml + + + cdbcmsg + application/vnd.contact.cmsg + + + cdf + application/x-cdf + + + cdkey + application/vnd.mediastation.cdkey + + + cdmia + application/cdmi-capability + + + cdmic + application/cdmi-container + + + cdmid + application/cdmi-domain + + + cdmio + application/cdmi-object + + + cdmiq + application/cdmi-queue + + + cdx + chemical/x-cdx + + + cdxml + application/vnd.chemdraw+xml + + + cdy + application/vnd.cinderella + + + cer + application/pkix-cert + + + cgm + image/cgm + + + chat + application/x-chat + + + chm + application/vnd.ms-htmlhelp + + + chrt + application/vnd.kde.kchart + + + cif + chemical/x-cif + + + cii + application/vnd.anser-web-certificate-issue-initiation + + + cil + application/vnd.ms-artgalry + + + cla + application/vnd.claymore + + + class + application/java + + + clkk + application/vnd.crick.clicker.keyboard + + + clkp + application/vnd.crick.clicker.palette + + + clkt + application/vnd.crick.clicker.template + + + clkw + application/vnd.crick.clicker.wordbank + + + clkx + application/vnd.crick.clicker + + + clp + application/x-msclip + + + cmc + application/vnd.cosmocaller + + + cmdf + chemical/x-cmdf + + + cml + chemical/x-cml + + + cmp + application/vnd.yellowriver-custom-menu + + + cmx + image/x-cmx + + + cod + application/vnd.rim.cod + + + com + application/x-msdownload + + + conf + text/plain + + + cpio + application/x-cpio + + + cpp + text/x-c + + + cpt + application/mac-compactpro + + + crd + application/x-mscardfile + + + crl + application/pkix-crl + + + crt + application/x-x509-ca-cert + + + cryptonote + application/vnd.rig.cryptonote + + + csh + application/x-csh + + + csml + chemical/x-csml + + + csp + application/vnd.commonspace + + + css + text/css + + + cst + application/x-director + + + csv + text/csv + + + cu + application/cu-seeme + + + curl + text/vnd.curl + + + cww + application/prs.cww + + + cxt + application/x-director + + + cxx + text/x-c + + + dae + model/vnd.collada+xml + + + daf + application/vnd.mobius.daf + + + dataless + application/vnd.fdsn.seed + + + davmount + application/davmount+xml + + + dcr + application/x-director + + + dcurl + text/vnd.curl.dcurl + + + dd2 + application/vnd.oma.dd2+xml + + + ddd + application/vnd.fujixerox.ddd + + + deb + application/x-debian-package + + + def + text/plain + + + deploy + application/octet-stream + + + der + application/x-x509-ca-cert + + + dfac + application/vnd.dreamfactory + + + dib + image/bmp + + + dic + text/x-c + + + dir + application/x-director + + + dis + application/vnd.mobius.dis + + + dist + application/octet-stream + + + distz + application/octet-stream + + + djv + image/vnd.djvu + + + djvu + image/vnd.djvu + + + dll + application/x-msdownload + + + dmg + application/octet-stream + + + dmp + application/vnd.tcpdump.pcap + + + dms + application/octet-stream + + + dna + application/vnd.dna + + + doc + application/msword + + + docm + application/vnd.ms-word.document.macroenabled.12 + + + docx + application/vnd.openxmlformats-officedocument.wordprocessingml.document + + + dot + application/msword + + + dotm + application/vnd.ms-word.template.macroenabled.12 + + + dotx + application/vnd.openxmlformats-officedocument.wordprocessingml.template + + + dp + application/vnd.osgi.dp + + + dpg + application/vnd.dpgraph + + + dra + audio/vnd.dra + + + dsc + text/prs.lines.tag + + + dssc + application/dssc+der + + + dtb + application/x-dtbook+xml + + + dtd + application/xml-dtd + + + dts + audio/vnd.dts + + + dtshd + audio/vnd.dts.hd + + + dump + application/octet-stream + + + dv + video/x-dv + + + dvb + video/vnd.dvb.file + + + dvi + application/x-dvi + + + dwf + model/vnd.dwf + + + dwg + image/vnd.dwg + + + dxf + image/vnd.dxf + + + dxp + application/vnd.spotfire.dxp + + + dxr + application/x-director + + + ecelp4800 + audio/vnd.nuera.ecelp4800 + + + ecelp7470 + audio/vnd.nuera.ecelp7470 + + + ecelp9600 + audio/vnd.nuera.ecelp9600 + + + ecma + application/ecmascript + + + edm + application/vnd.novadigm.edm + + + edx + application/vnd.novadigm.edx + + + efif + application/vnd.picsel + + + ei6 + application/vnd.pg.osasli + + + elc + application/octet-stream + + + eml + message/rfc822 + + + emma + application/emma+xml + + + eol + audio/vnd.digital-winds + + + eot + application/vnd.ms-fontobject + + + eps + application/postscript + + + epub + application/epub+zip + + + es3 + application/vnd.eszigno3+xml + + + esf + application/vnd.epson.esf + + + et3 + application/vnd.eszigno3+xml + + + etx + text/x-setext + + + exe + application/octet-stream + + + exi + application/exi + + + ext + application/vnd.novadigm.ext + + + ez + application/andrew-inset + + + ez2 + application/vnd.ezpix-album + + + ez3 + application/vnd.ezpix-package + + + f + text/x-fortran + + + f4v + video/x-f4v + + + f77 + text/x-fortran + + + f90 + text/x-fortran + + + fbs + image/vnd.fastbidsheet + + + fcs + application/vnd.isac.fcs + + + fdf + application/vnd.fdf + + + fe_launch + application/vnd.denovo.fcselayout-link + + + fg5 + application/vnd.fujitsu.oasysgp + + + fgd + application/x-director + + + fh + image/x-freehand + + + fh4 + image/x-freehand + + + fh5 + image/x-freehand + + + fh7 + image/x-freehand + + + fhc + image/x-freehand + + + fig + application/x-xfig + + + flac + audio/flac + + + fli + video/x-fli + + + flo + application/vnd.micrografx.flo + + + flv + video/x-flv + + + flw + application/vnd.kde.kivio + + + flx + text/vnd.fmi.flexstor + + + fly + text/vnd.fly + + + fm + application/vnd.framemaker + + + fnc + application/vnd.frogans.fnc + + + for + text/x-fortran + + + fpx + image/vnd.fpx + + + frame + application/vnd.framemaker + + + fsc + application/vnd.fsc.weblaunch + + + fst + image/vnd.fst + + + ftc + application/vnd.fluxtime.clip + + + fti + application/vnd.anser-web-funds-transfer-initiation + + + fvt + video/vnd.fvt + + + fxp + application/vnd.adobe.fxp + + + fxpl + application/vnd.adobe.fxp + + + fzs + application/vnd.fuzzysheet + + + g2w + application/vnd.geoplan + + + g3 + image/g3fax + + + g3w + application/vnd.geospace + + + gac + application/vnd.groove-account + + + gbr + application/rpki-ghostbusters + + + gdl + model/vnd.gdl + + + geo + application/vnd.dynageo + + + gex + application/vnd.geometry-explorer + + + ggb + application/vnd.geogebra.file + + + ggt + application/vnd.geogebra.tool + + + ghf + application/vnd.groove-help + + + gif + image/gif + + + gim + application/vnd.groove-identity-message + + + gmx + application/vnd.gmx + + + gnumeric + application/x-gnumeric + + + gph + application/vnd.flographit + + + gqf + application/vnd.grafeq + + + gqs + application/vnd.grafeq + + + gram + application/srgs + + + gre + application/vnd.geometry-explorer + + + grv + application/vnd.groove-injector + + + grxml + application/srgs+xml + + + gsf + application/x-font-ghostscript + + + gtar + application/x-gtar + + + gtm + application/vnd.groove-tool-message + + + gtw + model/vnd.gtw + + + gv + text/vnd.graphviz + + + gxt + application/vnd.geonext + + + gz + application/x-gzip + + + h + text/x-c + + + h261 + video/h261 + + + h263 + video/h263 + + + h264 + video/h264 + + + hal + application/vnd.hal+xml + + + hbci + application/vnd.hbci + + + hdf + application/x-hdf + + + hh + text/x-c + + + hlp + application/winhlp + + + hpgl + application/vnd.hp-hpgl + + + hpid + application/vnd.hp-hpid + + + hps + application/vnd.hp-hps + + + hqx + application/mac-binhex40 + + + htc + text/x-component + + + htke + application/vnd.kenameaapp + + + htm + text/html + + + html + text/html + + + hvd + application/vnd.yamaha.hv-dic + + + hvp + application/vnd.yamaha.hv-voice + + + hvs + application/vnd.yamaha.hv-script + + + i2g + application/vnd.intergeo + + + icc + application/vnd.iccprofile + + + ice + x-conference/x-cooltalk + + + icm + application/vnd.iccprofile + + + ico + image/x-icon + + + ics + text/calendar + + + ief + image/ief + + + ifb + text/calendar + + + ifm + application/vnd.shana.informed.formdata + + + iges + model/iges + + + igl + application/vnd.igloader + + + igm + application/vnd.insors.igm + + + igs + model/iges + + + igx + application/vnd.micrografx.igx + + + iif + application/vnd.shana.informed.interchange + + + imp + application/vnd.accpac.simply.imp + + + ims + application/vnd.ms-ims + + + in + text/plain + + + ink + application/inkml+xml + + + inkml + application/inkml+xml + + + iota + application/vnd.astraea-software.iota + + + ipfix + application/ipfix + + + ipk + application/vnd.shana.informed.package + + + irm + application/vnd.ibm.rights-management + + + irp + application/vnd.irepository.package+xml + + + iso + application/octet-stream + + + itp + application/vnd.shana.informed.formtemplate + + + ivp + application/vnd.immervision-ivp + + + ivu + application/vnd.immervision-ivu + + + jad + text/vnd.sun.j2me.app-descriptor + + + jam + application/vnd.jam + + + jar + application/java-archive + + + java + text/x-java-source + + + jisp + application/vnd.jisp + + + jlt + application/vnd.hp-jlyt + + + jnlp + application/x-java-jnlp-file + + + joda + application/vnd.joost.joda-archive + + + jpe + image/jpeg + + + jpeg + image/jpeg + + + jpg + image/jpeg + + + jpgm + video/jpm + + + jpgv + video/jpeg + + + jpm + video/jpm + + + js + application/javascript + + + jsf + text/plain + + + json + application/json + + + jspf + text/plain + + + kar + audio/midi + + + karbon + application/vnd.kde.karbon + + + kfo + application/vnd.kde.kformula + + + kia + application/vnd.kidspiration + + + kml + application/vnd.google-earth.kml+xml + + + kmz + application/vnd.google-earth.kmz + + + kne + application/vnd.kinar + + + knp + application/vnd.kinar + + + kon + application/vnd.kde.kontour + + + kpr + application/vnd.kde.kpresenter + + + kpt + application/vnd.kde.kpresenter + + + ksp + application/vnd.kde.kspread + + + ktr + application/vnd.kahootz + + + ktx + image/ktx + + + ktz + application/vnd.kahootz + + + kwd + application/vnd.kde.kword + + + kwt + application/vnd.kde.kword + + + lasxml + application/vnd.las.las+xml + + + latex + application/x-latex + + + lbd + application/vnd.llamagraphics.life-balance.desktop + + + lbe + application/vnd.llamagraphics.life-balance.exchange+xml + + + les + application/vnd.hhe.lesson-player + + + lha + application/octet-stream + + + link66 + application/vnd.route66.link66+xml + + + list + text/plain + + + list3820 + application/vnd.ibm.modcap + + + listafp + application/vnd.ibm.modcap + + + log + text/plain + + + lostxml + application/lost+xml + + + lrf + application/octet-stream + + + lrm + application/vnd.ms-lrm + + + ltf + application/vnd.frogans.ltf + + + lvp + audio/vnd.lucent.voice + + + lwp + application/vnd.lotus-wordpro + + + lzh + application/octet-stream + + + m13 + application/x-msmediaview + + + m14 + application/x-msmediaview + + + m1v + video/mpeg + + + m21 + application/mp21 + + + m2a + audio/mpeg + + + m2v + video/mpeg + + + m3a + audio/mpeg + + + m3u + audio/x-mpegurl + + + m3u8 + application/vnd.apple.mpegurl + + + m4a + audio/mp4 + + + m4b + audio/mp4 + + + m4r + audio/mp4 + + + m4u + video/vnd.mpegurl + + + m4v + video/mp4 + + + ma + application/mathematica + + + mac + image/x-macpaint + + + mads + application/mads+xml + + + mag + application/vnd.ecowin.chart + + + maker + application/vnd.framemaker + + + man + text/troff + + + mathml + application/mathml+xml + + + mb + application/mathematica + + + mbk + application/vnd.mobius.mbk + + + mbox + application/mbox + + + mc1 + application/vnd.medcalcdata + + + mcd + application/vnd.mcd + + + mcurl + text/vnd.curl.mcurl + + + mdb + application/x-msaccess + + + mdi + image/vnd.ms-modi + + + me + text/troff + + + mesh + model/mesh + + + meta4 + application/metalink4+xml + + + mets + application/mets+xml + + + mfm + application/vnd.mfmp + + + mft + application/rpki-manifest + + + mgp + application/vnd.osgeo.mapguide.package + + + mgz + application/vnd.proteus.magazine + + + mid + audio/midi + + + midi + audio/midi + + + mif + application/x-mif + + + mime + message/rfc822 + + + mj2 + video/mj2 + + + mjp2 + video/mj2 + + + mlp + application/vnd.dolby.mlp + + + mmd + application/vnd.chipnuts.karaoke-mmd + + + mmf + application/vnd.smaf + + + mmr + image/vnd.fujixerox.edmics-mmr + + + mny + application/x-msmoney + + + mobi + application/x-mobipocket-ebook + + + mods + application/mods+xml + + + mov + video/quicktime + + + movie + video/x-sgi-movie + + + mp1 + audio/mpeg + + + mp2 + audio/mpeg + + + mp21 + application/mp21 + + + mp2a + audio/mpeg + + + mp3 + audio/mpeg + + + mp4 + video/mp4 + + + mp4a + audio/mp4 + + + mp4s + application/mp4 + + + mp4v + video/mp4 + + + mpa + audio/mpeg + + + mpc + application/vnd.mophun.certificate + + + mpe + video/mpeg + + + mpeg + video/mpeg + + + mpega + audio/x-mpeg + + + mpg + video/mpeg + + + mpg4 + video/mp4 + + + mpga + audio/mpeg + + + mpkg + application/vnd.apple.installer+xml + + + mpm + application/vnd.blueice.multipass + + + mpn + application/vnd.mophun.application + + + mpp + application/vnd.ms-project + + + mpt + application/vnd.ms-project + + + mpv2 + video/mpeg2 + + + mpy + application/vnd.ibm.minipay + + + mqy + application/vnd.mobius.mqy + + + mrc + application/marc + + + mrcx + application/marcxml+xml + + + ms + text/troff + + + mscml + application/mediaservercontrol+xml + + + mseed + application/vnd.fdsn.mseed + + + mseq + application/vnd.mseq + + + msf + application/vnd.epson.msf + + + msh + model/mesh + + + msi + application/x-msdownload + + + msl + application/vnd.mobius.msl + + + msty + application/vnd.muvee.style + + + mts + model/vnd.mts + + + mus + application/vnd.musician + + + musicxml + application/vnd.recordare.musicxml+xml + + + mvb + application/x-msmediaview + + + mwf + application/vnd.mfer + + + mxf + application/mxf + + + mxl + application/vnd.recordare.musicxml + + + mxml + application/xv+xml + + + mxs + application/vnd.triscape.mxs + + + mxu + video/vnd.mpegurl + + + n-gage + application/vnd.nokia.n-gage.symbian.install + + + n3 + text/n3 + + + nb + application/mathematica + + + nbp + application/vnd.wolfram.player + + + nc + application/x-netcdf + + + ncx + application/x-dtbncx+xml + + + ngdat + application/vnd.nokia.n-gage.data + + + nlu + application/vnd.neurolanguage.nlu + + + nml + application/vnd.enliven + + + nnd + application/vnd.noblenet-directory + + + nns + application/vnd.noblenet-sealer + + + nnw + application/vnd.noblenet-web + + + npx + image/vnd.net-fpx + + + nsf + application/vnd.lotus-notes + + + oa2 + application/vnd.fujitsu.oasys2 + + + oa3 + application/vnd.fujitsu.oasys3 + + + oas + application/vnd.fujitsu.oasys + + + obd + application/x-msbinder + + + oda + application/oda + + + + odb + application/vnd.oasis.opendocument.database + + + + odc + application/vnd.oasis.opendocument.chart + + + + odf + application/vnd.oasis.opendocument.formula + + + odft + application/vnd.oasis.opendocument.formula-template + + + + odg + application/vnd.oasis.opendocument.graphics + + + + odi + application/vnd.oasis.opendocument.image + + + + odm + application/vnd.oasis.opendocument.text-master + + + + odp + application/vnd.oasis.opendocument.presentation + + + + ods + application/vnd.oasis.opendocument.spreadsheet + + + + odt + application/vnd.oasis.opendocument.text + + + oga + audio/ogg + + + ogg + audio/ogg + + + ogv + video/ogg + + + + ogx + application/ogg + + + onepkg + application/onenote + + + onetmp + application/onenote + + + onetoc + application/onenote + + + onetoc2 + application/onenote + + + opf + application/oebps-package+xml + + + oprc + application/vnd.palm + + + org + application/vnd.lotus-organizer + + + osf + application/vnd.yamaha.openscoreformat + + + osfpvg + application/vnd.yamaha.openscoreformat.osfpvg+xml + + + otc + application/vnd.oasis.opendocument.chart-template + + + otf + application/x-font-otf + + + + otg + application/vnd.oasis.opendocument.graphics-template + + + + oth + application/vnd.oasis.opendocument.text-web + + + oti + application/vnd.oasis.opendocument.image-template + + + + otp + application/vnd.oasis.opendocument.presentation-template + + + + ots + application/vnd.oasis.opendocument.spreadsheet-template + + + + ott + application/vnd.oasis.opendocument.text-template + + + oxps + application/oxps + + + oxt + application/vnd.openofficeorg.extension + + + p + text/x-pascal + + + p10 + application/pkcs10 + + + p12 + application/x-pkcs12 + + + p7b + application/x-pkcs7-certificates + + + p7c + application/pkcs7-mime + + + p7m + application/pkcs7-mime + + + p7r + application/x-pkcs7-certreqresp + + + p7s + application/pkcs7-signature + + + p8 + application/pkcs8 + + + pas + text/x-pascal + + + paw + application/vnd.pawaafile + + + pbd + application/vnd.powerbuilder6 + + + pbm + image/x-portable-bitmap + + + pcap + application/vnd.tcpdump.pcap + + + pcf + application/x-font-pcf + + + pcl + application/vnd.hp-pcl + + + pclxl + application/vnd.hp-pclxl + + + pct + image/pict + + + pcurl + application/vnd.curl.pcurl + + + pcx + image/x-pcx + + + pdb + application/vnd.palm + + + pdf + application/pdf + + + pfa + application/x-font-type1 + + + pfb + application/x-font-type1 + + + pfm + application/x-font-type1 + + + pfr + application/font-tdpfr + + + pfx + application/x-pkcs12 + + + pgm + image/x-portable-graymap + + + pgn + application/x-chess-pgn + + + pgp + application/pgp-encrypted + + + pic + image/pict + + + pict + image/pict + + + pkg + application/octet-stream + + + pki + application/pkixcmp + + + pkipath + application/pkix-pkipath + + + plb + application/vnd.3gpp.pic-bw-large + + + plc + application/vnd.mobius.plc + + + plf + application/vnd.pocketlearn + + + pls + audio/x-scpls + + + pml + application/vnd.ctc-posml + + + png + image/png + + + pnm + image/x-portable-anymap + + + pnt + image/x-macpaint + + + portpkg + application/vnd.macports.portpkg + + + pot + application/vnd.ms-powerpoint + + + potm + application/vnd.ms-powerpoint.template.macroenabled.12 + + + potx + application/vnd.openxmlformats-officedocument.presentationml.template + + + ppam + application/vnd.ms-powerpoint.addin.macroenabled.12 + + + ppd + application/vnd.cups-ppd + + + ppm + image/x-portable-pixmap + + + pps + application/vnd.ms-powerpoint + + + ppsm + application/vnd.ms-powerpoint.slideshow.macroenabled.12 + + + ppsx + application/vnd.openxmlformats-officedocument.presentationml.slideshow + + + ppt + application/vnd.ms-powerpoint + + + pptm + application/vnd.ms-powerpoint.presentation.macroenabled.12 + + + pptx + application/vnd.openxmlformats-officedocument.presentationml.presentation + + + pqa + application/vnd.palm + + + prc + application/x-mobipocket-ebook + + + pre + application/vnd.lotus-freelance + + + prf + application/pics-rules + + + ps + application/postscript + + + psb + application/vnd.3gpp.pic-bw-small + + + psd + image/vnd.adobe.photoshop + + + psf + application/x-font-linux-psf + + + pskcxml + application/pskc+xml + + + ptid + application/vnd.pvi.ptid1 + + + pub + application/x-mspublisher + + + pvb + application/vnd.3gpp.pic-bw-var + + + pwn + application/vnd.3m.post-it-notes + + + pya + audio/vnd.ms-playready.media.pya + + + pyv + video/vnd.ms-playready.media.pyv + + + qam + application/vnd.epson.quickanime + + + qbo + application/vnd.intu.qbo + + + qfx + application/vnd.intu.qfx + + + qps + application/vnd.publishare-delta-tree + + + qt + video/quicktime + + + qti + image/x-quicktime + + + qtif + image/x-quicktime + + + qwd + application/vnd.quark.quarkxpress + + + qwt + application/vnd.quark.quarkxpress + + + qxb + application/vnd.quark.quarkxpress + + + qxd + application/vnd.quark.quarkxpress + + + qxl + application/vnd.quark.quarkxpress + + + qxt + application/vnd.quark.quarkxpress + + + ra + audio/x-pn-realaudio + + + ram + audio/x-pn-realaudio + + + rar + application/x-rar-compressed + + + ras + image/x-cmu-raster + + + rcprofile + application/vnd.ipunplugged.rcprofile + + + rdf + application/rdf+xml + + + rdz + application/vnd.data-vision.rdz + + + rep + application/vnd.businessobjects + + + res + application/x-dtbresource+xml + + + rgb + image/x-rgb + + + rif + application/reginfo+xml + + + rip + audio/vnd.rip + + + rl + application/resource-lists+xml + + + rlc + image/vnd.fujixerox.edmics-rlc + + + rld + application/resource-lists-diff+xml + + + rm + application/vnd.rn-realmedia + + + rmi + audio/midi + + + rmp + audio/x-pn-realaudio-plugin + + + rms + application/vnd.jcp.javame.midlet-rms + + + rnc + application/relax-ng-compact-syntax + + + roa + application/rpki-roa + + + roff + text/troff + + + rp9 + application/vnd.cloanto.rp9 + + + rpss + application/vnd.nokia.radio-presets + + + rpst + application/vnd.nokia.radio-preset + + + rq + application/sparql-query + + + rs + application/rls-services+xml + + + rsd + application/rsd+xml + + + rss + application/rss+xml + + + rtf + application/rtf + + + rtx + text/richtext + + + s + text/x-asm + + + saf + application/vnd.yamaha.smaf-audio + + + sbml + application/sbml+xml + + + sc + application/vnd.ibm.secure-container + + + scd + application/x-msschedule + + + scm + application/vnd.lotus-screencam + + + scq + application/scvp-cv-request + + + scs + application/scvp-cv-response + + + scurl + text/vnd.curl.scurl + + + sda + application/vnd.stardivision.draw + + + sdc + application/vnd.stardivision.calc + + + sdd + application/vnd.stardivision.impress + + + sdkd + application/vnd.solent.sdkm+xml + + + sdkm + application/vnd.solent.sdkm+xml + + + sdp + application/sdp + + + sdw + application/vnd.stardivision.writer + + + see + application/vnd.seemail + + + seed + application/vnd.fdsn.seed + + + sema + application/vnd.sema + + + semd + application/vnd.semd + + + semf + application/vnd.semf + + + ser + application/java-serialized-object + + + setpay + application/set-payment-initiation + + + setreg + application/set-registration-initiation + + + sfd-hdstx + application/vnd.hydrostatix.sof-data + + + sfs + application/vnd.spotfire.sfs + + + sgl + application/vnd.stardivision.writer-global + + + sgm + text/sgml + + + sgml + text/sgml + + + sh + application/x-sh + + + shar + application/x-shar + + + shf + application/shf+xml + + + + sig + application/pgp-signature + + + silo + model/mesh + + + sis + application/vnd.symbian.install + + + sisx + application/vnd.symbian.install + + + sit + application/x-stuffit + + + sitx + application/x-stuffitx + + + skd + application/vnd.koan + + + skm + application/vnd.koan + + + skp + application/vnd.koan + + + skt + application/vnd.koan + + + sldm + application/vnd.ms-powerpoint.slide.macroenabled.12 + + + sldx + application/vnd.openxmlformats-officedocument.presentationml.slide + + + slt + application/vnd.epson.salt + + + sm + application/vnd.stepmania.stepchart + + + smf + application/vnd.stardivision.math + + + smi + application/smil+xml + + + smil + application/smil+xml + + + smzip + application/vnd.stepmania.package + + + snd + audio/basic + + + snf + application/x-font-snf + + + so + application/octet-stream + + + spc + application/x-pkcs7-certificates + + + spf + application/vnd.yamaha.smaf-phrase + + + spl + application/x-futuresplash + + + spot + text/vnd.in3d.spot + + + spp + application/scvp-vp-response + + + spq + application/scvp-vp-request + + + spx + audio/ogg + + + src + application/x-wais-source + + + sru + application/sru+xml + + + srx + application/sparql-results+xml + + + sse + application/vnd.kodak-descriptor + + + ssf + application/vnd.epson.ssf + + + ssml + application/ssml+xml + + + st + application/vnd.sailingtracker.track + + + stc + application/vnd.sun.xml.calc.template + + + std + application/vnd.sun.xml.draw.template + + + stf + application/vnd.wt.stf + + + sti + application/vnd.sun.xml.impress.template + + + stk + application/hyperstudio + + + stl + application/vnd.ms-pki.stl + + + str + application/vnd.pg.format + + + stw + application/vnd.sun.xml.writer.template + + + sub + text/vnd.dvb.subtitle + + + sus + application/vnd.sus-calendar + + + susp + application/vnd.sus-calendar + + + sv4cpio + application/x-sv4cpio + + + sv4crc + application/x-sv4crc + + + svc + application/vnd.dvb.service + + + svd + application/vnd.svd + + + svg + image/svg+xml + + + svgz + image/svg+xml + + + swa + application/x-director + + + swf + application/x-shockwave-flash + + + swi + application/vnd.aristanetworks.swi + + + sxc + application/vnd.sun.xml.calc + + + sxd + application/vnd.sun.xml.draw + + + sxg + application/vnd.sun.xml.writer.global + + + sxi + application/vnd.sun.xml.impress + + + sxm + application/vnd.sun.xml.math + + + sxw + application/vnd.sun.xml.writer + + + t + text/troff + + + taglet + application/vnd.mynfc + + + tao + application/vnd.tao.intent-module-archive + + + tar + application/x-tar + + + tcap + application/vnd.3gpp2.tcap + + + tcl + application/x-tcl + + + teacher + application/vnd.smart.teacher + + + tei + application/tei+xml + + + teicorpus + application/tei+xml + + + tex + application/x-tex + + + texi + application/x-texinfo + + + texinfo + application/x-texinfo + + + text + text/plain + + + tfi + application/thraud+xml + + + tfm + application/x-tex-tfm + + + thmx + application/vnd.ms-officetheme + + + tif + image/tiff + + + tiff + image/tiff + + + tmo + application/vnd.tmobile-livetv + + + torrent + application/x-bittorrent + + + tpl + application/vnd.groove-tool-template + + + tpt + application/vnd.trid.tpt + + + tr + text/troff + + + tra + application/vnd.trueapp + + + trm + application/x-msterminal + + + tsd + application/timestamped-data + + + tsv + text/tab-separated-values + + + ttc + application/x-font-ttf + + + ttf + application/x-font-ttf + + + ttl + text/turtle + + + twd + application/vnd.simtech-mindmapper + + + twds + application/vnd.simtech-mindmapper + + + txd + application/vnd.genomatix.tuxedo + + + txf + application/vnd.mobius.txf + + + txt + text/plain + + + u32 + application/x-authorware-bin + + + udeb + application/x-debian-package + + + ufd + application/vnd.ufdl + + + ufdl + application/vnd.ufdl + + + ulw + audio/basic + + + umj + application/vnd.umajin + + + unityweb + application/vnd.unity + + + uoml + application/vnd.uoml+xml + + + uri + text/uri-list + + + uris + text/uri-list + + + urls + text/uri-list + + + ustar + application/x-ustar + + + utz + application/vnd.uiq.theme + + + uu + text/x-uuencode + + + uva + audio/vnd.dece.audio + + + uvd + application/vnd.dece.data + + + uvf + application/vnd.dece.data + + + uvg + image/vnd.dece.graphic + + + uvh + video/vnd.dece.hd + + + uvi + image/vnd.dece.graphic + + + uvm + video/vnd.dece.mobile + + + uvp + video/vnd.dece.pd + + + uvs + video/vnd.dece.sd + + + uvt + application/vnd.dece.ttml+xml + + + uvu + video/vnd.uvvu.mp4 + + + uvv + video/vnd.dece.video + + + uvva + audio/vnd.dece.audio + + + uvvd + application/vnd.dece.data + + + uvvf + application/vnd.dece.data + + + uvvg + image/vnd.dece.graphic + + + uvvh + video/vnd.dece.hd + + + uvvi + image/vnd.dece.graphic + + + uvvm + video/vnd.dece.mobile + + + uvvp + video/vnd.dece.pd + + + uvvs + video/vnd.dece.sd + + + uvvt + application/vnd.dece.ttml+xml + + + uvvu + video/vnd.uvvu.mp4 + + + uvvv + video/vnd.dece.video + + + uvvx + application/vnd.dece.unspecified + + + uvvz + application/vnd.dece.zip + + + uvx + application/vnd.dece.unspecified + + + uvz + application/vnd.dece.zip + + + vcard + text/vcard + + + vcd + application/x-cdlink + + + vcf + text/x-vcard + + + vcg + application/vnd.groove-vcard + + + vcs + text/x-vcalendar + + + vcx + application/vnd.vcx + + + vis + application/vnd.visionary + + + viv + video/vnd.vivo + + + vor + application/vnd.stardivision.writer + + + vox + application/x-authorware-bin + + + vrml + model/vrml + + + vsd + application/vnd.visio + + + vsf + application/vnd.vsf + + + vss + application/vnd.visio + + + vst + application/vnd.visio + + + vsw + application/vnd.visio + + + vtu + model/vnd.vtu + + + vxml + application/voicexml+xml + + + w3d + application/x-director + + + wad + application/x-doom + + + wav + audio/x-wav + + + wax + audio/x-ms-wax + + + + wbmp + image/vnd.wap.wbmp + + + wbs + application/vnd.criticaltools.wbs+xml + + + wbxml + application/vnd.wap.wbxml + + + wcm + application/vnd.ms-works + + + wdb + application/vnd.ms-works + + + weba + audio/webm + + + webm + video/webm + + + webp + image/webp + + + wg + application/vnd.pmi.widget + + + wgt + application/widget + + + wks + application/vnd.ms-works + + + wm + video/x-ms-wm + + + wma + audio/x-ms-wma + + + wmd + application/x-ms-wmd + + + wmf + application/x-msmetafile + + + + wml + text/vnd.wap.wml + + + + wmlc + application/vnd.wap.wmlc + + + + wmls + text/vnd.wap.wmlscript + + + + wmlsc + application/vnd.wap.wmlscriptc + + + wmv + video/x-ms-wmv + + + wmx + video/x-ms-wmx + + + wmz + application/x-ms-wmz + + + woff + application/x-font-woff + + + wpd + application/vnd.wordperfect + + + wpl + application/vnd.ms-wpl + + + wps + application/vnd.ms-works + + + wqd + application/vnd.wqd + + + wri + application/x-mswrite + + + wrl + model/vrml + + + wsdl + application/wsdl+xml + + + wspolicy + application/wspolicy+xml + + + wtb + application/vnd.webturbo + + + wvx + video/x-ms-wvx + + + x32 + application/x-authorware-bin + + + x3d + application/vnd.hzn-3d-crossword + + + xap + application/x-silverlight-app + + + xar + application/vnd.xara + + + xbap + application/x-ms-xbap + + + xbd + application/vnd.fujixerox.docuworks.binder + + + xbm + image/x-xbitmap + + + xdf + application/xcap-diff+xml + + + xdm + application/vnd.syncml.dm+xml + + + xdp + application/vnd.adobe.xdp+xml + + + xdssc + application/dssc+xml + + + xdw + application/vnd.fujixerox.docuworks + + + xenc + application/xenc+xml + + + xer + application/patch-ops-error+xml + + + xfdf + application/vnd.adobe.xfdf + + + xfdl + application/vnd.xfdl + + + xht + application/xhtml+xml + + + xhtml + application/xhtml+xml + + + xhvml + application/xv+xml + + + xif + image/vnd.xiff + + + xla + application/vnd.ms-excel + + + xlam + application/vnd.ms-excel.addin.macroenabled.12 + + + xlc + application/vnd.ms-excel + + + xlm + application/vnd.ms-excel + + + xls + application/vnd.ms-excel + + + xlsb + application/vnd.ms-excel.sheet.binary.macroenabled.12 + + + xlsm + application/vnd.ms-excel.sheet.macroenabled.12 + + + xlsx + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + + + xlt + application/vnd.ms-excel + + + xltm + application/vnd.ms-excel.template.macroenabled.12 + + + xltx + application/vnd.openxmlformats-officedocument.spreadsheetml.template + + + xlw + application/vnd.ms-excel + + + xml + application/xml + + + xo + application/vnd.olpc-sugar + + + xop + application/xop+xml + + + xpi + application/x-xpinstall + + + xpm + image/x-xpixmap + + + xpr + application/vnd.is-xpr + + + xps + application/vnd.ms-xpsdocument + + + xpw + application/vnd.intercon.formnet + + + xpx + application/vnd.intercon.formnet + + + xsl + application/xml + + + xslt + application/xslt+xml + + + xsm + application/vnd.syncml+xml + + + xspf + application/xspf+xml + + + xul + application/vnd.mozilla.xul+xml + + + xvm + application/xv+xml + + + xvml + application/xv+xml + + + xwd + image/x-xwindowdump + + + xyz + chemical/x-xyz + + + yang + application/yang + + + yin + application/yin+xml + + + z + application/x-compress + + + Z + application/x-compress + + + zaz + application/vnd.zzazz.deck+xml + + + zip + application/zip + + + zir + application/vnd.zul + + + zirz + application/vnd.zul + + + zmm + application/vnd.handheld-entertainment+xml + + + + + + + + + + + + + + + + + + index.html + index.htm + index.jsp + + + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-29" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-29" new file mode 100644 index 0000000..5f3a7d0 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-29" @@ -0,0 +1,20 @@ +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:54:08 +0800] "GET /brand-demo HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:30 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:30 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 7 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:55 +0800] "GET /webWork/step1.html HTTP/1.1" 200 994 http-bio-8080-exec-4 1 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:54 +0800] "GET /webWork/step1.html HTTP/1.1" 200 994 http-bio-8080-exec-5 5 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:55 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:57 +0800] "POST /src/main/webapp HTTP/1.1" 404 - http-bio-8080-exec-8 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:00:13 +0800] "POST /src/main/webapp HTTP/1.1" 404 - http-bio-8080-exec-9 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:19 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:19 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 7 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:30 +0800] "GET /webWork/step1.html HTTP/1.1" 200 975 http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:55 +0800] "GET /webWork/step1.html HTTP/1.1" 200 975 http-bio-8080-exec-5 1 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:58 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-6 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:41 +0800] "GET /login-test/loginServlet HTTP/1.1" 404 - http-bio-8080-exec-7 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:47 +0800] "GET /webWork/step1.html HTTP/1.1" 200 988 http-bio-8080-exec-9 2 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:52 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-10 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:39 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:39 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:45 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:48 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-5 0 diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-31" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-31" new file mode 100644 index 0000000..5c1dc1b --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-31" @@ -0,0 +1,50 @@ +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 14 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:37:04 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 5 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:37:08 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-6 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:15 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-5 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:58:57 +0800] "GET /webWork/step1.html HTTP/1.1" 200 1010 http-bio-8080-exec-1 26 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:59:00 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-3 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:29 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:29 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:35 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 4 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:10:24 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-6 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:10:26 +0800] "GET /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 15 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:58 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:02 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-6 5 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:56 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:57 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 19 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:05 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:14 +0800] "GET /webWork/step2.heml HTTP/1.1" 404 987 http-bio-8080-exec-5 1 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:19 +0800] "GET /webWork/step2.html HTTP/1.1" 200 1191 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:33:18 +0800] "GET /webWork/step1.heml HTTP/1.1" 404 987 http-bio-8080-exec-1 30 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:33:25 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-3 4 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:36:41 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:36:41 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 20 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:37:16 +0800] "GET /webWork/step1.html HTTP/1.1" 200 1000 http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:37:19 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 4 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:40 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:40 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:46 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:48 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:22 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:22 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 14 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:31 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:33 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:08 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:08 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:22 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 5 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:22 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:05 +0800] "GET /webWork/step3.html HTTP/1.1" 404 987 http-bio-8080-exec-7 2 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:10 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 993 http-bio-8080-exec-9 418 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 993 http-bio-8080-exec-10 35 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:29:55 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1057 http-bio-8080-exec-3 26 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:31:26 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1069 http-bio-8080-exec-2 24 diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-01" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-01" new file mode 100644 index 0000000..9fc8f49 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-01" @@ -0,0 +1,6 @@ +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:04 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-2 0 +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:04 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:05 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1208 http-bio-8080-exec-5 464 +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:54 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1230 http-bio-8080-exec-6 42 +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:53:28 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1230 http-bio-8080-exec-7 43 diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-03" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-03" new file mode 100644 index 0000000..d350f0a --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-03" @@ -0,0 +1,63 @@ +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:46 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 10 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:49 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-6 8 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:49 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-7 7 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:27:59 +0800] "GET /webWork/step2.html HTTP/1.1" 200 1191 http-bio-8080-exec-9 3 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:07 +0800] "POST /webWork/addressServlet HTTP/1.1" 200 - http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:21 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:21 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 12 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:28 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 7 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:28 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:33 +0800] "POST /webWork/addressServlet HTTP/1.1" 200 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:15 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:15 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 12 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:21 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 7 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:21 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:25 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:26 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1209 http-bio-8080-exec-7 412 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:35 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-9 3 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-9 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:38 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:43 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:43 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1175 http-bio-8080-exec-9 73 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:55:44 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 64 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:55:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:12 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:12 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 3 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:32 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:32 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 70 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:19 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1106 http-bio-8080-exec-10 64 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:21 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1106 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:40 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-10 66 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:41 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:59:54 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-5 47 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:59:56 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-5 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:00 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 38 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:00 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:02 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:36 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:36 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 9 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:44 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 4 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:44 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 2 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:48 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-7 13 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 264 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:08 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:08 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:04:19 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1192 http-bio-8080-exec-8 48 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:05:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1179 http-bio-8080-exec-8 43 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:05:22 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1179 http-bio-8080-exec-8 42 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:30 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-1 326 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:30 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:36 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 2 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:38 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:43 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:43 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-8 1 diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-06" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-06" new file mode 100644 index 0000000..96549aa --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-06" @@ -0,0 +1,87 @@ +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:22 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:39 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-6 7 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:39 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-7 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:45 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-8 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-9 21 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:14:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1147 http-bio-8080-exec-1 429 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:15:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-3 46 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:35 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:35 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 11 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:43 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 6 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:43 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:48 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-7 21 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:18:33 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-8 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:18:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-9 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:19:23 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:22 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-10 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:22 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-10 358 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:25 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-4 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-4 45 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:34 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-6 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:01 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:01 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:04 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-4 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:15 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 5 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:15 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 3 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:19 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:20 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-8 368 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:46 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1224 http-bio-8080-exec-2 55 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:22:27 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1242 http-bio-8080-exec-10 41 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:42 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 38 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:44 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-1 49 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:17 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-2 4 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:19 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:20 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:20 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:24 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:24 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-8 3 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:35 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-3 3 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-9 340 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-10 5 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-1 4 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:21 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-2 43 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 39 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:37 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:37 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:38 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:38 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:39 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:12 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 41 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:14 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:36:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1226 http-bio-8080-exec-9 41 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:36:49 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1226 http-bio-8080-exec-9 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:39:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-4 37 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 32 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:52 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:49:03 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1364 http-bio-8080-exec-6 34 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:14 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 27 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:42 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 31 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1269 http-bio-8080-exec-10 31 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 32 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:06 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:52:59 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-1 28 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:00 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-3 8 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:00 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:04 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-5 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2370 http-bio-8080-exec-6 25 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:28 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2804 http-bio-8080-exec-2 344 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1199 http-bio-8080-exec-7 49 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:54:40 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:54:40 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1113 http-bio-8080-exec-10 40 -- Gitee From 64ed291425dcddab2e2f82e8c34eb187982b3cb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=87=E5=8B=8B?= <2576306354@qq.com> Date: Sun, 20 Nov 2022 15:16:00 +0000 Subject: [PATCH 113/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈宇勋 <2576306354@qq.com> --- .../Servlet/Servlet1.java" | 40 +++++++++++ .../Servlet/Servlet2.java" | 32 +++++++++ .../tiaozhuan/FailServlet.java" | 22 ++++++ .../tiaozhuan/Servlet3.java" | 37 ++++++++++ .../tiaozhuan/SuccessServlet.java" | 22 ++++++ .../JavaWebServlet01/Fail01.java" | 24 +++++++ .../JavaWebServlet01/Servlet1.java" | 27 ++++++++ .../JavaWebServlet01/Success01.java" | 23 +++++++ .../JavaWebServlet02/Fail02.java" | 24 +++++++ .../JavaWebServlet02/Servlet2.java" | 28 ++++++++ .../JavaWebServlet02/Success02.java" | 24 +++++++ .../web/WEB-INF/web.xml" | 6 ++ .../web/index.jsp" | 16 +++++ .../web/login.html" | 14 ++++ .../web/login2.html" | 14 ++++ .../Downlaod/DownloadServlet1.java" | 47 +++++++++++++ .../Downlaod/download.html" | 11 +++ .../JavaWebServlet03/LoginCheckServlet.java" | 46 +++++++++++++ .../ValidateCodeServlet.java" | 69 +++++++++++++++++++ .../JavaWebServlet03/login3.html" | 21 ++++++ 20 files changed, 547 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/Servlet/Servlet1.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/Servlet/Servlet2.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/tiaozhuan/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/tiaozhuan/Servlet3.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/tiaozhuan/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet01/Fail01.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet01/Servlet1.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet01/Success01.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet02/Fail02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet02/Servlet2.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet02/Success02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/web/WEB-INF/web.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/web/index.jsp" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/web/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/web/login2.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/Downlaod/DownloadServlet1.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/Downlaod/download.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/JavaWebServlet03/LoginCheckServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/JavaWebServlet03/ValidateCodeServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/JavaWebServlet03/login3.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/Servlet/Servlet1.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/Servlet/Servlet1.java" new file mode 100644 index 0000000..17d5f67 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/Servlet/Servlet1.java" @@ -0,0 +1,40 @@ +package javaweb.Servlet; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +@WebServlet("/s0") +public class Servlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username=req.getParameter("username"); + String password=req.getParameter("password"); + System.out.println(req.getQueryString()); + if ("admin".equals(username)&&"admin".equals(password)) { + System.out.println("登陆成功!"); + }else { + System.out.println("登陆失败"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + BufferedReader reader=req.getReader(); + String line; + while ((line=reader.readLine())!=null){ + String[] parametersArr=line.split("&"); + String username=parametersArr[0].split("=")[1]; + String password=parametersArr[1].split("=")[1]; + System.out.println(line); + if ("admin".equals(username)&&"admin".equals(password)) { + System.out.println("登陆成功!"); + }else { + System.out.println("登陆失败"); + } + } + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/Servlet/Servlet2.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/Servlet/Servlet2.java" new file mode 100644 index 0000000..8045d30 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/Servlet/Servlet2.java" @@ -0,0 +1,32 @@ +package javaweb.Servlet; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/s1") +public class Servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("UTF-8"); + + System.out.println("do....................post"); + String username=req.getParameter("username"); + String password=req.getParameter("password"); + String hobby=req.getParameter("hobby"); + String gender=req.getParameter("gender"); + + System.out.println("账号:"+username); + System.out.println("密码:"+password); + System.out.println("性别:"+gender); + System.out.println("爱好:"+hobby); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/tiaozhuan/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/tiaozhuan/FailServlet.java" new file mode 100644 index 0000000..4046385 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/tiaozhuan/FailServlet.java" @@ -0,0 +1,22 @@ +package tiaozhuan; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/fail3") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("登陆失败!!!!!!!!!!!!!!!!!!!!!!!!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/tiaozhuan/Servlet3.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/tiaozhuan/Servlet3.java" new file mode 100644 index 0000000..57f8553 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/tiaozhuan/Servlet3.java" @@ -0,0 +1,37 @@ +package tiaozhuan; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +@WebServlet("/s3") +public class Servlet3 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + BufferedReader reader=req.getReader(); + String line; + while ((line=reader.readLine())!=null){ + String []arr=line.split("&"); + String username=arr[0].split("=")[1]; + String password=arr[1].split("=")[1]; + if ("admin".equals(username)&&"admin".equals(password)) { + req.getRequestDispatcher("/success3").forward(req,resp); + System.out.println(line); + } + else { + req.getRequestDispatcher("/fail3").forward(req,resp); + } + + } + + + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/tiaozhuan/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/tiaozhuan/SuccessServlet.java" new file mode 100644 index 0000000..ceaca26 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2321/tiaozhuan/SuccessServlet.java" @@ -0,0 +1,22 @@ +package tiaozhuan; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/success3") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("登陆成功!!!!!!!!!!!!!!!!!!!!!!!!!"); +} +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet01/Fail01.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet01/Fail01.java" new file mode 100644 index 0000000..d9b853a --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet01/Fail01.java" @@ -0,0 +1,24 @@ +package JavaWebServlet01; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail01") +public class Fail01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet01/Servlet1.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet01/Servlet1.java" new file mode 100644 index 0000000..8c8c0d3 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet01/Servlet1.java" @@ -0,0 +1,27 @@ +package JavaWebServlet01; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/s1") +public class Servlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username=req.getParameter("username"); + String password=req.getParameter("password"); + if ("admin".equals(username)&&"admin".equals(password)) { + req.getRequestDispatcher("/Success01").forward(req,resp); + } + else { + req.getRequestDispatcher("/Fail01").forward(req,resp); + } + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet01/Success01.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet01/Success01.java" new file mode 100644 index 0000000..14589c8 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet01/Success01.java" @@ -0,0 +1,23 @@ +package JavaWebServlet01; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Success01") +public class Success01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet02/Fail02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet02/Fail02.java" new file mode 100644 index 0000000..f81a3b4 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet02/Fail02.java" @@ -0,0 +1,24 @@ +package JavaWebServlet02; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail02") +public class Fail02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet02/Servlet2.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet02/Servlet2.java" new file mode 100644 index 0000000..482f1a9 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet02/Servlet2.java" @@ -0,0 +1,28 @@ +package JavaWebServlet02; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/s2") +public class Servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String uname=req.getParameter("uname"); + String password=req.getParameter("password"); + if ("admin".equals(uname)&&"admin".equals(password)) { + resp.sendRedirect("Success02"); + } + else { + resp.sendRedirect("Fail02"); + } + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet02/Success02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet02/Success02.java" new file mode 100644 index 0000000..6353777 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/JavaWebServlet02/Success02.java" @@ -0,0 +1,24 @@ +package JavaWebServlet02; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Success02") +public class Success02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/web/WEB-INF/web.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/web/WEB-INF/web.xml" new file mode 100644 index 0000000..d80081d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/web/WEB-INF/web.xml" @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/web/index.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/web/index.jsp" new file mode 100644 index 0000000..4347da2 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/web/index.jsp" @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/9/27 + Time: 11:16 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + $END$ + + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/web/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/web/login.html" new file mode 100644 index 0000000..c19aa58 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/web/login.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/web/login2.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/web/login2.html" new file mode 100644 index 0000000..3a32640 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2322/web/login2.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/Downlaod/DownloadServlet1.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/Downlaod/DownloadServlet1.java" new file mode 100644 index 0000000..0864933 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/Downlaod/DownloadServlet1.java" @@ -0,0 +1,47 @@ +package Downlaod; + +import javax.activation.MimeType; +import javax.servlet.ServletContext; +import javax.servlet.ServletException; +import javax.servlet.ServletInputStream; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/DownloadServlet1") +public class DownloadServlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取请求参数,文件名 + String filename=req.getParameter("filename"); + //1.使用字节流加载文件进内存 + //1.1找到服务器路径 + ServletContext servletContext=this.getServletContext(); + String realPath = servletContext.getRealPath("/img/"+filename); + //1.2用字节流关联 + ServletInputStream fis=req.getInputStream(); + + //2.设置response响应头 + //2.1设置响应头:content-type= ; + String mimeType = servletContext.getMimeType(filename); + resp.setHeader("content-type",mimeType); + //2.2设置响应头打开方式:content-disposition + resp.setHeader("content-disposition","attachment;filename="+filename); + //将输入流的数据写到输出流 + ServletOutputStream sos=resp.getOutputStream(); + byte [] buff=new byte[1024*8]; + int len=0; + while ((len=fis.read(buff))!=-1){ + sos.write(buff,0,len); + } + fis.close(); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/Downlaod/download.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/Downlaod/download.html" new file mode 100644 index 0000000..274e1a3 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/Downlaod/download.html" @@ -0,0 +1,11 @@ + + + + + Title + +图片
+视频 + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/JavaWebServlet03/LoginCheckServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/JavaWebServlet03/LoginCheckServlet.java" new file mode 100644 index 0000000..968637d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/JavaWebServlet03/LoginCheckServlet.java" @@ -0,0 +1,46 @@ +package JavaWebServlet03; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.nio.charset.StandardCharsets; + +@WebServlet("/LoginCheckServlet") +public class LoginCheckServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //接收账号,密码,验证码 + String username=req.getParameter("username"); + String password=req.getParameter("password"); + String userCode=req.getParameter("userCode"); + //从session中取出正确验证码 + HttpSession session=req.getSession(); + String vCode= (String) session.getAttribute("vCode"); + //将用户输入的验证码和从session中的正确验证码进行对比 + resp.setContentType("text/html;charset=UTF-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + if (userCode.equals(vCode)) { + if ("admin".equals(username)&&"admin".equals(password)){ + + outputStream.write("登陆成功".getBytes("UTF-8")); + }else { + + outputStream.write("登陆失败,密码错误".getBytes("UTF-8")); + } + }else { + + outputStream.write("登陆失败,验证码错误".getBytes("UTF-8")); + } + + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/JavaWebServlet03/ValidateCodeServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/JavaWebServlet03/ValidateCodeServlet.java" new file mode 100644 index 0000000..0b000b8 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\344\270\211\347\253\240\344\275\234\344\270\2323/JavaWebServlet03/ValidateCodeServlet.java" @@ -0,0 +1,69 @@ +package JavaWebServlet03; + +import javax.imageio.ImageIO; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import javax.xml.ws.spi.http.HttpContext; +import java.awt.*; +import java.awt.image.BufferedImage; +import java.io.IOException; +import java.util.Random; +@WebServlet("/ValidateCodeServlet") +public class ValidateCodeServlet extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建一张图片 + int width=300;//验证码宽度 + int height=90;//验证码高度 + BufferedImage image=new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); + //绘制图片 + //从图片对象中获取绘制图片的“笔” + Graphics pen=image.createGraphics(); + //绘制背景 + pen.setColor(getRandomColor()); + //fillRect:绘制实心矩形 + pen.fillRect(0,0,width,height); + //绘制验证码字符串 + int letterNum=4;//验证码图片上的字符的个数 + int space=20;//验证码图片上两个字母之间的空隙 + int letterWidth=(width-(letterNum+1)*space)/letterNum;//计算每个字母占据的宽度 + //for循环每循环一次,绘制一个字母(小写字母的ASCII码97-122) + String vCode=""; + Random random=new Random(); + for(int i=0;i + + + + 用户登录 + +
+ 账号:
+ 密码:
+ 验证码: +
+
+
+ + + \ No newline at end of file -- Gitee From e078189b95922e0b079e19866341bb63be8be917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=87=E5=8B=8B?= <2576306354@qq.com> Date: Sun, 20 Nov 2022 15:16:46 +0000 Subject: [PATCH 114/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈宇勋 <2576306354@qq.com> --- .../Cookie/CookieDemo1.java" | 26 +++++++ .../Cookie/CookieDemo2.java" | 30 ++++++++ .../Cookie/CookieTest.java" | 70 +++++++++++++++++++ .../Step1.java" | 27 +++++++ .../Step2.java" | 35 ++++++++++ .../address.html" | 55 +++++++++++++++ .../books.html" | 47 +++++++++++++ .../confirm.html" | 50 +++++++++++++ .../Numbers.jsp" | 56 +++++++++++++++ 9 files changed, 396 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/Cookie/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/Cookie/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/Cookie/CookieTest.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/confirm.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2323/Numbers.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/Cookie/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/Cookie/CookieDemo1.java" new file mode 100644 index 0000000..d9bcfd5 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/Cookie/CookieDemo1.java" @@ -0,0 +1,26 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/Cookie/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/Cookie/CookieDemo2.java" new file mode 100644 index 0000000..1b43558 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/Cookie/CookieDemo2.java" @@ -0,0 +1,30 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo2") +public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/Cookie/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/Cookie/CookieTest.java" new file mode 100644 index 0000000..360125e --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/Cookie/CookieTest.java" @@ -0,0 +1,70 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step1.java" new file mode 100644 index 0000000..d076d58 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step1.java" @@ -0,0 +1,27 @@ +package Demo1; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step2.java" new file mode 100644 index 0000000..0ffd442 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step2.java" @@ -0,0 +1,35 @@ +package Demo1; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/address.html" new file mode 100644 index 0000000..c658c29 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/address.html" @@ -0,0 +1,55 @@ +<%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/1 + Time: 19:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/books.html" new file mode 100644 index 0000000..1089899 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/books.html" @@ -0,0 +1,47 @@ +<%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/1 + Time: 19:01 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + +

Step1选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/confirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/confirm.html" new file mode 100644 index 0000000..7ee1d46 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/confirm.html" @@ -0,0 +1,50 @@ +<%@ page import="java.lang.reflect.Array" %> +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/1 + Time: 20:27 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print(session.getAttribute("name"));%>
地址:<%out.print(session.getAttribute("address"));%>
付款信息
信用卡类型<%out.print(Arrays.toString((Object[]) session.getAttribute("types")));%>
卡号:<%out.print(session.getAttribute("username"));%>
订货项目<% out.print(Arrays.toString((Object[]) session.getAttribute("books")));%>
+ + + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2323/Numbers.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2323/Numbers.jsp" new file mode 100644 index 0000000..9a8cb07 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2323/Numbers.jsp" @@ -0,0 +1,56 @@ +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/5 + Time: 16:54 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +<% + String [][]a={{"一"},{"二"},{"三"}}; + String [][]b={{"四"},{"五"},{"六"}}; + String [][]c={{"七"},{"八"},{"九"}}; +// String a="一"; +// String b="二"; +// String c="三"; +// String d="四"; +// String e="五"; +// String f="六"; +// String g="七"; +// String h="八"; +// String i="九"; +%> +

JSP数组内容

+ + + + + + + + + + + + + + + + + +
<%out.print(Arrays.toString(a[0]));%><%out.print(Arrays.toString(a[1]));%><%out.print(Arrays.toString(a[2]));%>
<%out.print(Arrays.toString(b[0]));%><%out.print(Arrays.toString(b[1]));%><%out.print(Arrays.toString(b[2]));%>
<%out.print(Arrays.toString(c[0]));%><%out.print(Arrays.toString(c[1]));%><%out.print(Arrays.toString(c[2]));%>
+ + + -- Gitee From 59e3edb0acc58f7a279434439f234e39e70ef1ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=87=E5=8B=8B?= <2576306354@qq.com> Date: Sun, 20 Nov 2022 15:17:09 +0000 Subject: [PATCH 115/688] =?UTF-8?q?add=20=E7=AC=AC=E5=9B=9B=E7=AB=A0?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈宇勋 <2576306354@qq.com> --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 22ad92e64efa1711446b440d42314736dffca9a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=87=E5=8B=8B?= <2576306354@qq.com> Date: Sun, 20 Nov 2022 15:17:38 +0000 Subject: [PATCH 116/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈宇勋 <2576306354@qq.com> --- .../jstlwork1.jsp" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\205\255\347\253\240\344\275\234\344\270\2321/jstlwork1.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\205\255\347\253\240\344\275\234\344\270\2321/jstlwork1.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\205\255\347\253\240\344\275\234\344\270\2321/jstlwork1.jsp" new file mode 100644 index 0000000..38fd3d2 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/Java\347\254\254\345\205\255\347\253\240\344\275\234\344\270\2321/jstlwork1.jsp" @@ -0,0 +1,34 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/12 + Time: 21:27 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("陈恒辉"); + user.add("邹晓民"); + user.add("细狗"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + -- Gitee From 948ca41ce5e10ec50dfdd127b18b4be7fc52cc68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=87=E5=8B=8B?= <2576306354@qq.com> Date: Sun, 20 Nov 2022 15:18:20 +0000 Subject: [PATCH 117/688] =?UTF-8?q?add=20=E7=AC=AC=E5=85=AD=E7=AB=A0?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈宇勋 <2576306354@qq.com> --- .../.krigr" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/.krigr" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/.krigr" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/.krigr" new file mode 100644 index 0000000..e69de29 -- Gitee From 51e78fb44b94f71e361c4851dc98abd2f7a1764e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=87=E5=8B=8B?= <2576306354@qq.com> Date: Sun, 20 Nov 2022 15:18:36 +0000 Subject: [PATCH 118/688] =?UTF-8?q?add=20=E7=AC=AC=E5=85=AD=E7=AB=A0?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A/=E9=99=88=E5=AE=87=E5=8B=8B.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈宇勋 <2576306354@qq.com> --- .../\351\231\210\345\256\207\345\213\213/fewg " | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/fewg " diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/fewg " "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\345\256\207\345\213\213/fewg " new file mode 100644 index 0000000..e69de29 -- Gitee From cb34126a327a91cf89e908f4982135c52efcbd6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 21 Nov 2022 13:41:38 +0000 Subject: [PATCH 119/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=83?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 0ae22304fa58d44a9cd4564d0f2c1222c5b7fc4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 21 Nov 2022 13:42:01 +0000 Subject: [PATCH 120/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=8E=8B=E6=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From a6e490fcd58ee5cd032d50dabed0722503b980f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 21 Nov 2022 13:46:12 +0000 Subject: [PATCH 121/688] =?UTF-8?q?=E7=8E=8B=E6=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王旭 <10602891+wx1927910504@user.noreply.gitee.com> --- .../\347\216\213\346\227\255/User.java" | 41 ++++++++++++++++ .../\347\216\213\346\227\255/test.jsp" | 47 +++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/User.java" new file mode 100644 index 0000000..6adff56 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/User.java" @@ -0,0 +1,41 @@ +package week12; + +public class User { + private String name; + private int age; + private String address; + + public User() { + } + + public User(String name, int age, String address) { + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } +} + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/test.jsp" new file mode 100644 index 0000000..a766931 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/test.jsp" @@ -0,0 +1,47 @@ +<%@ page import="week12.User" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %> +<%-- + Created by IntelliJ IDEA. + week12.User: WX1927910504 + Date: 2022/11/16 + Time: 20:09 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new User("张三",22,"福建")); + list.add(new User("李四",23,"江西")); + list.add(new User("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.address} + +
+ + + -- Gitee From 99baeb2df3e2307acc7f23fb56fcb31965e69e39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 21 Nov 2022 13:46:19 +0000 Subject: [PATCH 122/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=8E=8B?= =?UTF-8?q?=E6=97=AD/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 0b266d887efe497250b7594d168cdb51cf46364c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 21 Nov 2022 13:46:26 +0000 Subject: [PATCH 123/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C=E4=B8=9A/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 2d723127153ea6429e435ca2a14474b9d2b20bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 21 Nov 2022 13:51:16 +0000 Subject: [PATCH 124/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=8E=8B?= =?UTF-8?q?=E6=97=AD/User.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/User.java" | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/User.java" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/User.java" deleted file mode 100644 index 6adff56..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/User.java" +++ /dev/null @@ -1,41 +0,0 @@ -package week12; - -public class User { - private String name; - private int age; - private String address; - - public User() { - } - - public User(String name, int age, String address) { - this.name = name; - this.age = age; - this.address = address; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public int getAge() { - return age; - } - - public void setAge(int age) { - this.age = age; - } - - public String getAddress() { - return address; - } - - public void setAddress(String address) { - this.address = address; - } -} - -- Gitee From 85064cc3e5157d3a02fd75337209503a54e090b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 21 Nov 2022 13:51:29 +0000 Subject: [PATCH 125/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=8E=8B?= =?UTF-8?q?=E6=97=AD/test.jsp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/test.jsp" | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/test.jsp" deleted file mode 100644 index a766931..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/test.jsp" +++ /dev/null @@ -1,47 +0,0 @@ -<%@ page import="week12.User" %> -<%@ page import="java.util.ArrayList" %> -<%@ page import="java.util.List" %> -<%-- - Created by IntelliJ IDEA. - week12.User: WX1927910504 - Date: 2022/11/16 - Time: 20:09 - To change this template use File | Settings | File Templates. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - - - Title - - -<% - List list = new ArrayList(); - list.add(new User("张三",22,"福建")); - list.add(new User("李四",23,"江西")); - list.add(new User("王五",25,"浙江")); - request.setAttribute("list",list); -%> - - - - - - - - - - - - - - - - - -
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.address} - -
- - - -- Gitee From bbb203011c09ace48cf9309dc5a8addf3ba987a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 21 Nov 2022 13:52:07 +0000 Subject: [PATCH 126/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=83?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 2e55d521304f05ef4144b4e2a8a59a9f3c5dcf9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 21 Nov 2022 13:52:32 +0000 Subject: [PATCH 127/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=8E=8B=E6=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From c95f768424aac0aa8c71b745b9b2cd9e9d1d91b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 21 Nov 2022 13:53:45 +0000 Subject: [PATCH 128/688] 1114 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王旭 <10602891+wx1927910504@user.noreply.gitee.com> --- .../\347\216\213\346\227\255/User.java" | 41 ++++++++++++++++ .../\347\216\213\346\227\255/test.jsp" | 47 +++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/User.java" new file mode 100644 index 0000000..6adff56 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/User.java" @@ -0,0 +1,41 @@ +package week12; + +public class User { + private String name; + private int age; + private String address; + + public User() { + } + + public User(String name, int age, String address) { + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } +} + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/test.jsp" new file mode 100644 index 0000000..a766931 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/test.jsp" @@ -0,0 +1,47 @@ +<%@ page import="week12.User" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %> +<%-- + Created by IntelliJ IDEA. + week12.User: WX1927910504 + Date: 2022/11/16 + Time: 20:09 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new User("张三",22,"福建")); + list.add(new User("李四",23,"江西")); + list.add(new User("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.address} + +
+ + + -- Gitee From 061c0430e884103eabce0bcdf0d436dc6a67ff98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 21 Nov 2022 13:53:54 +0000 Subject: [PATCH 129/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=8E=8B?= =?UTF-8?q?=E6=97=AD/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From f339a11bb3e125dc448552bf7daa0dad8fa4f3ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Mon, 21 Nov 2022 13:54:00 +0000 Subject: [PATCH 130/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C=E4=B8=9A/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 1bc8b5e390e0ad8cf512b1bd2d0ed61a04a9d9e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E8=91=89?= <2249398422@qq.com> Date: Mon, 28 Nov 2022 03:59:39 +0000 Subject: [PATCH 131/688] update PPT --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 4b86c19..1b5ac86 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,27 @@ # JavaWeb作业 +[01第一章 JavaWeb开发入门.pptx - Cloudreve](http://124.71.9.121:5212/s/N5fj) +[01第二章 Servlet入门.pptx - Cloudreve](http://124.71.9.121:5212/s/6ksm) +[02第三章 HTTP&Request.pptx - Cloudreve](http://124.71.9.121:5212/s/Behd) -#### 第一章:[JavaWeb开发入门](https://www.aliyundrive.com/s/gkZ8R4NNsKp) -#### 第二章:[Servlet入门](https://www.aliyundrive.com/s/YFFBL4omDkF) -#### 第三章: -- ##### [Http & Request](https://www.aliyundrive.com/s/4AFokA1E5dR) -- ##### [Response](https://www.aliyundrive.com/s/b5sW2MCjDvw) +[03第三章 Response.pptx - Cloudreve](http://124.71.9.121:5212/s/vXUE) +[03第三章 Response (1).pptx - Cloudreve](http://124.71.9.121:5212/s/AJia) +[04第四章 会话管理.pptx - Cloudreve](http://124.71.9.121:5212/s/OQuo) +[05第五章 JSP基础1.pptx - Cloudreve](http://124.71.9.121:5212/s/VrHm) +[第七章 EL 和JSTL.pptx - Cloudreve](http://124.71.9.121:5212/s/PJCx) +[第八章 Filter过滤器.pptx - Cloudreve](http://124.71.9.121:5212/s/gRId) +[第九章 监听器.pptx - Cloudreve](http://124.71.9.121:5212/s/1Etx) +-------- - - - - - - -> 注:提取码请联系管理员获取 +[JAVA_EE_api_中英文对照版.chm - Cloudreve](http://124.71.9.121:5212/s/9oSD) -- Gitee From 0b01ea04b9fc5abf9a6178e80ee38f81642d6d9b Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Fri, 2 Dec 2022 02:49:12 +0000 Subject: [PATCH 132/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=20=E5=93=87=E9=85=B7=E9=85=B7=E9=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luane <1027872432@qq.com> --- .../Login.java" | 51 +++++++++++ .../Register.java" | 87 +++++++++++++++++++ .../login.html" | 14 +++ .../register.html" | 17 ++++ 4 files changed, 169 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/Login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/Login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/Register.java" new file mode 100644 index 0000000..8b8b781 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/login.html" new file mode 100644 index 0000000..5381a96 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/login.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/register.html" new file mode 100644 index 0000000..4d01421 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + -- Gitee From a10579bb1718413295b1172cd0f56511fbf3b517 Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Fri, 2 Dec 2022 02:53:57 +0000 Subject: [PATCH 133/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=20=E5=93=87=E9=85=B7=E9=85=B7=E9=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luane <1027872432@qq.com> --- .../FailServlet.java" | 21 ++++++++++ .../LoginServlet.java" | 40 +++++++++++++++++++ .../SuccessServlet.java" | 21 ++++++++++ .../loginservlet.html" | 14 +++++++ 4 files changed, 96 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/loginservlet.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/FailServlet.java" new file mode 100644 index 0000000..4b76b8e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/FailServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/LoginServlet.java" new file mode 100644 index 0000000..74f00ac --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/LoginServlet.java" @@ -0,0 +1,40 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/SuccessServlet.java" new file mode 100644 index 0000000..cfaf017 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/SuccessServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/loginservlet.html" new file mode 100644 index 0000000..f23af1f --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + -- Gitee From c64bef106552ab9ff72d8710cb3e88458ed3ca5d Mon Sep 17 00:00:00 2001 From: aykls <1781954235@qq.com> Date: Fri, 2 Dec 2022 08:41:09 +0000 Subject: [PATCH 134/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: aykls <1781954235@qq.com> --- .../\346\235\216\346\231\224/login.java" | 51 +++++++++++ .../\346\235\216\346\231\224/servelet.java" | 88 +++++++++++++++++++ 2 files changed, 139 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/servelet.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/servelet.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/servelet.java" new file mode 100644 index 0000000..2d146c1 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/servelet.java" @@ -0,0 +1,88 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} + -- Gitee From f98201f52355d6188a793a62bf145a59c9d57cac Mon Sep 17 00:00:00 2001 From: aykls <1781954235@qq.com> Date: Fri, 2 Dec 2022 08:41:29 +0000 Subject: [PATCH 135/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: aykls <1781954235@qq.com> --- .../LoginServlet.java" | 40 +++++++++ .../SuccessSevlect.java" | 22 +++++ .../loginservlet.html" | 14 +++ .../\346\235\216\346\231\224/servelet.java" | 88 +++++++++++++++++++ 4 files changed, 164 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/SuccessSevlect.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/loginservlet.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/servelet.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/LoginServlet.java" new file mode 100644 index 0000000..74f00ac --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/LoginServlet.java" @@ -0,0 +1,40 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/SuccessSevlect.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/SuccessSevlect.java" new file mode 100644 index 0000000..622d6d6 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/SuccessSevlect.java" @@ -0,0 +1,22 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/loginservlet.html" new file mode 100644 index 0000000..f23af1f --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/servelet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/servelet.java" new file mode 100644 index 0000000..2d146c1 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/servelet.java" @@ -0,0 +1,88 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} + -- Gitee From ad57d7e6eedc9a9f8ba615b53be703f1b71e5d75 Mon Sep 17 00:00:00 2001 From: aykls <1781954235@qq.com> Date: Fri, 2 Dec 2022 08:42:10 +0000 Subject: [PATCH 136/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: aykls <1781954235@qq.com> --- .../\346\235\216\346\231\224/Cookie.java" | 49 +++++++++++++++++ .../\346\235\216\346\231\224/Step1.java" | 27 +++++++++ .../\346\235\216\346\231\224/Step2.java" | 36 ++++++++++++ .../\346\235\216\346\231\224/address.html" | 55 +++++++++++++++++++ .../\346\235\216\346\231\224/books.html" | 47 ++++++++++++++++ .../\346\235\216\346\231\224/confirm.html" | 50 +++++++++++++++++ 6 files changed, 264 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/Cookie.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/Step1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/Step2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/confirm.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/Cookie.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/Cookie.java" new file mode 100644 index 0000000..bcaa8bc --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/Cookie.java" @@ -0,0 +1,49 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} +@WebServlet("/CookieDemo2") +class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} + + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/Step1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/Step1.java" new file mode 100644 index 0000000..d076d58 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/Step1.java" @@ -0,0 +1,27 @@ +package Demo1; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/Step2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/Step2.java" new file mode 100644 index 0000000..8ac8fed --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/Step2.java" @@ -0,0 +1,36 @@ +package Demo1; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/address.html" new file mode 100644 index 0000000..5688d2b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/address.html" @@ -0,0 +1,55 @@ +<%-- +Created by IntelliJ IDEA. +User: Administrator +Date: 2022/11/1 +Time: 19:18 +To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/books.html" new file mode 100644 index 0000000..dc2c9f4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/books.html" @@ -0,0 +1,47 @@ +<%-- +Created by IntelliJ IDEA. +User: Administrator +Date: 2022/11/1 +Time: 19:01 +To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + +

Step1选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/confirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/confirm.html" new file mode 100644 index 0000000..38a1e8b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/confirm.html" @@ -0,0 +1,50 @@ +<%@ page import="java.lang.reflect.Array" %> +<%@ page import="java.util.Arrays" %><%-- +Created by IntelliJ IDEA. +User: Administrator +Date: 2022/11/1 +Time: 20:27 +To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print(session.getAttribute("name"));%>
地址:<%out.print(session.getAttribute("address"));%>
付款信息
信用卡类型<%out.print(Arrays.toString((Object[]) session.getAttribute("types")));%>
卡号:<%out.print(session.getAttribute("username"));%>
订货项目<% out.print(Arrays.toString((Object[]) session.getAttribute("books")));%>
+ + + -- Gitee From d3c88dfa4e48e47bb9836e61496e57de21711eca Mon Sep 17 00:00:00 2001 From: aykls <1781954235@qq.com> Date: Fri, 2 Dec 2022 08:42:29 +0000 Subject: [PATCH 137/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: aykls <1781954235@qq.com> --- .../\346\235\216\346\231\224/sdf.jsp" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/sdf.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/sdf.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/sdf.jsp" new file mode 100644 index 0000000..ea39470 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/sdf.jsp" @@ -0,0 +1,34 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/12 + Time: 21:27 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("陈恒辉"); + user.add("邹晓民"); + user.add("细狗"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + -- Gitee From d15c92dcb7734507838aa56018e629d346b41f46 Mon Sep 17 00:00:00 2001 From: aykls <1781954235@qq.com> Date: Fri, 2 Dec 2022 08:43:06 +0000 Subject: [PATCH 138/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: aykls <1781954235@qq.com> --- .../\346\235\216\346\231\224/fdg.jsp" | 47 +++++++++++++++++++ .../\346\235\216\346\231\224/user.java" | 41 ++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/fdg.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/user.java" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/fdg.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/fdg.jsp" new file mode 100644 index 0000000..05b1c76 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/fdg.jsp" @@ -0,0 +1,47 @@ +<%@ page import="week12.User" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %> +<%-- + Created by IntelliJ IDEA. + week12.User: WX1927910504 + Date: 2022/11/16 + Time: 20:09 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new User("张三",22,"福建")); + list.add(new User("李四",23,"江西")); + list.add(new User("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.address} + +
+ + + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/user.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/user.java" new file mode 100644 index 0000000..caa7d4f --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/user.java" @@ -0,0 +1,41 @@ +package week12; + +public class user { + private String name; + private int age; + private String address; + + public User() { + } + + public User(String name, int age, String address) { + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } +} + -- Gitee From eae5e546506d1081ca8e103836c0651f2c440cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Fri, 2 Dec 2022 11:42:14 +0000 Subject: [PATCH 139/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=8E=8B=E6=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 5a212434c22b27a6dd7db570164e09db4f83a2f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Fri, 2 Dec 2022 11:46:05 +0000 Subject: [PATCH 140/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王旭 <10602891+wx1927910504@user.noreply.gitee.com> --- .../Step1Servlet.java" | 23 +++++++++ .../Step2Servlet.java" | 27 +++++++++++ .../\347\216\213\346\227\255/address.html" | 36 ++++++++++++++ .../\347\216\213\346\227\255/books.html" | 41 ++++++++++++++++ .../\347\216\213\346\227\255/confirm.jsp" | 47 +++++++++++++++++++ 5 files changed, 174 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Step1Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Step2Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/confirm.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Step1Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Step1Servlet.java" new file mode 100644 index 0000000..4c3fb8c --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Step1Servlet.java" @@ -0,0 +1,23 @@ +package chapter01.servlet; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/step1") +public class Step1Servlet extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[]books = req.getParameterValues("books"); + req.getSession().setAttribute("books",books); + resp.sendRedirect("/c1/address.html"); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Step2Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Step2Servlet.java" new file mode 100644 index 0000000..e7eddcd --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Step2Servlet.java" @@ -0,0 +1,27 @@ +package chapter01.servlet; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/step2") +public class Step2Servlet extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String name = req.getParameter("name"); + String address = req.getParameter("address"); + HttpSession session = req.getSession(); + session.setAttribute("name",name); + session.setAttribute("address",address); + resp.sendRedirect("/c1/confirm.jsp"); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/address.html" new file mode 100644 index 0000000..6f7a147 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/address.html" @@ -0,0 +1,36 @@ + + + + + Title + + + +

Step2:请输入寄送地址与信用卡信息

+
+ + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/books.html" new file mode 100644 index 0000000..ba769e6 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/books.html" @@ -0,0 +1,41 @@ + + + + + Title + + + +

Step1:选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/confirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/confirm.jsp" new file mode 100644 index 0000000..d821680 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/confirm.jsp" @@ -0,0 +1,47 @@ +<%@ page import="java.io.PrintWriter" %> +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + week12.User: WX1927910504 + Date: 2022/11/1 + Time: 19:53 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + HttpSession session1 = request.getSession(); + String[] books = (String[])session1.getAttribute("books"); + String name = (String)session1.getAttribute("name"); + String address = (String)session1.getAttribute("address"); + PrintWriter printWriter = response.getWriter(); +%> + + + Title + + + +
+<%printWriter.print("

Step3:订单确认

");%> +<%printWriter.print("");%> +<%printWriter.print("");%> +<%printWriter.print("");%> +<%printWriter.print("");%> +<%printWriter.print("");%> +<%printWriter.print("");%> +<%printWriter.print("");%> +<%printWriter.print("");%> +<%printWriter.print("");%> +<%printWriter.print("");%> +<%printWriter.print("");%> +<%printWriter.print("
顾客姓名"+name+"
地址"+address+"
订货项目"+Arrays.toString(books) +"");%> +<%printWriter.print("
");%> + + + -- Gitee From e6d9454f812993e2d47372d902ceef7ecf23bd7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Fri, 2 Dec 2022 11:46:14 +0000 Subject: [PATCH 141/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=8E=8B?= =?UTF-8?q?=E6=97=AD/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 68af8093e34b0dfdb058a00c2b31639686256bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E7=AB=B9=E5=AE=A2?= <10602822+ink-bamboo-guest@user.noreply.gitee.com> Date: Mon, 5 Dec 2022 02:16:35 +0000 Subject: [PATCH 142/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E4=BF=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\344\277\212/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 14d78b3e2aab7e8366646f529b2aeb9b5254f6a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E7=AB=B9=E5=AE=A2?= <10602822+ink-bamboo-guest@user.noreply.gitee.com> Date: Mon, 5 Dec 2022 02:49:58 +0000 Subject: [PATCH 143/688] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 墨竹客 <10602822+ink-bamboo-guest@user.noreply.gitee.com> --- .../\346\236\227\344\277\212/Register.html" | 17 ++++ .../\346\236\227\344\277\212/Register.java" | 87 +++++++++++++++++++ .../\346\236\227\344\277\212/login.html" | 14 +++ .../\346\236\227\344\277\212/login.java" | 51 +++++++++++ 4 files changed, 169 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Register.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/login.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Register.html" new file mode 100644 index 0000000..f5eeff4 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+ + 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ + + + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Register.java" new file mode 100644 index 0000000..8b8b781 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/login.html" new file mode 100644 index 0000000..afd4139 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/login.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ + + + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} -- Gitee From 595bfc75e3f245cbca5f5a3201bba63c61a63a2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Mon, 5 Dec 2022 03:01:18 +0000 Subject: [PATCH 144/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=82=93=E7=BE=8E?= =?UTF-8?q?=E8=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\202\223\347\276\216\350\220\215/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From eec335f4472f7a76faab03695feec7da060f4a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Mon, 5 Dec 2022 03:07:56 +0000 Subject: [PATCH 145/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=8E=E6=99=93?= =?UTF-8?q?=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\216\346\231\223\344\272\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From cfdc80bdee27a7d334151e57f02678137a8b21c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E7=AB=B9=E5=AE=A2?= <10602822+ink-bamboo-guest@user.noreply.gitee.com> Date: Mon, 5 Dec 2022 03:17:57 +0000 Subject: [PATCH 146/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E4=BF=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\344\277\212/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 656cfdb1c5a9353a0835b85f2356440b32c0c0e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E7=AB=B9=E5=AE=A2?= <10602822+ink-bamboo-guest@user.noreply.gitee.com> Date: Mon, 5 Dec 2022 03:19:03 +0000 Subject: [PATCH 147/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 墨竹客 <10602822+ink-bamboo-guest@user.noreply.gitee.com> --- .../FailServlet..java" | 21 ++++++++++ .../LoginServlet.java" | 40 +++++++++++++++++++ .../SuccessServlet.java" | 0 .../loginservlet.html" | 14 +++++++ 4 files changed, 75 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/FailServlet..java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/loginservlet.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/FailServlet..java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/FailServlet..java" new file mode 100644 index 0000000..4b76b8e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/FailServlet..java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/LoginServlet.java" new file mode 100644 index 0000000..74f00ac --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/LoginServlet.java" @@ -0,0 +1,40 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/SuccessServlet.java" new file mode 100644 index 0000000..e69de29 diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/loginservlet.html" new file mode 100644 index 0000000..d4da7fc --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ + + + \ No newline at end of file -- Gitee From d80507c8822d18f0dcb8866bf1b9e45b6dfdcc88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E7=AB=B9=E5=AE=A2?= <10602822+ink-bamboo-guest@user.noreply.gitee.com> Date: Mon, 5 Dec 2022 03:22:42 +0000 Subject: [PATCH 148/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E4=BF=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\344\277\212/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 62a07313953bb9a0ce5c1b1225dddee6ec544a91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E7=AB=B9=E5=AE=A2?= <10602822+ink-bamboo-guest@user.noreply.gitee.com> Date: Mon, 5 Dec 2022 03:31:30 +0000 Subject: [PATCH 149/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 墨竹客 <10602822+ink-bamboo-guest@user.noreply.gitee.com> --- .../\346\236\227\344\277\212/Cookie.java" | 49 +++++++++++++++++ .../\346\236\227\344\277\212/Step1.java" | 27 +++++++++ .../\346\236\227\344\277\212/Step2.java" | 36 ++++++++++++ .../\346\236\227\344\277\212/address.html" | 55 +++++++++++++++++++ .../\346\236\227\344\277\212/books.html" | 47 ++++++++++++++++ .../\346\236\227\344\277\212/comfirm.html" | 50 +++++++++++++++++ 6 files changed, 264 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Cookie.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Step1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Step2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/comfirm.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Cookie.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Cookie.java" new file mode 100644 index 0000000..bcaa8bc --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Cookie.java" @@ -0,0 +1,49 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} +@WebServlet("/CookieDemo2") +class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} + + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Step1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Step1.java" new file mode 100644 index 0000000..d076d58 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Step1.java" @@ -0,0 +1,27 @@ +package Demo1; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Step2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Step2.java" new file mode 100644 index 0000000..8ac8fed --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Step2.java" @@ -0,0 +1,36 @@ +package Demo1; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/address.html" new file mode 100644 index 0000000..5688d2b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/address.html" @@ -0,0 +1,55 @@ +<%-- +Created by IntelliJ IDEA. +User: Administrator +Date: 2022/11/1 +Time: 19:18 +To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+
+ 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + + + + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/books.html" new file mode 100644 index 0000000..dc2c9f4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/books.html" @@ -0,0 +1,47 @@ +<%-- +Created by IntelliJ IDEA. +User: Administrator +Date: 2022/11/1 +Time: 19:01 +To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + +

Step1选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/comfirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/comfirm.html" new file mode 100644 index 0000000..38a1e8b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/comfirm.html" @@ -0,0 +1,50 @@ +<%@ page import="java.lang.reflect.Array" %> +<%@ page import="java.util.Arrays" %><%-- +Created by IntelliJ IDEA. +User: Administrator +Date: 2022/11/1 +Time: 20:27 +To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print(session.getAttribute("name"));%>
地址:<%out.print(session.getAttribute("address"));%>
付款信息
信用卡类型<%out.print(Arrays.toString((Object[]) session.getAttribute("types")));%>
卡号:<%out.print(session.getAttribute("username"));%>
订货项目<% out.print(Arrays.toString((Object[]) session.getAttribute("books")));%>
+ + + -- Gitee From fa5c60f9748c9b7cd7db36830ca733a4665a4581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E8=91=89?= <2249398422@qq.com> Date: Mon, 5 Dec 2022 04:01:01 +0000 Subject: [PATCH 150/688] =?UTF-8?q?update=20=E7=AC=AC=E5=8D=81=E7=AB=A0=20?= =?UTF-8?q?JDBC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 三葉 <2249398422@qq.com> --- README.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 1b5ac86..ce42c08 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,27 @@ # JavaWeb作业 -[01第一章 JavaWeb开发入门.pptx - Cloudreve](http://124.71.9.121:5212/s/N5fj) +[01第一章 JavaWeb开发入门.pptx](http://124.71.9.121:5212/s/N5fj) -[01第二章 Servlet入门.pptx - Cloudreve](http://124.71.9.121:5212/s/6ksm) +[01第二章 Servlet入门.pptx](http://124.71.9.121:5212/s/6ksm) -[02第三章 HTTP&Request.pptx - Cloudreve](http://124.71.9.121:5212/s/Behd) +[02第三章 HTTP&Request.pptx](http://124.71.9.121:5212/s/Behd) -[03第三章 Response.pptx - Cloudreve](http://124.71.9.121:5212/s/vXUE) +[03第三章 Response.pptx](http://124.71.9.121:5212/s/vXUE) -[03第三章 Response (1).pptx - Cloudreve](http://124.71.9.121:5212/s/AJia) +[03第三章 Response (1).pptx](http://124.71.9.121:5212/s/AJia) -[04第四章 会话管理.pptx - Cloudreve](http://124.71.9.121:5212/s/OQuo) +[04第四章 会话管理.pptx](http://124.71.9.121:5212/s/OQuo) -[05第五章 JSP基础1.pptx - Cloudreve](http://124.71.9.121:5212/s/VrHm) +[05第五章 JSP基础1.pptx](http://124.71.9.121:5212/s/VrHm) -[第七章 EL 和JSTL.pptx - Cloudreve](http://124.71.9.121:5212/s/PJCx) +[第七章 EL 和JSTL.pptx](http://124.71.9.121:5212/s/PJCx) -[第八章 Filter过滤器.pptx - Cloudreve](http://124.71.9.121:5212/s/gRId) +[第八章 Filter过滤器.pptx](http://124.71.9.121:5212/s/gRId) -[第九章 监听器.pptx - Cloudreve](http://124.71.9.121:5212/s/1Etx) +[第九章 监听器.pptx](http://124.71.9.121:5212/s/1Etx) + +[第十章 JDBC](http://124.71.9.121:5212/s/DEFK) -------- -- Gitee From 64bf22b9adff1e79140b64dd50d0eada583d67e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E8=91=89?= <2249398422@qq.com> Date: Mon, 5 Dec 2022 04:02:51 +0000 Subject: [PATCH 151/688] =?UTF-8?q?update=20=E7=AC=AC=E5=8D=81=E7=AB=A0=20?= =?UTF-8?q?JDBC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ce42c08..4576e2d 100644 --- a/README.md +++ b/README.md @@ -25,5 +25,5 @@ -------- -[JAVA_EE_api_中英文对照版.chm - Cloudreve](http://124.71.9.121:5212/s/9oSD) +[JAVA_EE_api_中英文对照版.chm](http://124.71.9.121:5212/s/9oSD) -- Gitee From 170794b4f2fd4193d58e5e6313e63fceb1de5911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Tue, 6 Dec 2022 02:16:13 +0000 Subject: [PATCH 152/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E5=9B=9B?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From fde48c8cc5fc126e38b75454cdc53d16cc77ccde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Tue, 6 Dec 2022 02:17:09 +0000 Subject: [PATCH 153/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邓美萍 <479405703@qq.com> --- .../CookieDemo1.java" | 27 +++++++ .../CookieDemo2.java" | 31 ++++++++ .../CookieTest.java" | 70 +++++++++++++++++++ 3 files changed, 128 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieTest.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo1.java" new file mode 100644 index 0000000..6522565 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo1.java" @@ -0,0 +1,27 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo2.java" new file mode 100644 index 0000000..d21becb --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo2.java" @@ -0,0 +1,31 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo2") +public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieTest.java" new file mode 100644 index 0000000..360125e --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieTest.java" @@ -0,0 +1,70 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} -- Gitee From 02986b4af6b1f46eb8fcf4c4f421f2fc54c57de0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Tue, 6 Dec 2022 02:30:55 +0000 Subject: [PATCH 154/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E5=9B=9B?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 5f4278764d21220d8aec8e6b8e8afa9d470b4ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Tue, 6 Dec 2022 02:32:05 +0000 Subject: [PATCH 155/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邓美萍 <479405703@qq.com> --- .../Books.html" | 48 +++++++++++++++++++ .../Comfirn.html" | 48 +++++++++++++++++++ .../Step1.java" | 27 +++++++++++ .../Step2.java" | 36 ++++++++++++++ .../address.html" | 48 +++++++++++++++++++ 5 files changed, 207 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Comfirn.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/address.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Books.html" new file mode 100644 index 0000000..4674751 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Books.html" @@ -0,0 +1,48 @@ + + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Comfirn.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Comfirn.html" new file mode 100644 index 0000000..4674751 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Comfirn.html" @@ -0,0 +1,48 @@ + + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step1.java" new file mode 100644 index 0000000..3b2b9bb --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step1.java" @@ -0,0 +1,27 @@ +package JavaWeb.Demo42; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step2.java" new file mode 100644 index 0000000..b750afd --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step2.java" @@ -0,0 +1,36 @@ +package JavaWeb.Demo42; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/address.html" new file mode 100644 index 0000000..4674751 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/address.html" @@ -0,0 +1,48 @@ + + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + -- Gitee From c80538b55efb98b2d9138fed3ecd65515fe148f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Wed, 7 Dec 2022 12:28:58 +0000 Subject: [PATCH 156/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗鑫lxxx666 <10602820+jason666NB@user.noreply.gitee.com> --- .../jstl_el/jstl_el.iml" | 35 + .../\347\275\227\351\221\253/jstl_el/pom.xml" | 59 + .../src/main/java/com/ittest/pojo/Brand.java" | 101 + .../src/main/java/com/ittest/pojo/User.java" | 76 + .../jstl_el/src/main/webapp/WEB-INF/web.xml" | 6 + .../jstl_el/src/main/webapp/jstl-foreach.jsp" | 60 + .../jstl_el/src/main/webapp/jstl.jsp" | 67 + .../jstl_el/src/main/webapp/test.jsp" | 44 + .../classes/com/ittest/pojo/Brand.class" | Bin 0 -> 2731 bytes .../classes/com/ittest/pojo/User.class" | Bin 0 -> 1841 bytes .../com/ittest/web/ServletDemo1.class" | Bin 0 -> 2023 bytes .../com/ittest/web/ServletDemo2.class" | Bin 0 -> 1962 bytes .../compile/default-compile/createdFiles.lst" | 4 + .../compile/default-compile/inputFiles.lst" | 4 + .../target/tomcat/conf/logging.properties" | 64 + .../target/tomcat/conf/tomcat-users.xml" | 26 + .../jstl_el/target/tomcat/conf/web.xml" | 4283 +++++++++++++++++ .../target/tomcat/logs/access_log.2022-12-06" | 21 + .../target/tomcat/logs/access_log.2022-12-07" | 14 + .../\347\254\254\344\270\203\347\253\240" | 0 20 files changed, 4864 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/jstl_el.iml" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/pom.xml" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/java/com/ittest/pojo/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/java/com/ittest/pojo/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/WEB-INF/web.xml" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/jstl-foreach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/test.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/pojo/Brand.class" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/pojo/User.class" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/web/ServletDemo1.class" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/web/ServletDemo2.class" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/logging.properties" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/tomcat-users.xml" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/web.xml" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/logs/access_log.2022-12-06" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/logs/access_log.2022-12-07" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/\347\254\254\344\270\203\347\253\240" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/jstl_el.iml" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/jstl_el.iml" new file mode 100644 index 0000000..00a197d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/jstl_el.iml" @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/pom.xml" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/pom.xml" new file mode 100644 index 0000000..b381e1d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/pom.xml" @@ -0,0 +1,59 @@ + + + 4.0.0 + + org.example + jstl_el + 1.0-SNAPSHOT + war + + + 8 + 8 + + + + + javax.servlet + javax.servlet-api + 3.1.0 + provided + + + + javax.servlet.jsp + jsp-api + 2.2 + provided + + + + + jstl + jstl + 1.2 + + + + taglibs + standard + 1.1.2 + + + + + + + + org.apache.tomcat.maven + tomcat7-maven-plugin + 2.2 + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/java/com/ittest/pojo/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/java/com/ittest/pojo/Brand.java" new file mode 100644 index 0000000..6ae9f9e --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/java/com/ittest/pojo/Brand.java" @@ -0,0 +1,101 @@ +package com.ittest.pojo; + +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/java/com/ittest/pojo/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/java/com/ittest/pojo/User.java" new file mode 100644 index 0000000..8ea795d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/java/com/ittest/pojo/User.java" @@ -0,0 +1,76 @@ +package com.ittest.pojo; + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/WEB-INF/web.xml" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/WEB-INF/web.xml" new file mode 100644 index 0000000..d80081d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/WEB-INF/web.xml" @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/jstl-foreach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/jstl-foreach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/jstl-foreach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/jstl.jsp" new file mode 100644 index 0000000..9e324af --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/jstl.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/6 + Time: 20:20 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/test.jsp" new file mode 100644 index 0000000..7795ee3 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/pojo/Brand.class" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/pojo/Brand.class" new file mode 100644 index 0000000000000000000000000000000000000000..7fa5ef8a053f427b6f071e997afad212c0398f43 GIT binary patch literal 2731 zcmb`I-)Kt$EH zj7FUS13Tt^Q)}FJLsZkM>6T8pftudhv5cl|m<r69I! z)~I}J&1mTB2m9N)bxYgcbIvk%w7o6OGUVHH#_Z1xYK*V(%(7wIddn_1&0Vv+B#?wz zn+_nhFA;Eg)X(D)I_rOsdoGH0kQ^GX>-H)iaCCYmz}b%AddpoO3xgAZ3#?1*<^zb~#dvsCt!=;$nNA zv`v>mLAq)lSUdW4L#iU}5YJ1YW^fXd8B8FT!Am%i!OLP^74wSt^2n*!%HTHcD9G`g z)!Ne^e}DSx56^yj`0UX)|9t=8?)kmXb<@Ad|@-$I#r4=rv5 z!yUYh?OlDx?s8S{w`_f%ZDk&CVbrZ0!z^#IP5G>ruI;lwMjVZ9w*s{(L3`4sTC=G) zSbTF~>(n>(jlV7xkJQ?6R|_YJE}S2g19k)q=-92un|_}1nW^wS#XuSQ>f`&P4IHg<%B6G zRg9=JlZ(Y1ni-Gg0cljO75dR6iW6}%6(rT+k$oZpoI literal 0 HcmV?d00001 diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/pojo/User.class" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/pojo/User.class" new file mode 100644 index 0000000000000000000000000000000000000000..c9179dde5b9cc5f0b990799f258fe25a6089e828 GIT binary patch literal 1841 zcma)*T~pIg5QaBxl73Q<(n7^AKxzpeQHorM!-Y7EC<7N&?$b6?!<2?eQpcaQKryOnPC`&tROg2y1JY%!VrkSC= z3_VvU<#ZJ)pI%y@EVFM7dgjR>uzR+5piuUMZ+mCfm95Zxte_Qm&Y*|)Y2W?~>-M2g z=-PhAbFKr&9Vn#xffWpW1TUR|6C9$dv2mf0dgOMYHhby}?6cuj+xFgD?Y_`=J68X~ z@*IASl4|hLfkyST<6fCg5ZHcTUb~mB$y_+!Ys9E-uw$tR^q-mk`s}8NTgVQ_L(zJ6 zaDv_|jg8nDH^mBRe)zsB<7BM@1ST_HxFs{5aseunqDovVs$nS|QY~JGj`A=-=A2i< z84;9_c^zL<32$yCa;y@qF2_PqoNu{9uVWuOysI43?C^yt(ma)ml&3^1|Z;_!8lUQW@=cUgVDpe8AgL&=A}WSOv`9;MVu2bg3w%Lk2ENV$#^#7p#@2|^#`cI* zqo$6aT+>FR8#R4InaK&OXn>%gQU#4vfwc&zCFs`ZA>E~QS{5h23Du*MagJ!0k?W|M z5uA0NC8b4i6LF)3=Xi1P406CZf!uN(jo=7L6CqWLSAPxCM v^d!hDfE-N$;cLqv8`6nnk|4)Y5JNtZ*#8$^*0%t8HwA?M8V1=EzsJ^JX14xU literal 0 HcmV?d00001 diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/web/ServletDemo1.class" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/web/ServletDemo1.class" new file mode 100644 index 0000000000000000000000000000000000000000..6755f9b78f2882c9a535568e3ee656bdb843cd57 GIT binary patch literal 2023 zcma)7-BTM?6#v~MWS0~x%4SM+#_JmHv` z&{LzjWyrPb^odEsW;hf}nA4ge1h<8DgU7WIZq1~)7~s?9@d!gz(!9V0!*E+{N}thh zYPPelO$w3GF4Dt2Fw8&A5=LatFgs(WZ61*oE0%MJp>@w=4myKsaR-56?~>eHL{;3< z(@E;LzL-eM3L~Y(462u5-*$R#Wi}~l-x1qe&Q->oGPN@jHPS~Qfpa$#JR=P1O+ie- z`;;?jUN&vwE-+$dtpq=B$YF%a3GR`cGBgio)54hMqlRtJg!D8@0?9xtrU&8|MWyYcmd!sovf=5r+Fd~Ufg zzp!@a@%rpNI;G&lAVx7pr)?rAOY;nAQ?^KTUpFnTCnkHQ>`V|JVO+u0AgBgLX?L|8_8!uimgph}OM@BanKPqB7OD2_(FdNN5$DX(QHKE)Fv(tedx zxjSXl~r#hpn4i7xNuPh3_GKX#H6I}6KD?#Z6zH!h>!)<3SJ252&S5UZvmhYhX5B`xgt4KD+<` literal 0 HcmV?d00001 diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/web/ServletDemo2.class" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/web/ServletDemo2.class" new file mode 100644 index 0000000000000000000000000000000000000000..5d8c4b1dbefe7229c54d8b8c13e8bfe5b0936e45 GIT binary patch literal 1962 zcma)7TW=dh6#m9`yc=i9#c^6n=@mla+!jj9%^@^xdT}vHN!o<8@UXV0$r{INcE@S^ z1`^PeBDE5TR>}(k2?-&A5EX8STHg5`*nvNRIJ3L4oftJdcy{K@H{UtuJ7>m!{PWu* z07vm&1iSH~f};@xA}K&MA14Av|gpOfkj~?2pefgicyn&d`xE3w*M)l;-vYBb_HpG-YLs z{H$S{a_t*KV$pOM_N6k`l5PsY9id<4X?=#<%Xuy)_>y%b!O)Vm&Tzpn-Ji-C%f>a` z@%HsaA&UB08vFy({DTs4BzA;3MXTWOgp63Ry+aIrJ0A1c8C08l3=BJm%~olJo-9zv{9;}m9zAVM4A{Qj>xHN8D117Wu_pd;4Lan z);e!Fq+DdiD%lx++LWc}^3`(X9g&JM?3peVgt^3LO~<7Aj28-)FkCK%-fg-VwM~7F zr+qS6rez~vBL1+Rm4(yrB=#_LO9x&8ej};hRxqt$1{WAwE1%q|-e0Z$@{pjFN9F3rw=2Kj zt*+er>*03{TIGwCzi)hAx$#r=qwi_?=YyLYw|?}96kOCWi#hV>P`)LqPOF}CM1Caa z6g9kqc?Fj=T*kW^4&Wfe-iElhcPhjF$G2w_z}K!;xJ|W8OHWQUSi4*e^G0DoPZk7U z;5PNGtM=3tYM%aN+-s>u1Qo>gyJw5J0XZXVv#{XZ7TpCkTYP{24lStd-UXo$?B zl<(Mo5O^xqpO>a%r0IdJ@isxIFjp-5s$o;k$2}i)LciYrq3zF9ZMXJ1;SfEwyXgf7 zf?)DK(fAatbow&-whWZPex^wPdua^2#tuA9bIk)_ANJEKB-@uzbeM(FN^9WGIs)@$ z1Sf~r5tg-jn*d>He}Vvq=n=e literal 0 HcmV?d00001 diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" new file mode 100644 index 0000000..0f808bc --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" @@ -0,0 +1,4 @@ +com\ittest\pojo\Brand.class +com\ittest\web\ServletDemo1.class +com\ittest\web\ServletDemo2.class +com\ittest\pojo\User.class diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" new file mode 100644 index 0000000..b0d9147 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" @@ -0,0 +1,4 @@ +B:\javawork\web\jstl_el\src\main\java\com\ittest\web\ServletDemo1.java +B:\javawork\web\jstl_el\src\main\java\com\ittest\pojo\Brand.java +B:\javawork\web\jstl_el\src\main\java\com\ittest\pojo\User.java +B:\javawork\web\jstl_el\src\main\java\com\ittest\web\ServletDemo2.java diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/logging.properties" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/logging.properties" new file mode 100644 index 0000000..76c9512 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/logging.properties" @@ -0,0 +1,64 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler + +.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler + +############################################################ +# Handler specific properties. +# Describes specific configuration info for Handlers. +############################################################ + +1catalina.org.apache.juli.FileHandler.level = FINE +1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +1catalina.org.apache.juli.FileHandler.prefix = catalina. + +2localhost.org.apache.juli.FileHandler.level = FINE +2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +2localhost.org.apache.juli.FileHandler.prefix = localhost. + +3manager.org.apache.juli.FileHandler.level = FINE +3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +3manager.org.apache.juli.FileHandler.prefix = manager. + +4host-manager.org.apache.juli.FileHandler.level = FINE +4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +4host-manager.org.apache.juli.FileHandler.prefix = host-manager. + +java.util.logging.ConsoleHandler.level = FINE +java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter + + +############################################################ +# Facility specific properties. +# Provides extra control for each logger. +############################################################ + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler + +# For example, set the org.apache.catalina.util.LifecycleBase logger to log +# each component that extends LifecycleBase changing state: +#org.apache.catalina.util.LifecycleBase.level = FINE + +# To see debug messages in TldLocationsCache, uncomment the following line: +#org.apache.jasper.compiler.TldLocationsCache.level = FINE diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/tomcat-users.xml" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/tomcat-users.xml" new file mode 100644 index 0000000..7114f5d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/tomcat-users.xml" @@ -0,0 +1,26 @@ + + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/web.xml" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/web.xml" new file mode 100644 index 0000000..cc8383c --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/web.xml" @@ -0,0 +1,4283 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + org.apache.catalina.servlets.DefaultServlet + + debug + 0 + + + listings + false + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jsp + org.apache.jasper.servlet.JspServlet + + fork + false + + + xpoweredBy + false + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + / + + + + + jsp + *.jsp + *.jspx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 30 + + + + + + + + + + + + 123 + application/vnd.lotus-1-2-3 + + + 3dml + text/vnd.in3d.3dml + + + 3g2 + video/3gpp2 + + + 3gp + video/3gpp + + + 7z + application/x-7z-compressed + + + aab + application/x-authorware-bin + + + aac + audio/x-aac + + + aam + application/x-authorware-map + + + aas + application/x-authorware-seg + + + abs + audio/x-mpeg + + + abw + application/x-abiword + + + ac + application/pkix-attr-cert + + + acc + application/vnd.americandynamics.acc + + + ace + application/x-ace-compressed + + + acu + application/vnd.acucobol + + + acutc + application/vnd.acucorp + + + adp + audio/adpcm + + + aep + application/vnd.audiograph + + + afm + application/x-font-type1 + + + afp + application/vnd.ibm.modcap + + + ahead + application/vnd.ahead.space + + + ai + application/postscript + + + aif + audio/x-aiff + + + aifc + audio/x-aiff + + + aiff + audio/x-aiff + + + aim + application/x-aim + + + air + application/vnd.adobe.air-application-installer-package+zip + + + ait + application/vnd.dvb.ait + + + ami + application/vnd.amiga.ami + + + anx + application/annodex + + + apk + application/vnd.android.package-archive + + + application + application/x-ms-application + + + apr + application/vnd.lotus-approach + + + art + image/x-jg + + + asc + application/pgp-signature + + + asf + video/x-ms-asf + + + asm + text/x-asm + + + aso + application/vnd.accpac.simply.aso + + + asx + video/x-ms-asf + + + atc + application/vnd.acucorp + + + atom + application/atom+xml + + + atomcat + application/atomcat+xml + + + atomsvc + application/atomsvc+xml + + + atx + application/vnd.antix.game-component + + + au + audio/basic + + + avi + video/x-msvideo + + + avx + video/x-rad-screenplay + + + aw + application/applixware + + + axa + audio/annodex + + + axv + video/annodex + + + azf + application/vnd.airzip.filesecure.azf + + + azs + application/vnd.airzip.filesecure.azs + + + azw + application/vnd.amazon.ebook + + + bat + application/x-msdownload + + + bcpio + application/x-bcpio + + + bdf + application/x-font-bdf + + + bdm + application/vnd.syncml.dm+wbxml + + + bed + application/vnd.realvnc.bed + + + bh2 + application/vnd.fujitsu.oasysprs + + + bin + application/octet-stream + + + bmi + application/vnd.bmi + + + bmp + image/bmp + + + body + text/html + + + book + application/vnd.framemaker + + + box + application/vnd.previewsystems.box + + + boz + application/x-bzip2 + + + bpk + application/octet-stream + + + btif + image/prs.btif + + + bz + application/x-bzip + + + bz2 + application/x-bzip2 + + + c + text/x-c + + + c11amc + application/vnd.cluetrust.cartomobile-config + + + c11amz + application/vnd.cluetrust.cartomobile-config-pkg + + + c4d + application/vnd.clonk.c4group + + + c4f + application/vnd.clonk.c4group + + + c4g + application/vnd.clonk.c4group + + + c4p + application/vnd.clonk.c4group + + + c4u + application/vnd.clonk.c4group + + + cab + application/vnd.ms-cab-compressed + + + cap + application/vnd.tcpdump.pcap + + + car + application/vnd.curl.car + + + cat + application/vnd.ms-pki.seccat + + + cc + text/x-c + + + cct + application/x-director + + + ccxml + application/ccxml+xml + + + cdbcmsg + application/vnd.contact.cmsg + + + cdf + application/x-cdf + + + cdkey + application/vnd.mediastation.cdkey + + + cdmia + application/cdmi-capability + + + cdmic + application/cdmi-container + + + cdmid + application/cdmi-domain + + + cdmio + application/cdmi-object + + + cdmiq + application/cdmi-queue + + + cdx + chemical/x-cdx + + + cdxml + application/vnd.chemdraw+xml + + + cdy + application/vnd.cinderella + + + cer + application/pkix-cert + + + cgm + image/cgm + + + chat + application/x-chat + + + chm + application/vnd.ms-htmlhelp + + + chrt + application/vnd.kde.kchart + + + cif + chemical/x-cif + + + cii + application/vnd.anser-web-certificate-issue-initiation + + + cil + application/vnd.ms-artgalry + + + cla + application/vnd.claymore + + + class + application/java + + + clkk + application/vnd.crick.clicker.keyboard + + + clkp + application/vnd.crick.clicker.palette + + + clkt + application/vnd.crick.clicker.template + + + clkw + application/vnd.crick.clicker.wordbank + + + clkx + application/vnd.crick.clicker + + + clp + application/x-msclip + + + cmc + application/vnd.cosmocaller + + + cmdf + chemical/x-cmdf + + + cml + chemical/x-cml + + + cmp + application/vnd.yellowriver-custom-menu + + + cmx + image/x-cmx + + + cod + application/vnd.rim.cod + + + com + application/x-msdownload + + + conf + text/plain + + + cpio + application/x-cpio + + + cpp + text/x-c + + + cpt + application/mac-compactpro + + + crd + application/x-mscardfile + + + crl + application/pkix-crl + + + crt + application/x-x509-ca-cert + + + cryptonote + application/vnd.rig.cryptonote + + + csh + application/x-csh + + + csml + chemical/x-csml + + + csp + application/vnd.commonspace + + + css + text/css + + + cst + application/x-director + + + csv + text/csv + + + cu + application/cu-seeme + + + curl + text/vnd.curl + + + cww + application/prs.cww + + + cxt + application/x-director + + + cxx + text/x-c + + + dae + model/vnd.collada+xml + + + daf + application/vnd.mobius.daf + + + dataless + application/vnd.fdsn.seed + + + davmount + application/davmount+xml + + + dcr + application/x-director + + + dcurl + text/vnd.curl.dcurl + + + dd2 + application/vnd.oma.dd2+xml + + + ddd + application/vnd.fujixerox.ddd + + + deb + application/x-debian-package + + + def + text/plain + + + deploy + application/octet-stream + + + der + application/x-x509-ca-cert + + + dfac + application/vnd.dreamfactory + + + dib + image/bmp + + + dic + text/x-c + + + dir + application/x-director + + + dis + application/vnd.mobius.dis + + + dist + application/octet-stream + + + distz + application/octet-stream + + + djv + image/vnd.djvu + + + djvu + image/vnd.djvu + + + dll + application/x-msdownload + + + dmg + application/octet-stream + + + dmp + application/vnd.tcpdump.pcap + + + dms + application/octet-stream + + + dna + application/vnd.dna + + + doc + application/msword + + + docm + application/vnd.ms-word.document.macroenabled.12 + + + docx + application/vnd.openxmlformats-officedocument.wordprocessingml.document + + + dot + application/msword + + + dotm + application/vnd.ms-word.template.macroenabled.12 + + + dotx + application/vnd.openxmlformats-officedocument.wordprocessingml.template + + + dp + application/vnd.osgi.dp + + + dpg + application/vnd.dpgraph + + + dra + audio/vnd.dra + + + dsc + text/prs.lines.tag + + + dssc + application/dssc+der + + + dtb + application/x-dtbook+xml + + + dtd + application/xml-dtd + + + dts + audio/vnd.dts + + + dtshd + audio/vnd.dts.hd + + + dump + application/octet-stream + + + dv + video/x-dv + + + dvb + video/vnd.dvb.file + + + dvi + application/x-dvi + + + dwf + model/vnd.dwf + + + dwg + image/vnd.dwg + + + dxf + image/vnd.dxf + + + dxp + application/vnd.spotfire.dxp + + + dxr + application/x-director + + + ecelp4800 + audio/vnd.nuera.ecelp4800 + + + ecelp7470 + audio/vnd.nuera.ecelp7470 + + + ecelp9600 + audio/vnd.nuera.ecelp9600 + + + ecma + application/ecmascript + + + edm + application/vnd.novadigm.edm + + + edx + application/vnd.novadigm.edx + + + efif + application/vnd.picsel + + + ei6 + application/vnd.pg.osasli + + + elc + application/octet-stream + + + eml + message/rfc822 + + + emma + application/emma+xml + + + eol + audio/vnd.digital-winds + + + eot + application/vnd.ms-fontobject + + + eps + application/postscript + + + epub + application/epub+zip + + + es3 + application/vnd.eszigno3+xml + + + esf + application/vnd.epson.esf + + + et3 + application/vnd.eszigno3+xml + + + etx + text/x-setext + + + exe + application/octet-stream + + + exi + application/exi + + + ext + application/vnd.novadigm.ext + + + ez + application/andrew-inset + + + ez2 + application/vnd.ezpix-album + + + ez3 + application/vnd.ezpix-package + + + f + text/x-fortran + + + f4v + video/x-f4v + + + f77 + text/x-fortran + + + f90 + text/x-fortran + + + fbs + image/vnd.fastbidsheet + + + fcs + application/vnd.isac.fcs + + + fdf + application/vnd.fdf + + + fe_launch + application/vnd.denovo.fcselayout-link + + + fg5 + application/vnd.fujitsu.oasysgp + + + fgd + application/x-director + + + fh + image/x-freehand + + + fh4 + image/x-freehand + + + fh5 + image/x-freehand + + + fh7 + image/x-freehand + + + fhc + image/x-freehand + + + fig + application/x-xfig + + + flac + audio/flac + + + fli + video/x-fli + + + flo + application/vnd.micrografx.flo + + + flv + video/x-flv + + + flw + application/vnd.kde.kivio + + + flx + text/vnd.fmi.flexstor + + + fly + text/vnd.fly + + + fm + application/vnd.framemaker + + + fnc + application/vnd.frogans.fnc + + + for + text/x-fortran + + + fpx + image/vnd.fpx + + + frame + application/vnd.framemaker + + + fsc + application/vnd.fsc.weblaunch + + + fst + image/vnd.fst + + + ftc + application/vnd.fluxtime.clip + + + fti + application/vnd.anser-web-funds-transfer-initiation + + + fvt + video/vnd.fvt + + + fxp + application/vnd.adobe.fxp + + + fxpl + application/vnd.adobe.fxp + + + fzs + application/vnd.fuzzysheet + + + g2w + application/vnd.geoplan + + + g3 + image/g3fax + + + g3w + application/vnd.geospace + + + gac + application/vnd.groove-account + + + gbr + application/rpki-ghostbusters + + + gdl + model/vnd.gdl + + + geo + application/vnd.dynageo + + + gex + application/vnd.geometry-explorer + + + ggb + application/vnd.geogebra.file + + + ggt + application/vnd.geogebra.tool + + + ghf + application/vnd.groove-help + + + gif + image/gif + + + gim + application/vnd.groove-identity-message + + + gmx + application/vnd.gmx + + + gnumeric + application/x-gnumeric + + + gph + application/vnd.flographit + + + gqf + application/vnd.grafeq + + + gqs + application/vnd.grafeq + + + gram + application/srgs + + + gre + application/vnd.geometry-explorer + + + grv + application/vnd.groove-injector + + + grxml + application/srgs+xml + + + gsf + application/x-font-ghostscript + + + gtar + application/x-gtar + + + gtm + application/vnd.groove-tool-message + + + gtw + model/vnd.gtw + + + gv + text/vnd.graphviz + + + gxt + application/vnd.geonext + + + gz + application/x-gzip + + + h + text/x-c + + + h261 + video/h261 + + + h263 + video/h263 + + + h264 + video/h264 + + + hal + application/vnd.hal+xml + + + hbci + application/vnd.hbci + + + hdf + application/x-hdf + + + hh + text/x-c + + + hlp + application/winhlp + + + hpgl + application/vnd.hp-hpgl + + + hpid + application/vnd.hp-hpid + + + hps + application/vnd.hp-hps + + + hqx + application/mac-binhex40 + + + htc + text/x-component + + + htke + application/vnd.kenameaapp + + + htm + text/html + + + html + text/html + + + hvd + application/vnd.yamaha.hv-dic + + + hvp + application/vnd.yamaha.hv-voice + + + hvs + application/vnd.yamaha.hv-script + + + i2g + application/vnd.intergeo + + + icc + application/vnd.iccprofile + + + ice + x-conference/x-cooltalk + + + icm + application/vnd.iccprofile + + + ico + image/x-icon + + + ics + text/calendar + + + ief + image/ief + + + ifb + text/calendar + + + ifm + application/vnd.shana.informed.formdata + + + iges + model/iges + + + igl + application/vnd.igloader + + + igm + application/vnd.insors.igm + + + igs + model/iges + + + igx + application/vnd.micrografx.igx + + + iif + application/vnd.shana.informed.interchange + + + imp + application/vnd.accpac.simply.imp + + + ims + application/vnd.ms-ims + + + in + text/plain + + + ink + application/inkml+xml + + + inkml + application/inkml+xml + + + iota + application/vnd.astraea-software.iota + + + ipfix + application/ipfix + + + ipk + application/vnd.shana.informed.package + + + irm + application/vnd.ibm.rights-management + + + irp + application/vnd.irepository.package+xml + + + iso + application/octet-stream + + + itp + application/vnd.shana.informed.formtemplate + + + ivp + application/vnd.immervision-ivp + + + ivu + application/vnd.immervision-ivu + + + jad + text/vnd.sun.j2me.app-descriptor + + + jam + application/vnd.jam + + + jar + application/java-archive + + + java + text/x-java-source + + + jisp + application/vnd.jisp + + + jlt + application/vnd.hp-jlyt + + + jnlp + application/x-java-jnlp-file + + + joda + application/vnd.joost.joda-archive + + + jpe + image/jpeg + + + jpeg + image/jpeg + + + jpg + image/jpeg + + + jpgm + video/jpm + + + jpgv + video/jpeg + + + jpm + video/jpm + + + js + application/javascript + + + jsf + text/plain + + + json + application/json + + + jspf + text/plain + + + kar + audio/midi + + + karbon + application/vnd.kde.karbon + + + kfo + application/vnd.kde.kformula + + + kia + application/vnd.kidspiration + + + kml + application/vnd.google-earth.kml+xml + + + kmz + application/vnd.google-earth.kmz + + + kne + application/vnd.kinar + + + knp + application/vnd.kinar + + + kon + application/vnd.kde.kontour + + + kpr + application/vnd.kde.kpresenter + + + kpt + application/vnd.kde.kpresenter + + + ksp + application/vnd.kde.kspread + + + ktr + application/vnd.kahootz + + + ktx + image/ktx + + + ktz + application/vnd.kahootz + + + kwd + application/vnd.kde.kword + + + kwt + application/vnd.kde.kword + + + lasxml + application/vnd.las.las+xml + + + latex + application/x-latex + + + lbd + application/vnd.llamagraphics.life-balance.desktop + + + lbe + application/vnd.llamagraphics.life-balance.exchange+xml + + + les + application/vnd.hhe.lesson-player + + + lha + application/octet-stream + + + link66 + application/vnd.route66.link66+xml + + + list + text/plain + + + list3820 + application/vnd.ibm.modcap + + + listafp + application/vnd.ibm.modcap + + + log + text/plain + + + lostxml + application/lost+xml + + + lrf + application/octet-stream + + + lrm + application/vnd.ms-lrm + + + ltf + application/vnd.frogans.ltf + + + lvp + audio/vnd.lucent.voice + + + lwp + application/vnd.lotus-wordpro + + + lzh + application/octet-stream + + + m13 + application/x-msmediaview + + + m14 + application/x-msmediaview + + + m1v + video/mpeg + + + m21 + application/mp21 + + + m2a + audio/mpeg + + + m2v + video/mpeg + + + m3a + audio/mpeg + + + m3u + audio/x-mpegurl + + + m3u8 + application/vnd.apple.mpegurl + + + m4a + audio/mp4 + + + m4b + audio/mp4 + + + m4r + audio/mp4 + + + m4u + video/vnd.mpegurl + + + m4v + video/mp4 + + + ma + application/mathematica + + + mac + image/x-macpaint + + + mads + application/mads+xml + + + mag + application/vnd.ecowin.chart + + + maker + application/vnd.framemaker + + + man + text/troff + + + mathml + application/mathml+xml + + + mb + application/mathematica + + + mbk + application/vnd.mobius.mbk + + + mbox + application/mbox + + + mc1 + application/vnd.medcalcdata + + + mcd + application/vnd.mcd + + + mcurl + text/vnd.curl.mcurl + + + mdb + application/x-msaccess + + + mdi + image/vnd.ms-modi + + + me + text/troff + + + mesh + model/mesh + + + meta4 + application/metalink4+xml + + + mets + application/mets+xml + + + mfm + application/vnd.mfmp + + + mft + application/rpki-manifest + + + mgp + application/vnd.osgeo.mapguide.package + + + mgz + application/vnd.proteus.magazine + + + mid + audio/midi + + + midi + audio/midi + + + mif + application/x-mif + + + mime + message/rfc822 + + + mj2 + video/mj2 + + + mjp2 + video/mj2 + + + mlp + application/vnd.dolby.mlp + + + mmd + application/vnd.chipnuts.karaoke-mmd + + + mmf + application/vnd.smaf + + + mmr + image/vnd.fujixerox.edmics-mmr + + + mny + application/x-msmoney + + + mobi + application/x-mobipocket-ebook + + + mods + application/mods+xml + + + mov + video/quicktime + + + movie + video/x-sgi-movie + + + mp1 + audio/mpeg + + + mp2 + audio/mpeg + + + mp21 + application/mp21 + + + mp2a + audio/mpeg + + + mp3 + audio/mpeg + + + mp4 + video/mp4 + + + mp4a + audio/mp4 + + + mp4s + application/mp4 + + + mp4v + video/mp4 + + + mpa + audio/mpeg + + + mpc + application/vnd.mophun.certificate + + + mpe + video/mpeg + + + mpeg + video/mpeg + + + mpega + audio/x-mpeg + + + mpg + video/mpeg + + + mpg4 + video/mp4 + + + mpga + audio/mpeg + + + mpkg + application/vnd.apple.installer+xml + + + mpm + application/vnd.blueice.multipass + + + mpn + application/vnd.mophun.application + + + mpp + application/vnd.ms-project + + + mpt + application/vnd.ms-project + + + mpv2 + video/mpeg2 + + + mpy + application/vnd.ibm.minipay + + + mqy + application/vnd.mobius.mqy + + + mrc + application/marc + + + mrcx + application/marcxml+xml + + + ms + text/troff + + + mscml + application/mediaservercontrol+xml + + + mseed + application/vnd.fdsn.mseed + + + mseq + application/vnd.mseq + + + msf + application/vnd.epson.msf + + + msh + model/mesh + + + msi + application/x-msdownload + + + msl + application/vnd.mobius.msl + + + msty + application/vnd.muvee.style + + + mts + model/vnd.mts + + + mus + application/vnd.musician + + + musicxml + application/vnd.recordare.musicxml+xml + + + mvb + application/x-msmediaview + + + mwf + application/vnd.mfer + + + mxf + application/mxf + + + mxl + application/vnd.recordare.musicxml + + + mxml + application/xv+xml + + + mxs + application/vnd.triscape.mxs + + + mxu + video/vnd.mpegurl + + + n-gage + application/vnd.nokia.n-gage.symbian.install + + + n3 + text/n3 + + + nb + application/mathematica + + + nbp + application/vnd.wolfram.player + + + nc + application/x-netcdf + + + ncx + application/x-dtbncx+xml + + + ngdat + application/vnd.nokia.n-gage.data + + + nlu + application/vnd.neurolanguage.nlu + + + nml + application/vnd.enliven + + + nnd + application/vnd.noblenet-directory + + + nns + application/vnd.noblenet-sealer + + + nnw + application/vnd.noblenet-web + + + npx + image/vnd.net-fpx + + + nsf + application/vnd.lotus-notes + + + oa2 + application/vnd.fujitsu.oasys2 + + + oa3 + application/vnd.fujitsu.oasys3 + + + oas + application/vnd.fujitsu.oasys + + + obd + application/x-msbinder + + + oda + application/oda + + + + odb + application/vnd.oasis.opendocument.database + + + + odc + application/vnd.oasis.opendocument.chart + + + + odf + application/vnd.oasis.opendocument.formula + + + odft + application/vnd.oasis.opendocument.formula-template + + + + odg + application/vnd.oasis.opendocument.graphics + + + + odi + application/vnd.oasis.opendocument.image + + + + odm + application/vnd.oasis.opendocument.text-master + + + + odp + application/vnd.oasis.opendocument.presentation + + + + ods + application/vnd.oasis.opendocument.spreadsheet + + + + odt + application/vnd.oasis.opendocument.text + + + oga + audio/ogg + + + ogg + audio/ogg + + + ogv + video/ogg + + + + ogx + application/ogg + + + onepkg + application/onenote + + + onetmp + application/onenote + + + onetoc + application/onenote + + + onetoc2 + application/onenote + + + opf + application/oebps-package+xml + + + oprc + application/vnd.palm + + + org + application/vnd.lotus-organizer + + + osf + application/vnd.yamaha.openscoreformat + + + osfpvg + application/vnd.yamaha.openscoreformat.osfpvg+xml + + + otc + application/vnd.oasis.opendocument.chart-template + + + otf + application/x-font-otf + + + + otg + application/vnd.oasis.opendocument.graphics-template + + + + oth + application/vnd.oasis.opendocument.text-web + + + oti + application/vnd.oasis.opendocument.image-template + + + + otp + application/vnd.oasis.opendocument.presentation-template + + + + ots + application/vnd.oasis.opendocument.spreadsheet-template + + + + ott + application/vnd.oasis.opendocument.text-template + + + oxps + application/oxps + + + oxt + application/vnd.openofficeorg.extension + + + p + text/x-pascal + + + p10 + application/pkcs10 + + + p12 + application/x-pkcs12 + + + p7b + application/x-pkcs7-certificates + + + p7c + application/pkcs7-mime + + + p7m + application/pkcs7-mime + + + p7r + application/x-pkcs7-certreqresp + + + p7s + application/pkcs7-signature + + + p8 + application/pkcs8 + + + pas + text/x-pascal + + + paw + application/vnd.pawaafile + + + pbd + application/vnd.powerbuilder6 + + + pbm + image/x-portable-bitmap + + + pcap + application/vnd.tcpdump.pcap + + + pcf + application/x-font-pcf + + + pcl + application/vnd.hp-pcl + + + pclxl + application/vnd.hp-pclxl + + + pct + image/pict + + + pcurl + application/vnd.curl.pcurl + + + pcx + image/x-pcx + + + pdb + application/vnd.palm + + + pdf + application/pdf + + + pfa + application/x-font-type1 + + + pfb + application/x-font-type1 + + + pfm + application/x-font-type1 + + + pfr + application/font-tdpfr + + + pfx + application/x-pkcs12 + + + pgm + image/x-portable-graymap + + + pgn + application/x-chess-pgn + + + pgp + application/pgp-encrypted + + + pic + image/pict + + + pict + image/pict + + + pkg + application/octet-stream + + + pki + application/pkixcmp + + + pkipath + application/pkix-pkipath + + + plb + application/vnd.3gpp.pic-bw-large + + + plc + application/vnd.mobius.plc + + + plf + application/vnd.pocketlearn + + + pls + audio/x-scpls + + + pml + application/vnd.ctc-posml + + + png + image/png + + + pnm + image/x-portable-anymap + + + pnt + image/x-macpaint + + + portpkg + application/vnd.macports.portpkg + + + pot + application/vnd.ms-powerpoint + + + potm + application/vnd.ms-powerpoint.template.macroenabled.12 + + + potx + application/vnd.openxmlformats-officedocument.presentationml.template + + + ppam + application/vnd.ms-powerpoint.addin.macroenabled.12 + + + ppd + application/vnd.cups-ppd + + + ppm + image/x-portable-pixmap + + + pps + application/vnd.ms-powerpoint + + + ppsm + application/vnd.ms-powerpoint.slideshow.macroenabled.12 + + + ppsx + application/vnd.openxmlformats-officedocument.presentationml.slideshow + + + ppt + application/vnd.ms-powerpoint + + + pptm + application/vnd.ms-powerpoint.presentation.macroenabled.12 + + + pptx + application/vnd.openxmlformats-officedocument.presentationml.presentation + + + pqa + application/vnd.palm + + + prc + application/x-mobipocket-ebook + + + pre + application/vnd.lotus-freelance + + + prf + application/pics-rules + + + ps + application/postscript + + + psb + application/vnd.3gpp.pic-bw-small + + + psd + image/vnd.adobe.photoshop + + + psf + application/x-font-linux-psf + + + pskcxml + application/pskc+xml + + + ptid + application/vnd.pvi.ptid1 + + + pub + application/x-mspublisher + + + pvb + application/vnd.3gpp.pic-bw-var + + + pwn + application/vnd.3m.post-it-notes + + + pya + audio/vnd.ms-playready.media.pya + + + pyv + video/vnd.ms-playready.media.pyv + + + qam + application/vnd.epson.quickanime + + + qbo + application/vnd.intu.qbo + + + qfx + application/vnd.intu.qfx + + + qps + application/vnd.publishare-delta-tree + + + qt + video/quicktime + + + qti + image/x-quicktime + + + qtif + image/x-quicktime + + + qwd + application/vnd.quark.quarkxpress + + + qwt + application/vnd.quark.quarkxpress + + + qxb + application/vnd.quark.quarkxpress + + + qxd + application/vnd.quark.quarkxpress + + + qxl + application/vnd.quark.quarkxpress + + + qxt + application/vnd.quark.quarkxpress + + + ra + audio/x-pn-realaudio + + + ram + audio/x-pn-realaudio + + + rar + application/x-rar-compressed + + + ras + image/x-cmu-raster + + + rcprofile + application/vnd.ipunplugged.rcprofile + + + rdf + application/rdf+xml + + + rdz + application/vnd.data-vision.rdz + + + rep + application/vnd.businessobjects + + + res + application/x-dtbresource+xml + + + rgb + image/x-rgb + + + rif + application/reginfo+xml + + + rip + audio/vnd.rip + + + rl + application/resource-lists+xml + + + rlc + image/vnd.fujixerox.edmics-rlc + + + rld + application/resource-lists-diff+xml + + + rm + application/vnd.rn-realmedia + + + rmi + audio/midi + + + rmp + audio/x-pn-realaudio-plugin + + + rms + application/vnd.jcp.javame.midlet-rms + + + rnc + application/relax-ng-compact-syntax + + + roa + application/rpki-roa + + + roff + text/troff + + + rp9 + application/vnd.cloanto.rp9 + + + rpss + application/vnd.nokia.radio-presets + + + rpst + application/vnd.nokia.radio-preset + + + rq + application/sparql-query + + + rs + application/rls-services+xml + + + rsd + application/rsd+xml + + + rss + application/rss+xml + + + rtf + application/rtf + + + rtx + text/richtext + + + s + text/x-asm + + + saf + application/vnd.yamaha.smaf-audio + + + sbml + application/sbml+xml + + + sc + application/vnd.ibm.secure-container + + + scd + application/x-msschedule + + + scm + application/vnd.lotus-screencam + + + scq + application/scvp-cv-request + + + scs + application/scvp-cv-response + + + scurl + text/vnd.curl.scurl + + + sda + application/vnd.stardivision.draw + + + sdc + application/vnd.stardivision.calc + + + sdd + application/vnd.stardivision.impress + + + sdkd + application/vnd.solent.sdkm+xml + + + sdkm + application/vnd.solent.sdkm+xml + + + sdp + application/sdp + + + sdw + application/vnd.stardivision.writer + + + see + application/vnd.seemail + + + seed + application/vnd.fdsn.seed + + + sema + application/vnd.sema + + + semd + application/vnd.semd + + + semf + application/vnd.semf + + + ser + application/java-serialized-object + + + setpay + application/set-payment-initiation + + + setreg + application/set-registration-initiation + + + sfd-hdstx + application/vnd.hydrostatix.sof-data + + + sfs + application/vnd.spotfire.sfs + + + sgl + application/vnd.stardivision.writer-global + + + sgm + text/sgml + + + sgml + text/sgml + + + sh + application/x-sh + + + shar + application/x-shar + + + shf + application/shf+xml + + + + sig + application/pgp-signature + + + silo + model/mesh + + + sis + application/vnd.symbian.install + + + sisx + application/vnd.symbian.install + + + sit + application/x-stuffit + + + sitx + application/x-stuffitx + + + skd + application/vnd.koan + + + skm + application/vnd.koan + + + skp + application/vnd.koan + + + skt + application/vnd.koan + + + sldm + application/vnd.ms-powerpoint.slide.macroenabled.12 + + + sldx + application/vnd.openxmlformats-officedocument.presentationml.slide + + + slt + application/vnd.epson.salt + + + sm + application/vnd.stepmania.stepchart + + + smf + application/vnd.stardivision.math + + + smi + application/smil+xml + + + smil + application/smil+xml + + + smzip + application/vnd.stepmania.package + + + snd + audio/basic + + + snf + application/x-font-snf + + + so + application/octet-stream + + + spc + application/x-pkcs7-certificates + + + spf + application/vnd.yamaha.smaf-phrase + + + spl + application/x-futuresplash + + + spot + text/vnd.in3d.spot + + + spp + application/scvp-vp-response + + + spq + application/scvp-vp-request + + + spx + audio/ogg + + + src + application/x-wais-source + + + sru + application/sru+xml + + + srx + application/sparql-results+xml + + + sse + application/vnd.kodak-descriptor + + + ssf + application/vnd.epson.ssf + + + ssml + application/ssml+xml + + + st + application/vnd.sailingtracker.track + + + stc + application/vnd.sun.xml.calc.template + + + std + application/vnd.sun.xml.draw.template + + + stf + application/vnd.wt.stf + + + sti + application/vnd.sun.xml.impress.template + + + stk + application/hyperstudio + + + stl + application/vnd.ms-pki.stl + + + str + application/vnd.pg.format + + + stw + application/vnd.sun.xml.writer.template + + + sub + text/vnd.dvb.subtitle + + + sus + application/vnd.sus-calendar + + + susp + application/vnd.sus-calendar + + + sv4cpio + application/x-sv4cpio + + + sv4crc + application/x-sv4crc + + + svc + application/vnd.dvb.service + + + svd + application/vnd.svd + + + svg + image/svg+xml + + + svgz + image/svg+xml + + + swa + application/x-director + + + swf + application/x-shockwave-flash + + + swi + application/vnd.aristanetworks.swi + + + sxc + application/vnd.sun.xml.calc + + + sxd + application/vnd.sun.xml.draw + + + sxg + application/vnd.sun.xml.writer.global + + + sxi + application/vnd.sun.xml.impress + + + sxm + application/vnd.sun.xml.math + + + sxw + application/vnd.sun.xml.writer + + + t + text/troff + + + taglet + application/vnd.mynfc + + + tao + application/vnd.tao.intent-module-archive + + + tar + application/x-tar + + + tcap + application/vnd.3gpp2.tcap + + + tcl + application/x-tcl + + + teacher + application/vnd.smart.teacher + + + tei + application/tei+xml + + + teicorpus + application/tei+xml + + + tex + application/x-tex + + + texi + application/x-texinfo + + + texinfo + application/x-texinfo + + + text + text/plain + + + tfi + application/thraud+xml + + + tfm + application/x-tex-tfm + + + thmx + application/vnd.ms-officetheme + + + tif + image/tiff + + + tiff + image/tiff + + + tmo + application/vnd.tmobile-livetv + + + torrent + application/x-bittorrent + + + tpl + application/vnd.groove-tool-template + + + tpt + application/vnd.trid.tpt + + + tr + text/troff + + + tra + application/vnd.trueapp + + + trm + application/x-msterminal + + + tsd + application/timestamped-data + + + tsv + text/tab-separated-values + + + ttc + application/x-font-ttf + + + ttf + application/x-font-ttf + + + ttl + text/turtle + + + twd + application/vnd.simtech-mindmapper + + + twds + application/vnd.simtech-mindmapper + + + txd + application/vnd.genomatix.tuxedo + + + txf + application/vnd.mobius.txf + + + txt + text/plain + + + u32 + application/x-authorware-bin + + + udeb + application/x-debian-package + + + ufd + application/vnd.ufdl + + + ufdl + application/vnd.ufdl + + + ulw + audio/basic + + + umj + application/vnd.umajin + + + unityweb + application/vnd.unity + + + uoml + application/vnd.uoml+xml + + + uri + text/uri-list + + + uris + text/uri-list + + + urls + text/uri-list + + + ustar + application/x-ustar + + + utz + application/vnd.uiq.theme + + + uu + text/x-uuencode + + + uva + audio/vnd.dece.audio + + + uvd + application/vnd.dece.data + + + uvf + application/vnd.dece.data + + + uvg + image/vnd.dece.graphic + + + uvh + video/vnd.dece.hd + + + uvi + image/vnd.dece.graphic + + + uvm + video/vnd.dece.mobile + + + uvp + video/vnd.dece.pd + + + uvs + video/vnd.dece.sd + + + uvt + application/vnd.dece.ttml+xml + + + uvu + video/vnd.uvvu.mp4 + + + uvv + video/vnd.dece.video + + + uvva + audio/vnd.dece.audio + + + uvvd + application/vnd.dece.data + + + uvvf + application/vnd.dece.data + + + uvvg + image/vnd.dece.graphic + + + uvvh + video/vnd.dece.hd + + + uvvi + image/vnd.dece.graphic + + + uvvm + video/vnd.dece.mobile + + + uvvp + video/vnd.dece.pd + + + uvvs + video/vnd.dece.sd + + + uvvt + application/vnd.dece.ttml+xml + + + uvvu + video/vnd.uvvu.mp4 + + + uvvv + video/vnd.dece.video + + + uvvx + application/vnd.dece.unspecified + + + uvvz + application/vnd.dece.zip + + + uvx + application/vnd.dece.unspecified + + + uvz + application/vnd.dece.zip + + + vcard + text/vcard + + + vcd + application/x-cdlink + + + vcf + text/x-vcard + + + vcg + application/vnd.groove-vcard + + + vcs + text/x-vcalendar + + + vcx + application/vnd.vcx + + + vis + application/vnd.visionary + + + viv + video/vnd.vivo + + + vor + application/vnd.stardivision.writer + + + vox + application/x-authorware-bin + + + vrml + model/vrml + + + vsd + application/vnd.visio + + + vsf + application/vnd.vsf + + + vss + application/vnd.visio + + + vst + application/vnd.visio + + + vsw + application/vnd.visio + + + vtu + model/vnd.vtu + + + vxml + application/voicexml+xml + + + w3d + application/x-director + + + wad + application/x-doom + + + wav + audio/x-wav + + + wax + audio/x-ms-wax + + + + wbmp + image/vnd.wap.wbmp + + + wbs + application/vnd.criticaltools.wbs+xml + + + wbxml + application/vnd.wap.wbxml + + + wcm + application/vnd.ms-works + + + wdb + application/vnd.ms-works + + + weba + audio/webm + + + webm + video/webm + + + webp + image/webp + + + wg + application/vnd.pmi.widget + + + wgt + application/widget + + + wks + application/vnd.ms-works + + + wm + video/x-ms-wm + + + wma + audio/x-ms-wma + + + wmd + application/x-ms-wmd + + + wmf + application/x-msmetafile + + + + wml + text/vnd.wap.wml + + + + wmlc + application/vnd.wap.wmlc + + + + wmls + text/vnd.wap.wmlscript + + + + wmlsc + application/vnd.wap.wmlscriptc + + + wmv + video/x-ms-wmv + + + wmx + video/x-ms-wmx + + + wmz + application/x-ms-wmz + + + woff + application/x-font-woff + + + wpd + application/vnd.wordperfect + + + wpl + application/vnd.ms-wpl + + + wps + application/vnd.ms-works + + + wqd + application/vnd.wqd + + + wri + application/x-mswrite + + + wrl + model/vrml + + + wsdl + application/wsdl+xml + + + wspolicy + application/wspolicy+xml + + + wtb + application/vnd.webturbo + + + wvx + video/x-ms-wvx + + + x32 + application/x-authorware-bin + + + x3d + application/vnd.hzn-3d-crossword + + + xap + application/x-silverlight-app + + + xar + application/vnd.xara + + + xbap + application/x-ms-xbap + + + xbd + application/vnd.fujixerox.docuworks.binder + + + xbm + image/x-xbitmap + + + xdf + application/xcap-diff+xml + + + xdm + application/vnd.syncml.dm+xml + + + xdp + application/vnd.adobe.xdp+xml + + + xdssc + application/dssc+xml + + + xdw + application/vnd.fujixerox.docuworks + + + xenc + application/xenc+xml + + + xer + application/patch-ops-error+xml + + + xfdf + application/vnd.adobe.xfdf + + + xfdl + application/vnd.xfdl + + + xht + application/xhtml+xml + + + xhtml + application/xhtml+xml + + + xhvml + application/xv+xml + + + xif + image/vnd.xiff + + + xla + application/vnd.ms-excel + + + xlam + application/vnd.ms-excel.addin.macroenabled.12 + + + xlc + application/vnd.ms-excel + + + xlm + application/vnd.ms-excel + + + xls + application/vnd.ms-excel + + + xlsb + application/vnd.ms-excel.sheet.binary.macroenabled.12 + + + xlsm + application/vnd.ms-excel.sheet.macroenabled.12 + + + xlsx + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + + + xlt + application/vnd.ms-excel + + + xltm + application/vnd.ms-excel.template.macroenabled.12 + + + xltx + application/vnd.openxmlformats-officedocument.spreadsheetml.template + + + xlw + application/vnd.ms-excel + + + xml + application/xml + + + xo + application/vnd.olpc-sugar + + + xop + application/xop+xml + + + xpi + application/x-xpinstall + + + xpm + image/x-xpixmap + + + xpr + application/vnd.is-xpr + + + xps + application/vnd.ms-xpsdocument + + + xpw + application/vnd.intercon.formnet + + + xpx + application/vnd.intercon.formnet + + + xsl + application/xml + + + xslt + application/xslt+xml + + + xsm + application/vnd.syncml+xml + + + xspf + application/xspf+xml + + + xul + application/vnd.mozilla.xul+xml + + + xvm + application/xv+xml + + + xvml + application/xv+xml + + + xwd + image/x-xwindowdump + + + xyz + chemical/x-xyz + + + yang + application/yang + + + yin + application/yin+xml + + + z + application/x-compress + + + Z + application/x-compress + + + zaz + application/vnd.zzazz.deck+xml + + + zip + application/zip + + + zir + application/vnd.zul + + + zirz + application/vnd.zul + + + zmm + application/vnd.handheld-entertainment+xml + + + + + + + + + + + + + + + + + + index.html + index.htm + index.jsp + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/logs/access_log.2022-12-06" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/logs/access_log.2022-12-06" new file mode 100644 index 0000000..47ae6c7 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/logs/access_log.2022-12-06" @@ -0,0 +1,21 @@ +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:01:50 +0800] "GET /jstl_el HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:01:50 +0800] "GET /jstl_el/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:02:33 +0800] "GET /jstl_el/jstl-foreach.jsp HTTP/1.1" 404 999 http-bio-8080-exec-4 1 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:03:20 +0800] "GET /jstl_el/jstl-foreach.jsp HTTP/1.1" 404 999 http-bio-8080-exec-1 17 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:03:40 +0800] "GET /jstl_el/jstl-foreachjsp HTTP/1.1" 404 997 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:11:28 +0800] "GET /jstl_el HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:11:28 +0800] "GET /jstl_el/ HTTP/1.1" 404 967 http-bio-8080-exec-3 8 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:11:34 +0800] "GET /jstl_el/demo1 HTTP/1.1" 200 1877 http-bio-8080-exec-4 402 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:24:58 +0800] "GET /jstl_el HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:24:58 +0800] "GET /jstl_el/ HTTP/1.1" 404 967 http-bio-8080-exec-3 7 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:25:03 +0800] "GET /jstl_el/demo2 HTTP/1.1" 200 489 http-bio-8080-exec-4 433 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:26:09 +0800] "GET /jstl_el/demo2 HTTP/1.1" 500 3725 http-bio-8080-exec-1 57 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:26:14 +0800] "GET /jstl_el/demo2 HTTP/1.1" 500 3725 http-bio-8080-exec-2 3 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:26:16 +0800] "GET /jstl_el/demo2 HTTP/1.1" 500 3725 http-bio-8080-exec-3 4 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:26:23 +0800] "GET /jstl_el/demo2 HTTP/1.1" 500 3725 http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:28:39 +0800] "GET /jstl_el/demo2 HTTP/1.1" 500 4032 http-bio-8080-exec-1 516 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:31:43 +0800] "GET /jstl_el/demo2 HTTP/1.1" 200 1587 http-bio-8080-exec-1 506 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:43:37 +0800] "GET /jstl_el/demo2 HTTP/1.1" 200 1587 http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:43:37 +0800] "GET /jstl_el/demo2 HTTP/1.1" 200 1587 http-bio-8080-exec-6 2 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:45:15 +0800] "GET /jstl_el/ HTTP/1.1" 404 967 http-bio-8080-exec-1 17 +0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:45:38 +0800] "GET /jstl_el/demo2 HTTP/1.1" 200 1566 http-bio-8080-exec-3 41 diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/logs/access_log.2022-12-07" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/logs/access_log.2022-12-07" new file mode 100644 index 0000000..5b92edc --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/logs/access_log.2022-12-07" @@ -0,0 +1,14 @@ +0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:18:23 +0800] "GET /jstl_el HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:18:23 +0800] "GET /jstl_el/ HTTP/1.1" 404 967 http-bio-8080-exec-3 6 +0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:18:23 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:18:40 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 312 http-bio-8080-exec-5 271 +0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:21:06 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 709 http-bio-8080-exec-7 29 +0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:21:38 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 711 http-bio-8080-exec-9 25 +0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:23:22 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 739 http-bio-8080-exec-1 23 +0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:23:36 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 750 http-bio-8080-exec-1 23 +0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:23:48 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 751 http-bio-8080-exec-1 23 +0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:24:11 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 764 http-bio-8080-exec-1 23 +0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:25:13 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 764 http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:25:14 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 764 http-bio-8080-exec-7 0 +0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:25:42 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 779 http-bio-8080-exec-7 21 +0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:26:23 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 825 http-bio-8080-exec-7 20 diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/\347\254\254\344\270\203\347\253\240" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/\347\254\254\344\270\203\347\253\240" new file mode 100644 index 0000000..e69de29 -- Gitee From fda8e37c4e344c01947ba0b5b2bdf93ce20dccb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Wed, 7 Dec 2022 12:31:06 +0000 Subject: [PATCH 157/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗鑫lxxx666 <10602820+jason666NB@user.noreply.gitee.com> --- .../filterWork/filterWork.iml" | 38 + .../filterWork/pom.xml" | 76 + .../filterWork/src/main/java/filter.java" | 35 + .../src/main/java/filterServelet.java" | 26 + .../src/main/webapp/WEB-INF/web.xml" | 7 + .../src/main/webapp/filterweb.html" | 12 + .../filterWork/src/main/webapp/filterweb.jsp" | 24 + .../filterWork/src/main/webapp/webtest.jsp" | 20 + .../filterWork/target/classes/filter.class" | Bin 0 -> 1949 bytes .../target/classes/filterServelet.class" | Bin 0 -> 1218 bytes .../compile/default-compile/createdFiles.lst" | 2 + .../compile/default-compile/inputFiles.lst" | 2 + .../target/tomcat/conf/logging.properties" | 64 + .../target/tomcat/conf/tomcat-users.xml" | 26 + .../filterWork/target/tomcat/conf/web.xml" | 4283 +++++++++++++++++ .../target/tomcat/logs/access_log.2022-12-04" | 40 + .../target/tomcat/logs/access_log.2022-12-05" | 76 + .../org/apache/jsp/filterweb_jsp.class" | Bin 0 -> 3991 bytes .../org/apache/jsp/filterweb_jsp.java" | 85 + .../\347\254\254\345\205\253\347\253\240" | 0 20 files changed, 4816 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/filterWork.iml" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/pom.xml" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/java/filter.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/java/filterServelet.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/WEB-INF/web.xml" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/filterweb.html" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/filterweb.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/webtest.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/classes/filter.class" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/classes/filterServelet.class" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/logging.properties" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/tomcat-users.xml" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/web.xml" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/logs/access_log.2022-12-04" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/logs/access_log.2022-12-05" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/work/Tomcat/localhost/filterWork/org/apache/jsp/filterweb_jsp.class" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/work/Tomcat/localhost/filterWork/org/apache/jsp/filterweb_jsp.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/\347\254\254\345\205\253\347\253\240" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/filterWork.iml" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/filterWork.iml" new file mode 100644 index 0000000..8136199 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/filterWork.iml" @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/pom.xml" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/pom.xml" new file mode 100644 index 0000000..daeb51a --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/pom.xml" @@ -0,0 +1,76 @@ + + + 4.0.0 + + org.example + filterWork + 1.0-SNAPSHOT + war + + + 8 + 8 + + + + + + + org.mybatis + mybatis + 3.5.5 + + + + + mysql + mysql-connector-java + 8.0.30 + + + + + javax.servlet + javax.servlet-api + 3.1.0 + provided + + + + + + javax.servlet.jsp + jsp-api + 2.2 + provided + + + + + jstl + jstl + 1.2 + + + taglibs + standard + 1.1.2 + + + + + + + + + org.apache.tomcat.maven + tomcat7-maven-plugin + 2.2 + + + + + + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/java/filter.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/java/filter.java" new file mode 100644 index 0000000..2c82a03 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/java/filter.java" @@ -0,0 +1,35 @@ +import javax.servlet.*; +import javax.servlet.annotation.WebFilter; +import java.io.IOException; + +//配置Filter拦截路径 +@WebFilter("/test") +public class filter implements Filter { + @Override + public void init(FilterConfig filterConfig) throws ServletException { + + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { + request.setCharacterEncoding("utf-8"); + String[] str = new String[]{"sb","lz","2货"}; + String name = request.getParameter("name"); +// name = name.replaceAll("sb","**"); +// name = name.replaceAll("lz","**"); + for (int i = 0; i < str.length; i++) { + String index = str[i]; + name = name.replaceAll(index,"**"); + } + System.out.print("过滤后输出:"); + System.out.println(name); + request.setAttribute("name",name); + + + chain.doFilter(request,response); + } + @Override + public void destroy() { + + } +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/java/filterServelet.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/java/filterServelet.java" new file mode 100644 index 0000000..bb346d1 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/java/filterServelet.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/test") +public class filterServelet extends HttpServlet { + @Override + public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + String name = request.getParameter("name"); + System.out.print("原输入:"); + System.out.println(name); + + + } + + + @Override + public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request,response); + + } + +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/WEB-INF/web.xml" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/WEB-INF/web.xml" new file mode 100644 index 0000000..948c100 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/WEB-INF/web.xml" @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/filterweb.html" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/filterweb.html" new file mode 100644 index 0000000..3b56155 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/filterweb.html" @@ -0,0 +1,12 @@ + + + + + Title + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/filterweb.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/filterweb.jsp" new file mode 100644 index 0000000..e6945eb --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/filterweb.jsp" @@ -0,0 +1,24 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/4 + Time: 15:49 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + + 过滤器应用---敏感词过滤 + + + +

过滤器应用---敏感词过滤

+
+ + +
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/webtest.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/webtest.jsp" new file mode 100644 index 0000000..55f167c --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/webtest.jsp" @@ -0,0 +1,20 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/5 + Time: 14:53 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 过滤器应用---敏感词过滤 + + +

过滤器应用---敏感词过滤

+
+ + +
+ + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/classes/filter.class" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/classes/filter.class" new file mode 100644 index 0000000000000000000000000000000000000000..8a163420ad795d4a605ddb868af16a203ef435ae GIT binary patch literal 1949 zcma)6U2_vv7=BK&A0b(22^Nio0u`Z6DZvWZ4@7EdwOD9vu(i~$O>){UZZ>sy(%)B(JOw^Nu-;|AVQ%Zxg{nZYg0nwT^3 zu8Da88c53=30{!$i$naaPAvAuA4vEds}$z^<tG+1Xc*?Qc-xn?_F1XFjsiriG~t9}Zu z?X4Dyq3?LBY*sjYrUgttt|id(v}!RH0{3NHm>fOLw}DJRFDo1Z-7TKGK~lIN^aYMA zw?n9Tc9r5CEQWUZ)0_5sq??HX2gk&1BCn7lzjlud7i)FDESZ}AnUzSc^Qvco+9)11z z{=>h1`NqV@7CynE1zRm8lucAD^nx&qxW7FmXG?cwnWOt$yTPThd(Dk8YK|oZh|oK= z!u0Ge>#??BjoDtoB^sY*}3!G`^)@}^a zzFc?hvK)6^f#Eh$`-A%ToA%IEycdMB%IT}sNm^Iz&F<%TH$vVJX;-OxlayU%3cs$L zIDOIXa>6b0Fdp(=mFgk&Is0sgu~gCh%q&+v6sP#~;-xs5=%Fpelj=Y=v5jN`#;?$pl3BgDq-BlblAbk- zquM|=wT%M_jOxkDMwgM(9({}MoYrLwjhZ<+5~XLDy5Yp6z=jaSi!em1LYc??9fRB;Z2tbH7FI8PZgMor-Yv*>sw zLXvobyon(buZq9P+esP?hF*+#yVO*0fOeI7p9sAXzF0lcz>>gax+d@%hPfYN;0T}5 JWrzS{{{qa5-)sN? literal 0 HcmV?d00001 diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/classes/filterServelet.class" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/classes/filterServelet.class" new file mode 100644 index 0000000000000000000000000000000000000000..616569b0e237ec70cfac84028c085b4084753062 GIT binary patch literal 1218 zcmah|$!^p@5PdzHXB=l?LLgxYYqrT^matBQgd&zmqYx!195^{ilNfpI!S0E|2XN)W zjSD9}01iPQln>xPB5~sn5U*`(k^z*tblFv}URAy7{_*?U9)MZQnJ{s=h`}z5V6=oW zj2AIsqJl|%OqnQQ+Q5tfTc9xK`mVYskR6{`70As88&aUR=K6B6SznXkQ)kVir(6rx z9dFeMUHzXrb85?t1o~<(Tu;exMTXnbld39^-v}N_C9phRd+BUDJ9fkvL-v+Z4f`<< z4W?sRzG})yRXf6>M&L)Xs+%;zBuQYbV_L#4Pz+_lAkev`v=-&?oq9aH9>VqKK}at-oR}OcW~E2RUc*a3-q-2Cop{U%KibQ4Yl;($gy5-U@ts5{0zgC-v z+*GrnLCpGJU48xHxaZ>nACk!@2V^0%_&mG$XVVJWeB}$oCw^qm!?O@OOX%gdh7y22 z9HZs)LO)SDxlWs-9hxj>z9O5!;%DT_`CSxfr*~l-5SC-0#V)!@(}O{tn!J(_q~xT+ zaSX%-hj0QXS)jz&ApKdKBECS+X`CVAY^#k0#oMRr?vY?0p7oS5!xbz3_VJ3h8 literal 0 HcmV?d00001 diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" new file mode 100644 index 0000000..4e0c00e --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" @@ -0,0 +1,2 @@ +filter.class +filterServelet.class diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" new file mode 100644 index 0000000..a069c6d --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" @@ -0,0 +1,2 @@ +B:\javawork\web\filterWork\src\main\java\filter.java +B:\javawork\web\filterWork\src\main\java\filterServelet.java diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/logging.properties" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/logging.properties" new file mode 100644 index 0000000..76c9512 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/logging.properties" @@ -0,0 +1,64 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler + +.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler + +############################################################ +# Handler specific properties. +# Describes specific configuration info for Handlers. +############################################################ + +1catalina.org.apache.juli.FileHandler.level = FINE +1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +1catalina.org.apache.juli.FileHandler.prefix = catalina. + +2localhost.org.apache.juli.FileHandler.level = FINE +2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +2localhost.org.apache.juli.FileHandler.prefix = localhost. + +3manager.org.apache.juli.FileHandler.level = FINE +3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +3manager.org.apache.juli.FileHandler.prefix = manager. + +4host-manager.org.apache.juli.FileHandler.level = FINE +4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +4host-manager.org.apache.juli.FileHandler.prefix = host-manager. + +java.util.logging.ConsoleHandler.level = FINE +java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter + + +############################################################ +# Facility specific properties. +# Provides extra control for each logger. +############################################################ + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler + +# For example, set the org.apache.catalina.util.LifecycleBase logger to log +# each component that extends LifecycleBase changing state: +#org.apache.catalina.util.LifecycleBase.level = FINE + +# To see debug messages in TldLocationsCache, uncomment the following line: +#org.apache.jasper.compiler.TldLocationsCache.level = FINE diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/tomcat-users.xml" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/tomcat-users.xml" new file mode 100644 index 0000000..7114f5d --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/tomcat-users.xml" @@ -0,0 +1,26 @@ + + + + + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/web.xml" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/web.xml" new file mode 100644 index 0000000..cc8383c --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/web.xml" @@ -0,0 +1,4283 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + org.apache.catalina.servlets.DefaultServlet + + debug + 0 + + + listings + false + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jsp + org.apache.jasper.servlet.JspServlet + + fork + false + + + xpoweredBy + false + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + / + + + + + jsp + *.jsp + *.jspx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 30 + + + + + + + + + + + + 123 + application/vnd.lotus-1-2-3 + + + 3dml + text/vnd.in3d.3dml + + + 3g2 + video/3gpp2 + + + 3gp + video/3gpp + + + 7z + application/x-7z-compressed + + + aab + application/x-authorware-bin + + + aac + audio/x-aac + + + aam + application/x-authorware-map + + + aas + application/x-authorware-seg + + + abs + audio/x-mpeg + + + abw + application/x-abiword + + + ac + application/pkix-attr-cert + + + acc + application/vnd.americandynamics.acc + + + ace + application/x-ace-compressed + + + acu + application/vnd.acucobol + + + acutc + application/vnd.acucorp + + + adp + audio/adpcm + + + aep + application/vnd.audiograph + + + afm + application/x-font-type1 + + + afp + application/vnd.ibm.modcap + + + ahead + application/vnd.ahead.space + + + ai + application/postscript + + + aif + audio/x-aiff + + + aifc + audio/x-aiff + + + aiff + audio/x-aiff + + + aim + application/x-aim + + + air + application/vnd.adobe.air-application-installer-package+zip + + + ait + application/vnd.dvb.ait + + + ami + application/vnd.amiga.ami + + + anx + application/annodex + + + apk + application/vnd.android.package-archive + + + application + application/x-ms-application + + + apr + application/vnd.lotus-approach + + + art + image/x-jg + + + asc + application/pgp-signature + + + asf + video/x-ms-asf + + + asm + text/x-asm + + + aso + application/vnd.accpac.simply.aso + + + asx + video/x-ms-asf + + + atc + application/vnd.acucorp + + + atom + application/atom+xml + + + atomcat + application/atomcat+xml + + + atomsvc + application/atomsvc+xml + + + atx + application/vnd.antix.game-component + + + au + audio/basic + + + avi + video/x-msvideo + + + avx + video/x-rad-screenplay + + + aw + application/applixware + + + axa + audio/annodex + + + axv + video/annodex + + + azf + application/vnd.airzip.filesecure.azf + + + azs + application/vnd.airzip.filesecure.azs + + + azw + application/vnd.amazon.ebook + + + bat + application/x-msdownload + + + bcpio + application/x-bcpio + + + bdf + application/x-font-bdf + + + bdm + application/vnd.syncml.dm+wbxml + + + bed + application/vnd.realvnc.bed + + + bh2 + application/vnd.fujitsu.oasysprs + + + bin + application/octet-stream + + + bmi + application/vnd.bmi + + + bmp + image/bmp + + + body + text/html + + + book + application/vnd.framemaker + + + box + application/vnd.previewsystems.box + + + boz + application/x-bzip2 + + + bpk + application/octet-stream + + + btif + image/prs.btif + + + bz + application/x-bzip + + + bz2 + application/x-bzip2 + + + c + text/x-c + + + c11amc + application/vnd.cluetrust.cartomobile-config + + + c11amz + application/vnd.cluetrust.cartomobile-config-pkg + + + c4d + application/vnd.clonk.c4group + + + c4f + application/vnd.clonk.c4group + + + c4g + application/vnd.clonk.c4group + + + c4p + application/vnd.clonk.c4group + + + c4u + application/vnd.clonk.c4group + + + cab + application/vnd.ms-cab-compressed + + + cap + application/vnd.tcpdump.pcap + + + car + application/vnd.curl.car + + + cat + application/vnd.ms-pki.seccat + + + cc + text/x-c + + + cct + application/x-director + + + ccxml + application/ccxml+xml + + + cdbcmsg + application/vnd.contact.cmsg + + + cdf + application/x-cdf + + + cdkey + application/vnd.mediastation.cdkey + + + cdmia + application/cdmi-capability + + + cdmic + application/cdmi-container + + + cdmid + application/cdmi-domain + + + cdmio + application/cdmi-object + + + cdmiq + application/cdmi-queue + + + cdx + chemical/x-cdx + + + cdxml + application/vnd.chemdraw+xml + + + cdy + application/vnd.cinderella + + + cer + application/pkix-cert + + + cgm + image/cgm + + + chat + application/x-chat + + + chm + application/vnd.ms-htmlhelp + + + chrt + application/vnd.kde.kchart + + + cif + chemical/x-cif + + + cii + application/vnd.anser-web-certificate-issue-initiation + + + cil + application/vnd.ms-artgalry + + + cla + application/vnd.claymore + + + class + application/java + + + clkk + application/vnd.crick.clicker.keyboard + + + clkp + application/vnd.crick.clicker.palette + + + clkt + application/vnd.crick.clicker.template + + + clkw + application/vnd.crick.clicker.wordbank + + + clkx + application/vnd.crick.clicker + + + clp + application/x-msclip + + + cmc + application/vnd.cosmocaller + + + cmdf + chemical/x-cmdf + + + cml + chemical/x-cml + + + cmp + application/vnd.yellowriver-custom-menu + + + cmx + image/x-cmx + + + cod + application/vnd.rim.cod + + + com + application/x-msdownload + + + conf + text/plain + + + cpio + application/x-cpio + + + cpp + text/x-c + + + cpt + application/mac-compactpro + + + crd + application/x-mscardfile + + + crl + application/pkix-crl + + + crt + application/x-x509-ca-cert + + + cryptonote + application/vnd.rig.cryptonote + + + csh + application/x-csh + + + csml + chemical/x-csml + + + csp + application/vnd.commonspace + + + css + text/css + + + cst + application/x-director + + + csv + text/csv + + + cu + application/cu-seeme + + + curl + text/vnd.curl + + + cww + application/prs.cww + + + cxt + application/x-director + + + cxx + text/x-c + + + dae + model/vnd.collada+xml + + + daf + application/vnd.mobius.daf + + + dataless + application/vnd.fdsn.seed + + + davmount + application/davmount+xml + + + dcr + application/x-director + + + dcurl + text/vnd.curl.dcurl + + + dd2 + application/vnd.oma.dd2+xml + + + ddd + application/vnd.fujixerox.ddd + + + deb + application/x-debian-package + + + def + text/plain + + + deploy + application/octet-stream + + + der + application/x-x509-ca-cert + + + dfac + application/vnd.dreamfactory + + + dib + image/bmp + + + dic + text/x-c + + + dir + application/x-director + + + dis + application/vnd.mobius.dis + + + dist + application/octet-stream + + + distz + application/octet-stream + + + djv + image/vnd.djvu + + + djvu + image/vnd.djvu + + + dll + application/x-msdownload + + + dmg + application/octet-stream + + + dmp + application/vnd.tcpdump.pcap + + + dms + application/octet-stream + + + dna + application/vnd.dna + + + doc + application/msword + + + docm + application/vnd.ms-word.document.macroenabled.12 + + + docx + application/vnd.openxmlformats-officedocument.wordprocessingml.document + + + dot + application/msword + + + dotm + application/vnd.ms-word.template.macroenabled.12 + + + dotx + application/vnd.openxmlformats-officedocument.wordprocessingml.template + + + dp + application/vnd.osgi.dp + + + dpg + application/vnd.dpgraph + + + dra + audio/vnd.dra + + + dsc + text/prs.lines.tag + + + dssc + application/dssc+der + + + dtb + application/x-dtbook+xml + + + dtd + application/xml-dtd + + + dts + audio/vnd.dts + + + dtshd + audio/vnd.dts.hd + + + dump + application/octet-stream + + + dv + video/x-dv + + + dvb + video/vnd.dvb.file + + + dvi + application/x-dvi + + + dwf + model/vnd.dwf + + + dwg + image/vnd.dwg + + + dxf + image/vnd.dxf + + + dxp + application/vnd.spotfire.dxp + + + dxr + application/x-director + + + ecelp4800 + audio/vnd.nuera.ecelp4800 + + + ecelp7470 + audio/vnd.nuera.ecelp7470 + + + ecelp9600 + audio/vnd.nuera.ecelp9600 + + + ecma + application/ecmascript + + + edm + application/vnd.novadigm.edm + + + edx + application/vnd.novadigm.edx + + + efif + application/vnd.picsel + + + ei6 + application/vnd.pg.osasli + + + elc + application/octet-stream + + + eml + message/rfc822 + + + emma + application/emma+xml + + + eol + audio/vnd.digital-winds + + + eot + application/vnd.ms-fontobject + + + eps + application/postscript + + + epub + application/epub+zip + + + es3 + application/vnd.eszigno3+xml + + + esf + application/vnd.epson.esf + + + et3 + application/vnd.eszigno3+xml + + + etx + text/x-setext + + + exe + application/octet-stream + + + exi + application/exi + + + ext + application/vnd.novadigm.ext + + + ez + application/andrew-inset + + + ez2 + application/vnd.ezpix-album + + + ez3 + application/vnd.ezpix-package + + + f + text/x-fortran + + + f4v + video/x-f4v + + + f77 + text/x-fortran + + + f90 + text/x-fortran + + + fbs + image/vnd.fastbidsheet + + + fcs + application/vnd.isac.fcs + + + fdf + application/vnd.fdf + + + fe_launch + application/vnd.denovo.fcselayout-link + + + fg5 + application/vnd.fujitsu.oasysgp + + + fgd + application/x-director + + + fh + image/x-freehand + + + fh4 + image/x-freehand + + + fh5 + image/x-freehand + + + fh7 + image/x-freehand + + + fhc + image/x-freehand + + + fig + application/x-xfig + + + flac + audio/flac + + + fli + video/x-fli + + + flo + application/vnd.micrografx.flo + + + flv + video/x-flv + + + flw + application/vnd.kde.kivio + + + flx + text/vnd.fmi.flexstor + + + fly + text/vnd.fly + + + fm + application/vnd.framemaker + + + fnc + application/vnd.frogans.fnc + + + for + text/x-fortran + + + fpx + image/vnd.fpx + + + frame + application/vnd.framemaker + + + fsc + application/vnd.fsc.weblaunch + + + fst + image/vnd.fst + + + ftc + application/vnd.fluxtime.clip + + + fti + application/vnd.anser-web-funds-transfer-initiation + + + fvt + video/vnd.fvt + + + fxp + application/vnd.adobe.fxp + + + fxpl + application/vnd.adobe.fxp + + + fzs + application/vnd.fuzzysheet + + + g2w + application/vnd.geoplan + + + g3 + image/g3fax + + + g3w + application/vnd.geospace + + + gac + application/vnd.groove-account + + + gbr + application/rpki-ghostbusters + + + gdl + model/vnd.gdl + + + geo + application/vnd.dynageo + + + gex + application/vnd.geometry-explorer + + + ggb + application/vnd.geogebra.file + + + ggt + application/vnd.geogebra.tool + + + ghf + application/vnd.groove-help + + + gif + image/gif + + + gim + application/vnd.groove-identity-message + + + gmx + application/vnd.gmx + + + gnumeric + application/x-gnumeric + + + gph + application/vnd.flographit + + + gqf + application/vnd.grafeq + + + gqs + application/vnd.grafeq + + + gram + application/srgs + + + gre + application/vnd.geometry-explorer + + + grv + application/vnd.groove-injector + + + grxml + application/srgs+xml + + + gsf + application/x-font-ghostscript + + + gtar + application/x-gtar + + + gtm + application/vnd.groove-tool-message + + + gtw + model/vnd.gtw + + + gv + text/vnd.graphviz + + + gxt + application/vnd.geonext + + + gz + application/x-gzip + + + h + text/x-c + + + h261 + video/h261 + + + h263 + video/h263 + + + h264 + video/h264 + + + hal + application/vnd.hal+xml + + + hbci + application/vnd.hbci + + + hdf + application/x-hdf + + + hh + text/x-c + + + hlp + application/winhlp + + + hpgl + application/vnd.hp-hpgl + + + hpid + application/vnd.hp-hpid + + + hps + application/vnd.hp-hps + + + hqx + application/mac-binhex40 + + + htc + text/x-component + + + htke + application/vnd.kenameaapp + + + htm + text/html + + + html + text/html + + + hvd + application/vnd.yamaha.hv-dic + + + hvp + application/vnd.yamaha.hv-voice + + + hvs + application/vnd.yamaha.hv-script + + + i2g + application/vnd.intergeo + + + icc + application/vnd.iccprofile + + + ice + x-conference/x-cooltalk + + + icm + application/vnd.iccprofile + + + ico + image/x-icon + + + ics + text/calendar + + + ief + image/ief + + + ifb + text/calendar + + + ifm + application/vnd.shana.informed.formdata + + + iges + model/iges + + + igl + application/vnd.igloader + + + igm + application/vnd.insors.igm + + + igs + model/iges + + + igx + application/vnd.micrografx.igx + + + iif + application/vnd.shana.informed.interchange + + + imp + application/vnd.accpac.simply.imp + + + ims + application/vnd.ms-ims + + + in + text/plain + + + ink + application/inkml+xml + + + inkml + application/inkml+xml + + + iota + application/vnd.astraea-software.iota + + + ipfix + application/ipfix + + + ipk + application/vnd.shana.informed.package + + + irm + application/vnd.ibm.rights-management + + + irp + application/vnd.irepository.package+xml + + + iso + application/octet-stream + + + itp + application/vnd.shana.informed.formtemplate + + + ivp + application/vnd.immervision-ivp + + + ivu + application/vnd.immervision-ivu + + + jad + text/vnd.sun.j2me.app-descriptor + + + jam + application/vnd.jam + + + jar + application/java-archive + + + java + text/x-java-source + + + jisp + application/vnd.jisp + + + jlt + application/vnd.hp-jlyt + + + jnlp + application/x-java-jnlp-file + + + joda + application/vnd.joost.joda-archive + + + jpe + image/jpeg + + + jpeg + image/jpeg + + + jpg + image/jpeg + + + jpgm + video/jpm + + + jpgv + video/jpeg + + + jpm + video/jpm + + + js + application/javascript + + + jsf + text/plain + + + json + application/json + + + jspf + text/plain + + + kar + audio/midi + + + karbon + application/vnd.kde.karbon + + + kfo + application/vnd.kde.kformula + + + kia + application/vnd.kidspiration + + + kml + application/vnd.google-earth.kml+xml + + + kmz + application/vnd.google-earth.kmz + + + kne + application/vnd.kinar + + + knp + application/vnd.kinar + + + kon + application/vnd.kde.kontour + + + kpr + application/vnd.kde.kpresenter + + + kpt + application/vnd.kde.kpresenter + + + ksp + application/vnd.kde.kspread + + + ktr + application/vnd.kahootz + + + ktx + image/ktx + + + ktz + application/vnd.kahootz + + + kwd + application/vnd.kde.kword + + + kwt + application/vnd.kde.kword + + + lasxml + application/vnd.las.las+xml + + + latex + application/x-latex + + + lbd + application/vnd.llamagraphics.life-balance.desktop + + + lbe + application/vnd.llamagraphics.life-balance.exchange+xml + + + les + application/vnd.hhe.lesson-player + + + lha + application/octet-stream + + + link66 + application/vnd.route66.link66+xml + + + list + text/plain + + + list3820 + application/vnd.ibm.modcap + + + listafp + application/vnd.ibm.modcap + + + log + text/plain + + + lostxml + application/lost+xml + + + lrf + application/octet-stream + + + lrm + application/vnd.ms-lrm + + + ltf + application/vnd.frogans.ltf + + + lvp + audio/vnd.lucent.voice + + + lwp + application/vnd.lotus-wordpro + + + lzh + application/octet-stream + + + m13 + application/x-msmediaview + + + m14 + application/x-msmediaview + + + m1v + video/mpeg + + + m21 + application/mp21 + + + m2a + audio/mpeg + + + m2v + video/mpeg + + + m3a + audio/mpeg + + + m3u + audio/x-mpegurl + + + m3u8 + application/vnd.apple.mpegurl + + + m4a + audio/mp4 + + + m4b + audio/mp4 + + + m4r + audio/mp4 + + + m4u + video/vnd.mpegurl + + + m4v + video/mp4 + + + ma + application/mathematica + + + mac + image/x-macpaint + + + mads + application/mads+xml + + + mag + application/vnd.ecowin.chart + + + maker + application/vnd.framemaker + + + man + text/troff + + + mathml + application/mathml+xml + + + mb + application/mathematica + + + mbk + application/vnd.mobius.mbk + + + mbox + application/mbox + + + mc1 + application/vnd.medcalcdata + + + mcd + application/vnd.mcd + + + mcurl + text/vnd.curl.mcurl + + + mdb + application/x-msaccess + + + mdi + image/vnd.ms-modi + + + me + text/troff + + + mesh + model/mesh + + + meta4 + application/metalink4+xml + + + mets + application/mets+xml + + + mfm + application/vnd.mfmp + + + mft + application/rpki-manifest + + + mgp + application/vnd.osgeo.mapguide.package + + + mgz + application/vnd.proteus.magazine + + + mid + audio/midi + + + midi + audio/midi + + + mif + application/x-mif + + + mime + message/rfc822 + + + mj2 + video/mj2 + + + mjp2 + video/mj2 + + + mlp + application/vnd.dolby.mlp + + + mmd + application/vnd.chipnuts.karaoke-mmd + + + mmf + application/vnd.smaf + + + mmr + image/vnd.fujixerox.edmics-mmr + + + mny + application/x-msmoney + + + mobi + application/x-mobipocket-ebook + + + mods + application/mods+xml + + + mov + video/quicktime + + + movie + video/x-sgi-movie + + + mp1 + audio/mpeg + + + mp2 + audio/mpeg + + + mp21 + application/mp21 + + + mp2a + audio/mpeg + + + mp3 + audio/mpeg + + + mp4 + video/mp4 + + + mp4a + audio/mp4 + + + mp4s + application/mp4 + + + mp4v + video/mp4 + + + mpa + audio/mpeg + + + mpc + application/vnd.mophun.certificate + + + mpe + video/mpeg + + + mpeg + video/mpeg + + + mpega + audio/x-mpeg + + + mpg + video/mpeg + + + mpg4 + video/mp4 + + + mpga + audio/mpeg + + + mpkg + application/vnd.apple.installer+xml + + + mpm + application/vnd.blueice.multipass + + + mpn + application/vnd.mophun.application + + + mpp + application/vnd.ms-project + + + mpt + application/vnd.ms-project + + + mpv2 + video/mpeg2 + + + mpy + application/vnd.ibm.minipay + + + mqy + application/vnd.mobius.mqy + + + mrc + application/marc + + + mrcx + application/marcxml+xml + + + ms + text/troff + + + mscml + application/mediaservercontrol+xml + + + mseed + application/vnd.fdsn.mseed + + + mseq + application/vnd.mseq + + + msf + application/vnd.epson.msf + + + msh + model/mesh + + + msi + application/x-msdownload + + + msl + application/vnd.mobius.msl + + + msty + application/vnd.muvee.style + + + mts + model/vnd.mts + + + mus + application/vnd.musician + + + musicxml + application/vnd.recordare.musicxml+xml + + + mvb + application/x-msmediaview + + + mwf + application/vnd.mfer + + + mxf + application/mxf + + + mxl + application/vnd.recordare.musicxml + + + mxml + application/xv+xml + + + mxs + application/vnd.triscape.mxs + + + mxu + video/vnd.mpegurl + + + n-gage + application/vnd.nokia.n-gage.symbian.install + + + n3 + text/n3 + + + nb + application/mathematica + + + nbp + application/vnd.wolfram.player + + + nc + application/x-netcdf + + + ncx + application/x-dtbncx+xml + + + ngdat + application/vnd.nokia.n-gage.data + + + nlu + application/vnd.neurolanguage.nlu + + + nml + application/vnd.enliven + + + nnd + application/vnd.noblenet-directory + + + nns + application/vnd.noblenet-sealer + + + nnw + application/vnd.noblenet-web + + + npx + image/vnd.net-fpx + + + nsf + application/vnd.lotus-notes + + + oa2 + application/vnd.fujitsu.oasys2 + + + oa3 + application/vnd.fujitsu.oasys3 + + + oas + application/vnd.fujitsu.oasys + + + obd + application/x-msbinder + + + oda + application/oda + + + + odb + application/vnd.oasis.opendocument.database + + + + odc + application/vnd.oasis.opendocument.chart + + + + odf + application/vnd.oasis.opendocument.formula + + + odft + application/vnd.oasis.opendocument.formula-template + + + + odg + application/vnd.oasis.opendocument.graphics + + + + odi + application/vnd.oasis.opendocument.image + + + + odm + application/vnd.oasis.opendocument.text-master + + + + odp + application/vnd.oasis.opendocument.presentation + + + + ods + application/vnd.oasis.opendocument.spreadsheet + + + + odt + application/vnd.oasis.opendocument.text + + + oga + audio/ogg + + + ogg + audio/ogg + + + ogv + video/ogg + + + + ogx + application/ogg + + + onepkg + application/onenote + + + onetmp + application/onenote + + + onetoc + application/onenote + + + onetoc2 + application/onenote + + + opf + application/oebps-package+xml + + + oprc + application/vnd.palm + + + org + application/vnd.lotus-organizer + + + osf + application/vnd.yamaha.openscoreformat + + + osfpvg + application/vnd.yamaha.openscoreformat.osfpvg+xml + + + otc + application/vnd.oasis.opendocument.chart-template + + + otf + application/x-font-otf + + + + otg + application/vnd.oasis.opendocument.graphics-template + + + + oth + application/vnd.oasis.opendocument.text-web + + + oti + application/vnd.oasis.opendocument.image-template + + + + otp + application/vnd.oasis.opendocument.presentation-template + + + + ots + application/vnd.oasis.opendocument.spreadsheet-template + + + + ott + application/vnd.oasis.opendocument.text-template + + + oxps + application/oxps + + + oxt + application/vnd.openofficeorg.extension + + + p + text/x-pascal + + + p10 + application/pkcs10 + + + p12 + application/x-pkcs12 + + + p7b + application/x-pkcs7-certificates + + + p7c + application/pkcs7-mime + + + p7m + application/pkcs7-mime + + + p7r + application/x-pkcs7-certreqresp + + + p7s + application/pkcs7-signature + + + p8 + application/pkcs8 + + + pas + text/x-pascal + + + paw + application/vnd.pawaafile + + + pbd + application/vnd.powerbuilder6 + + + pbm + image/x-portable-bitmap + + + pcap + application/vnd.tcpdump.pcap + + + pcf + application/x-font-pcf + + + pcl + application/vnd.hp-pcl + + + pclxl + application/vnd.hp-pclxl + + + pct + image/pict + + + pcurl + application/vnd.curl.pcurl + + + pcx + image/x-pcx + + + pdb + application/vnd.palm + + + pdf + application/pdf + + + pfa + application/x-font-type1 + + + pfb + application/x-font-type1 + + + pfm + application/x-font-type1 + + + pfr + application/font-tdpfr + + + pfx + application/x-pkcs12 + + + pgm + image/x-portable-graymap + + + pgn + application/x-chess-pgn + + + pgp + application/pgp-encrypted + + + pic + image/pict + + + pict + image/pict + + + pkg + application/octet-stream + + + pki + application/pkixcmp + + + pkipath + application/pkix-pkipath + + + plb + application/vnd.3gpp.pic-bw-large + + + plc + application/vnd.mobius.plc + + + plf + application/vnd.pocketlearn + + + pls + audio/x-scpls + + + pml + application/vnd.ctc-posml + + + png + image/png + + + pnm + image/x-portable-anymap + + + pnt + image/x-macpaint + + + portpkg + application/vnd.macports.portpkg + + + pot + application/vnd.ms-powerpoint + + + potm + application/vnd.ms-powerpoint.template.macroenabled.12 + + + potx + application/vnd.openxmlformats-officedocument.presentationml.template + + + ppam + application/vnd.ms-powerpoint.addin.macroenabled.12 + + + ppd + application/vnd.cups-ppd + + + ppm + image/x-portable-pixmap + + + pps + application/vnd.ms-powerpoint + + + ppsm + application/vnd.ms-powerpoint.slideshow.macroenabled.12 + + + ppsx + application/vnd.openxmlformats-officedocument.presentationml.slideshow + + + ppt + application/vnd.ms-powerpoint + + + pptm + application/vnd.ms-powerpoint.presentation.macroenabled.12 + + + pptx + application/vnd.openxmlformats-officedocument.presentationml.presentation + + + pqa + application/vnd.palm + + + prc + application/x-mobipocket-ebook + + + pre + application/vnd.lotus-freelance + + + prf + application/pics-rules + + + ps + application/postscript + + + psb + application/vnd.3gpp.pic-bw-small + + + psd + image/vnd.adobe.photoshop + + + psf + application/x-font-linux-psf + + + pskcxml + application/pskc+xml + + + ptid + application/vnd.pvi.ptid1 + + + pub + application/x-mspublisher + + + pvb + application/vnd.3gpp.pic-bw-var + + + pwn + application/vnd.3m.post-it-notes + + + pya + audio/vnd.ms-playready.media.pya + + + pyv + video/vnd.ms-playready.media.pyv + + + qam + application/vnd.epson.quickanime + + + qbo + application/vnd.intu.qbo + + + qfx + application/vnd.intu.qfx + + + qps + application/vnd.publishare-delta-tree + + + qt + video/quicktime + + + qti + image/x-quicktime + + + qtif + image/x-quicktime + + + qwd + application/vnd.quark.quarkxpress + + + qwt + application/vnd.quark.quarkxpress + + + qxb + application/vnd.quark.quarkxpress + + + qxd + application/vnd.quark.quarkxpress + + + qxl + application/vnd.quark.quarkxpress + + + qxt + application/vnd.quark.quarkxpress + + + ra + audio/x-pn-realaudio + + + ram + audio/x-pn-realaudio + + + rar + application/x-rar-compressed + + + ras + image/x-cmu-raster + + + rcprofile + application/vnd.ipunplugged.rcprofile + + + rdf + application/rdf+xml + + + rdz + application/vnd.data-vision.rdz + + + rep + application/vnd.businessobjects + + + res + application/x-dtbresource+xml + + + rgb + image/x-rgb + + + rif + application/reginfo+xml + + + rip + audio/vnd.rip + + + rl + application/resource-lists+xml + + + rlc + image/vnd.fujixerox.edmics-rlc + + + rld + application/resource-lists-diff+xml + + + rm + application/vnd.rn-realmedia + + + rmi + audio/midi + + + rmp + audio/x-pn-realaudio-plugin + + + rms + application/vnd.jcp.javame.midlet-rms + + + rnc + application/relax-ng-compact-syntax + + + roa + application/rpki-roa + + + roff + text/troff + + + rp9 + application/vnd.cloanto.rp9 + + + rpss + application/vnd.nokia.radio-presets + + + rpst + application/vnd.nokia.radio-preset + + + rq + application/sparql-query + + + rs + application/rls-services+xml + + + rsd + application/rsd+xml + + + rss + application/rss+xml + + + rtf + application/rtf + + + rtx + text/richtext + + + s + text/x-asm + + + saf + application/vnd.yamaha.smaf-audio + + + sbml + application/sbml+xml + + + sc + application/vnd.ibm.secure-container + + + scd + application/x-msschedule + + + scm + application/vnd.lotus-screencam + + + scq + application/scvp-cv-request + + + scs + application/scvp-cv-response + + + scurl + text/vnd.curl.scurl + + + sda + application/vnd.stardivision.draw + + + sdc + application/vnd.stardivision.calc + + + sdd + application/vnd.stardivision.impress + + + sdkd + application/vnd.solent.sdkm+xml + + + sdkm + application/vnd.solent.sdkm+xml + + + sdp + application/sdp + + + sdw + application/vnd.stardivision.writer + + + see + application/vnd.seemail + + + seed + application/vnd.fdsn.seed + + + sema + application/vnd.sema + + + semd + application/vnd.semd + + + semf + application/vnd.semf + + + ser + application/java-serialized-object + + + setpay + application/set-payment-initiation + + + setreg + application/set-registration-initiation + + + sfd-hdstx + application/vnd.hydrostatix.sof-data + + + sfs + application/vnd.spotfire.sfs + + + sgl + application/vnd.stardivision.writer-global + + + sgm + text/sgml + + + sgml + text/sgml + + + sh + application/x-sh + + + shar + application/x-shar + + + shf + application/shf+xml + + + + sig + application/pgp-signature + + + silo + model/mesh + + + sis + application/vnd.symbian.install + + + sisx + application/vnd.symbian.install + + + sit + application/x-stuffit + + + sitx + application/x-stuffitx + + + skd + application/vnd.koan + + + skm + application/vnd.koan + + + skp + application/vnd.koan + + + skt + application/vnd.koan + + + sldm + application/vnd.ms-powerpoint.slide.macroenabled.12 + + + sldx + application/vnd.openxmlformats-officedocument.presentationml.slide + + + slt + application/vnd.epson.salt + + + sm + application/vnd.stepmania.stepchart + + + smf + application/vnd.stardivision.math + + + smi + application/smil+xml + + + smil + application/smil+xml + + + smzip + application/vnd.stepmania.package + + + snd + audio/basic + + + snf + application/x-font-snf + + + so + application/octet-stream + + + spc + application/x-pkcs7-certificates + + + spf + application/vnd.yamaha.smaf-phrase + + + spl + application/x-futuresplash + + + spot + text/vnd.in3d.spot + + + spp + application/scvp-vp-response + + + spq + application/scvp-vp-request + + + spx + audio/ogg + + + src + application/x-wais-source + + + sru + application/sru+xml + + + srx + application/sparql-results+xml + + + sse + application/vnd.kodak-descriptor + + + ssf + application/vnd.epson.ssf + + + ssml + application/ssml+xml + + + st + application/vnd.sailingtracker.track + + + stc + application/vnd.sun.xml.calc.template + + + std + application/vnd.sun.xml.draw.template + + + stf + application/vnd.wt.stf + + + sti + application/vnd.sun.xml.impress.template + + + stk + application/hyperstudio + + + stl + application/vnd.ms-pki.stl + + + str + application/vnd.pg.format + + + stw + application/vnd.sun.xml.writer.template + + + sub + text/vnd.dvb.subtitle + + + sus + application/vnd.sus-calendar + + + susp + application/vnd.sus-calendar + + + sv4cpio + application/x-sv4cpio + + + sv4crc + application/x-sv4crc + + + svc + application/vnd.dvb.service + + + svd + application/vnd.svd + + + svg + image/svg+xml + + + svgz + image/svg+xml + + + swa + application/x-director + + + swf + application/x-shockwave-flash + + + swi + application/vnd.aristanetworks.swi + + + sxc + application/vnd.sun.xml.calc + + + sxd + application/vnd.sun.xml.draw + + + sxg + application/vnd.sun.xml.writer.global + + + sxi + application/vnd.sun.xml.impress + + + sxm + application/vnd.sun.xml.math + + + sxw + application/vnd.sun.xml.writer + + + t + text/troff + + + taglet + application/vnd.mynfc + + + tao + application/vnd.tao.intent-module-archive + + + tar + application/x-tar + + + tcap + application/vnd.3gpp2.tcap + + + tcl + application/x-tcl + + + teacher + application/vnd.smart.teacher + + + tei + application/tei+xml + + + teicorpus + application/tei+xml + + + tex + application/x-tex + + + texi + application/x-texinfo + + + texinfo + application/x-texinfo + + + text + text/plain + + + tfi + application/thraud+xml + + + tfm + application/x-tex-tfm + + + thmx + application/vnd.ms-officetheme + + + tif + image/tiff + + + tiff + image/tiff + + + tmo + application/vnd.tmobile-livetv + + + torrent + application/x-bittorrent + + + tpl + application/vnd.groove-tool-template + + + tpt + application/vnd.trid.tpt + + + tr + text/troff + + + tra + application/vnd.trueapp + + + trm + application/x-msterminal + + + tsd + application/timestamped-data + + + tsv + text/tab-separated-values + + + ttc + application/x-font-ttf + + + ttf + application/x-font-ttf + + + ttl + text/turtle + + + twd + application/vnd.simtech-mindmapper + + + twds + application/vnd.simtech-mindmapper + + + txd + application/vnd.genomatix.tuxedo + + + txf + application/vnd.mobius.txf + + + txt + text/plain + + + u32 + application/x-authorware-bin + + + udeb + application/x-debian-package + + + ufd + application/vnd.ufdl + + + ufdl + application/vnd.ufdl + + + ulw + audio/basic + + + umj + application/vnd.umajin + + + unityweb + application/vnd.unity + + + uoml + application/vnd.uoml+xml + + + uri + text/uri-list + + + uris + text/uri-list + + + urls + text/uri-list + + + ustar + application/x-ustar + + + utz + application/vnd.uiq.theme + + + uu + text/x-uuencode + + + uva + audio/vnd.dece.audio + + + uvd + application/vnd.dece.data + + + uvf + application/vnd.dece.data + + + uvg + image/vnd.dece.graphic + + + uvh + video/vnd.dece.hd + + + uvi + image/vnd.dece.graphic + + + uvm + video/vnd.dece.mobile + + + uvp + video/vnd.dece.pd + + + uvs + video/vnd.dece.sd + + + uvt + application/vnd.dece.ttml+xml + + + uvu + video/vnd.uvvu.mp4 + + + uvv + video/vnd.dece.video + + + uvva + audio/vnd.dece.audio + + + uvvd + application/vnd.dece.data + + + uvvf + application/vnd.dece.data + + + uvvg + image/vnd.dece.graphic + + + uvvh + video/vnd.dece.hd + + + uvvi + image/vnd.dece.graphic + + + uvvm + video/vnd.dece.mobile + + + uvvp + video/vnd.dece.pd + + + uvvs + video/vnd.dece.sd + + + uvvt + application/vnd.dece.ttml+xml + + + uvvu + video/vnd.uvvu.mp4 + + + uvvv + video/vnd.dece.video + + + uvvx + application/vnd.dece.unspecified + + + uvvz + application/vnd.dece.zip + + + uvx + application/vnd.dece.unspecified + + + uvz + application/vnd.dece.zip + + + vcard + text/vcard + + + vcd + application/x-cdlink + + + vcf + text/x-vcard + + + vcg + application/vnd.groove-vcard + + + vcs + text/x-vcalendar + + + vcx + application/vnd.vcx + + + vis + application/vnd.visionary + + + viv + video/vnd.vivo + + + vor + application/vnd.stardivision.writer + + + vox + application/x-authorware-bin + + + vrml + model/vrml + + + vsd + application/vnd.visio + + + vsf + application/vnd.vsf + + + vss + application/vnd.visio + + + vst + application/vnd.visio + + + vsw + application/vnd.visio + + + vtu + model/vnd.vtu + + + vxml + application/voicexml+xml + + + w3d + application/x-director + + + wad + application/x-doom + + + wav + audio/x-wav + + + wax + audio/x-ms-wax + + + + wbmp + image/vnd.wap.wbmp + + + wbs + application/vnd.criticaltools.wbs+xml + + + wbxml + application/vnd.wap.wbxml + + + wcm + application/vnd.ms-works + + + wdb + application/vnd.ms-works + + + weba + audio/webm + + + webm + video/webm + + + webp + image/webp + + + wg + application/vnd.pmi.widget + + + wgt + application/widget + + + wks + application/vnd.ms-works + + + wm + video/x-ms-wm + + + wma + audio/x-ms-wma + + + wmd + application/x-ms-wmd + + + wmf + application/x-msmetafile + + + + wml + text/vnd.wap.wml + + + + wmlc + application/vnd.wap.wmlc + + + + wmls + text/vnd.wap.wmlscript + + + + wmlsc + application/vnd.wap.wmlscriptc + + + wmv + video/x-ms-wmv + + + wmx + video/x-ms-wmx + + + wmz + application/x-ms-wmz + + + woff + application/x-font-woff + + + wpd + application/vnd.wordperfect + + + wpl + application/vnd.ms-wpl + + + wps + application/vnd.ms-works + + + wqd + application/vnd.wqd + + + wri + application/x-mswrite + + + wrl + model/vrml + + + wsdl + application/wsdl+xml + + + wspolicy + application/wspolicy+xml + + + wtb + application/vnd.webturbo + + + wvx + video/x-ms-wvx + + + x32 + application/x-authorware-bin + + + x3d + application/vnd.hzn-3d-crossword + + + xap + application/x-silverlight-app + + + xar + application/vnd.xara + + + xbap + application/x-ms-xbap + + + xbd + application/vnd.fujixerox.docuworks.binder + + + xbm + image/x-xbitmap + + + xdf + application/xcap-diff+xml + + + xdm + application/vnd.syncml.dm+xml + + + xdp + application/vnd.adobe.xdp+xml + + + xdssc + application/dssc+xml + + + xdw + application/vnd.fujixerox.docuworks + + + xenc + application/xenc+xml + + + xer + application/patch-ops-error+xml + + + xfdf + application/vnd.adobe.xfdf + + + xfdl + application/vnd.xfdl + + + xht + application/xhtml+xml + + + xhtml + application/xhtml+xml + + + xhvml + application/xv+xml + + + xif + image/vnd.xiff + + + xla + application/vnd.ms-excel + + + xlam + application/vnd.ms-excel.addin.macroenabled.12 + + + xlc + application/vnd.ms-excel + + + xlm + application/vnd.ms-excel + + + xls + application/vnd.ms-excel + + + xlsb + application/vnd.ms-excel.sheet.binary.macroenabled.12 + + + xlsm + application/vnd.ms-excel.sheet.macroenabled.12 + + + xlsx + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + + + xlt + application/vnd.ms-excel + + + xltm + application/vnd.ms-excel.template.macroenabled.12 + + + xltx + application/vnd.openxmlformats-officedocument.spreadsheetml.template + + + xlw + application/vnd.ms-excel + + + xml + application/xml + + + xo + application/vnd.olpc-sugar + + + xop + application/xop+xml + + + xpi + application/x-xpinstall + + + xpm + image/x-xpixmap + + + xpr + application/vnd.is-xpr + + + xps + application/vnd.ms-xpsdocument + + + xpw + application/vnd.intercon.formnet + + + xpx + application/vnd.intercon.formnet + + + xsl + application/xml + + + xslt + application/xslt+xml + + + xsm + application/vnd.syncml+xml + + + xspf + application/xspf+xml + + + xul + application/vnd.mozilla.xul+xml + + + xvm + application/xv+xml + + + xvml + application/xv+xml + + + xwd + image/x-xwindowdump + + + xyz + chemical/x-xyz + + + yang + application/yang + + + yin + application/yin+xml + + + z + application/x-compress + + + Z + application/x-compress + + + zaz + application/vnd.zzazz.deck+xml + + + zip + application/zip + + + zir + application/vnd.zul + + + zirz + application/vnd.zul + + + zmm + application/vnd.handheld-entertainment+xml + + + + + + + + + + + + + + + + + + index.html + index.htm + index.jsp + + + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/logs/access_log.2022-12-04" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/logs/access_log.2022-12-04" new file mode 100644 index 0000000..7cdbd27 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/logs/access_log.2022-12-04" @@ -0,0 +1,40 @@ +0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:27:21 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-2 0 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:27:21 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-3 9 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:27:44 +0800] "GET /filterWork/filter.jsp HTTP/1.1" 404 993 http-bio-8080-exec-4 1 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:27:49 +0800] "GET /filterWork/filter.http HTTP/1.1" 404 995 http-bio-8080-exec-5 1 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:27:58 +0800] "GET /filterWork/filter.html HTTP/1.1" 404 995 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:30:52 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-2 0 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:30:52 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-3 8 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:31:05 +0800] "GET /filterWork/filter.html HTTP/1.1" 404 995 http-bio-8080-exec-4 1 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:31:12 +0800] "GET /filterWork/filter.jsp HTTP/1.1" 404 993 http-bio-8080-exec-5 1 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:43:12 +0800] "GET /filterWork/filter.jsp HTTP/1.1" 404 993 http-bio-8080-exec-1 26 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:43:21 +0800] "GET /filterWork/filter.html HTTP/1.1" 500 1761 http-bio-8080-exec-3 5 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:52:41 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 200 177 http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:01:42 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 200 209 http-bio-8080-exec-7 4 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:34:10 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:34:10 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-3 9 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:34:15 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 200 202 http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:35:11 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 304 - http-bio-8080-exec-1 23 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:35:15 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 304 - http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:35:16 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 304 - http-bio-8080-exec-4 1 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:35:59 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 304 - http-bio-8080-exec-5 1 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:36:04 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 304 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:36:10 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 304 - http-bio-8080-exec-7 2 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:21:34:32 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-2 0 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:21:34:32 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-3 12 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:21:34:37 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 304 - http-bio-8080-exec-4 4 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:21:37:01 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:21:37:01 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-3 9 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:21:38:23 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 200 233 http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:21:38:24 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 304 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:27:58 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 134 http-bio-8080-exec-9 619 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:28:24 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 188 http-bio-8080-exec-1 439 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:28:44 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 188 http-bio-8080-exec-3 3 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:29:45 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 188 http-bio-8080-exec-1 57 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:29:46 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 188 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:30:14 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 188 http-bio-8080-exec-1 62 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:33:10 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 188 http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:33:53 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 - http-bio-8080-exec-1 26 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:34:43 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 - http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:34:59 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:35:18 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 - http-bio-8080-exec-1 29 diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/logs/access_log.2022-12-05" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/logs/access_log.2022-12-05" new file mode 100644 index 0000000..ac0846f --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/logs/access_log.2022-12-05" @@ -0,0 +1,76 @@ +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:52:31 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:52:31 +0800] "GET /filterWork/ HTTP/1.1" 500 1210 http-bio-8080-exec-3 6 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:52:32 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-2 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:52:48 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 500 1210 http-bio-8080-exec-4 1 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:54:24 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 500 1210 http-bio-8080-exec-1 23 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:54:39 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 500 1210 http-bio-8080-exec-2 2 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:56:23 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-1 380 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:56:28 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-3 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:56:47 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:57:54 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:57:58 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-3 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:58:00 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-4 23 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:58:06 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-5 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:59:19 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:59:19 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-3 8 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:59:28 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-4 19 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:59:35 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-5 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:03:53 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-1 41 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:03:57 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-3 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:04:09 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:04:09 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:04:14 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:04:18 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-7 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:05:09 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-1 42 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:05:09 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:06:08 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-1 38 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:06:11 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-3 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:06:23 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:06:39 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-5 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:06:39 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-6 3 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:06:44 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-7 2 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:06:56 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-8 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:07:48 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 281 http-bio-8080-exec-1 308 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:07:50 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 281 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:07:56 +0800] "POST /webtest HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:09:34 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 500 1210 http-bio-8080-exec-1 23 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:10:30 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 500 1210 http-bio-8080-exec-2 2 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:10:39 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 500 1210 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:10:49 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 281 http-bio-8080-exec-1 40 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:10:54 +0800] "POST /webtest HTTP/1.1" 404 - http-bio-8080-exec-3 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:18:19 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 281 http-bio-8080-exec-1 38 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:18:22 +0800] "POST /webtest HTTP/1.1" 404 - http-bio-8080-exec-3 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:29:17 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:29:17 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-3 10 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:29:29 +0800] "GET /filterWork/test HTTP/1.1" 500 1210 http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:29:51 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-2 358 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:29:55 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:32:24 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-8 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:32:29 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:34:22 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:35:03 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 0 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:35:34 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 38 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:35:39 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:37:33 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:37:54 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 41 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:38:02 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 2 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:39:16 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 38 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:39:20 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 2 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:40:50 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-1 25 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:43:05 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 46 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:43:09 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:44:59 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 39 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:45:03 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 2 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:45:50 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 40 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:45:53 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 2 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:47:27 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 41 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:47:30 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 3 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:47:45 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-4 1 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:49:24 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 39 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:49:28 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 2 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:50:30 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-5 1 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:51:39 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 43 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:51:50 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 2 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:52:20 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 47 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:52:20 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-2 2 +0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:52:25 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-5 1 diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/work/Tomcat/localhost/filterWork/org/apache/jsp/filterweb_jsp.class" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/work/Tomcat/localhost/filterWork/org/apache/jsp/filterweb_jsp.class" new file mode 100644 index 0000000000000000000000000000000000000000..6f3e7116753d3ebd455688ebc12ad148a759c383 GIT binary patch literal 3991 zcma)9+jA4w9sbsqwX(d1;6Ooyi%=oO!e$8s1Cs3oV>{TffmjYCG_A9i*YX;9rR=W2 zq-oPOZIjZZX`41}()-nY=}br`PH1O(dC5cGJALd-W;)X;|3M#`e&_6Zy^`!q8PM5t z&hK`<-<1#k`-eXPIF1z+EeiHjoRV%-jpBl-FS=EI-YR>hbHkjS;Z8+N!J#OH;Z{vY zcWSn0Et&dx&#R8R)gi+*Rm2taY)(qDLZ#*u&0(`@+H|7Xb*+j$zh>VaNxZC^Wql;PUAJz#ux`e( zUC*$K=8|C>CDT#x$%zOkUS+9hc=}jCH0cvjXQIDYwrtBARM2|3`?7-AxyqcG#18CK z@d>)=NLN~Sk#&KtF|7h;+|+#OiG399W-aGwSh2?3^Mn-^+Jv!*j`%$5mY z*F>dglrI~OCHBE#ykAKkWFnFlC;78UuI@KyE*xv+B9YMYWM{!JrPK4^= zuOrj&0FL|Uub+G7G6TFB{d$VLaPWf~PNGl2E*i*iKU=MqEd~iAk9PWU#tt_)u|dox zK5iDpC!I!4#TkNC|0Ln94Yg~?qhG;xTGtfy^mqv2hFKxJGN_>wTatJfLn_WHI2Or= z#rk^EkQYG|YdD8t#v(0fAW$&0IWlx{zB?L_n<&f<)T>?&URHyD7aU6MYk&Y z*v0Th#RURg@2)^)NRz-N1v^Ew=nLLbIbU2b9M|*)9-kiVJ>7vROsgm;xW8V?W~OO) z95ikVCCC`Gz3H1(La@V!K#x|??#m*GpV06mu9AgLy2Qd4hVHFK)B?*JQTlic!`lG5 zNZAew`PH$j8)ZSn7AD(MBAq{@U~fGPBK9MMf-Wn5p4MPsmQLcM3Vt(CkO?E+4f<3B zMcFW?&-=#t?^E$5cGYGN7Oq)U;l(f~1d=ak z_zJ%2H=d!|{JiNDtY;a?Y_enG{zVNhi3ZkDESrYoQwZ1J((nzu%zRuh?76a8Czqu< zng`PhPUVJZk4)$!Ch<+t6JHid@huJC#&=k`9Fx*rDJ4vdOk-j+L?NZA`0iRokQo{SDe0jV7`c5$$_7pc{9q zL9ElA{wODDyZmpVXQsH;@)Qc$5lQp#?P7{3ct-IW$2~casQ4v^)cSa6evd58Ol5xv zWfCw5y8LhrhTWq=1RLGjm^xc4jVybnEoMNrc)pDP+7QETF)eX~PKs%RXC3@*fyRIA zbMl+Lgln8s+t5Xdd%4rOia+Xm*#3L$zRk}T?BVYg3I<79Ng8L=?3FhlIY+AqvtVz_ zzKi|qtZ^xGt7OsScN-2MLqcW<4pM<{+aYPeQJxARvA1#mTT+Qo@5{I^A|n>cI2;;q zS-u`Pn0*_&v#aR7gI)!zIB^H36ug6htT=oR550qtb^H9M?dN!!racEDIu3?99tm|E zk#^JebpgI{2P2G1$ao%OeBiizLJJ;c<`L$W0zq%**Z z&-%-A{_+JbD|jNOrqsXUi*KSY)h0B&kL@WM@#Qz5iS=tMh+Rp=-$!REo>Euw^%Zpf z5tC1*)OYd9pJ{k1zKT~@uq&5X+oTfV`EB~99k=ibUc+zkJG@0O+VKJYMi^RUh`o+O z{O;vWr@xQ!_CZGGN$f-)p*=}RPcd3fqZ?;9^5$@YGv68XV*rB~#zU0%Fh_{9Z1F>Q zn$uW`r#41V!ziA^BX|MlsecTw(jDI?^$#&YOD1s}7w{Kcq%Bjl<}v)8>pxJyhg|=S zY3bG}nM-#Ax6*O=9$uGmdY7_(Ko=i?g*Wgft#8G@DEmju!8rbjAM>k?Z}|{E;ccAS z^Y|%##_aq#UptP(M}$OGp{V$UN{uQO<=>~o$!i}mPZAqk@=Dx4iY@;^`#5(R|DTLs zQDO^zjo)ycE=-=ilx(gY$??LaWVVo&%V_dQ`dB(7I?6)1&LVf&iR7uC2af0ZjwiDt G$^QYovODtt literal 0 HcmV?d00001 diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/work/Tomcat/localhost/filterWork/org/apache/jsp/filterweb_jsp.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/work/Tomcat/localhost/filterWork/org/apache/jsp/filterweb_jsp.java" new file mode 100644 index 0000000..ac83c6d --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/work/Tomcat/localhost/filterWork/org/apache/jsp/filterweb_jsp.java" @@ -0,0 +1,85 @@ +/* + * Generated by the Jasper component of Apache Tomcat + * Version: Apache Tomcat/7.0.47 + * Generated at: 2022-12-04 14:28:24 UTC + * Note: The last modified time of this file was set to + * the last modified time of the source file after + * generation to assist with modification tracking. + */ +package org.apache.jsp; + +import javax.servlet.*; +import javax.servlet.http.*; +import javax.servlet.jsp.*; + +public final class filterweb_jsp extends org.apache.jasper.runtime.HttpJspBase + implements org.apache.jasper.runtime.JspSourceDependent { + + private static final javax.servlet.jsp.JspFactory _jspxFactory = + javax.servlet.jsp.JspFactory.getDefaultFactory(); + + private static java.util.Map _jspx_dependants; + + private javax.el.ExpressionFactory _el_expressionfactory; + private org.apache.tomcat.InstanceManager _jsp_instancemanager; + + public java.util.Map getDependants() { + return _jspx_dependants; + } + + public void _jspInit() { + _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); + _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig()); + } + + public void _jspDestroy() { + } + + public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) + throws java.io.IOException, javax.servlet.ServletException { + + final javax.servlet.jsp.PageContext pageContext; + javax.servlet.http.HttpSession session = null; + final javax.servlet.ServletContext application; + final javax.servlet.ServletConfig config; + javax.servlet.jsp.JspWriter out = null; + final java.lang.Object page = this; + javax.servlet.jsp.JspWriter _jspx_out = null; + javax.servlet.jsp.PageContext _jspx_page_context = null; + + + try { + response.setContentType("text/html;charset=UTF-8"); + pageContext = _jspxFactory.getPageContext(this, request, response, + null, true, 8192, true); + _jspx_page_context = pageContext; + application = pageContext.getServletContext(); + config = pageContext.getServletConfig(); + session = pageContext.getSession(); + out = pageContext.getOut(); + _jspx_out = out; + + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write(" Filter Test\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + out.write("\r\n"); + } catch (java.lang.Throwable t) { + if (!(t instanceof javax.servlet.jsp.SkipPageException)){ + out = _jspx_out; + if (out != null && out.getBufferSize() != 0) + try { out.clearBuffer(); } catch (java.io.IOException e) {} + if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); + else throw new ServletException(t); + } + } finally { + _jspxFactory.releasePageContext(_jspx_page_context); + } + } +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/\347\254\254\345\205\253\347\253\240" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/\347\254\254\345\205\253\347\253\240" new file mode 100644 index 0000000..e69de29 -- Gitee From 27f9122b7a9d562601c43856eb156432b661bef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Wed, 7 Dec 2022 12:31:55 +0000 Subject: [PATCH 158/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗鑫lxxx666 <10602820+jason666NB@user.noreply.gitee.com> --- .../.idea/artifacts/brand_demo_war.xml" | 14 ++ .../artifacts/brand_demo_war_exploded.xml" | 30 ++++ .../brand-demo/.idea/compiler.xml" | 17 +++ .../brand-demo/.idea/jarRepositories.xml" | 20 +++ ..._google_protobuf_protobuf_java_3_19_4.xml" | 13 ++ ...javax_servlet_javax_servlet_api_3_1_0.xml" | 13 ++ .../Maven__javax_servlet_jsp_jsp_api_2_2.xml" | 13 ++ .../.idea/libraries/Maven__jstl_jstl_1_2.xml" | 13 ++ ...en__mysql_mysql_connector_java_8_0_30.xml" | 13 ++ .../Maven__org_mybatis_mybatis_3_5_5.xml" | 13 ++ .../Maven__taglibs_standard_1_1_2.xml" | 13 ++ .../brand-demo/.idea/misc.xml" | 14 ++ .../brand-demo/.idea/modules.xml" | 8 + .../brand-demo/.idea/uiDesigner.xml" | 124 +++++++++++++++ .../brand-demo/.idea/workspace.xml" | 143 ++++++++++++++++++ .../brand-demo/brand-demo.iml" | 38 +++++ .../brand-demo/pom.xml" | 77 ++++++++++ .../src/main/resources/mybatis-config.xml" | 26 ++++ .../brand-demo/src/main/webapp/addBrand.jsp" | 23 +++ .../target/classes/mybatis-config.xml" | 26 ++++ 20 files changed, 651 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/artifacts/brand_demo_war.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/artifacts/brand_demo_war_exploded.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/compiler.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/jarRepositories.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_19_4.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__javax_servlet_jsp_jsp_api_2_2.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__jstl_jstl_1_2.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_30.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__org_mybatis_mybatis_3_5_5.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__taglibs_standard_1_1_2.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/misc.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/modules.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/uiDesigner.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/workspace.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/brand-demo.iml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/pom.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/src/main/resources/mybatis-config.xml" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/src/main/webapp/addBrand.jsp" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/target/classes/mybatis-config.xml" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/artifacts/brand_demo_war.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/artifacts/brand_demo_war.xml" new file mode 100644 index 0000000..86d7720 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/artifacts/brand_demo_war.xml" @@ -0,0 +1,14 @@ + + + $PROJECT_DIR$/target + + + brand-demo + war + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/artifacts/brand_demo_war_exploded.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/artifacts/brand_demo_war_exploded.xml" new file mode 100644 index 0000000..ef946c5 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/artifacts/brand_demo_war_exploded.xml" @@ -0,0 +1,30 @@ + + + $PROJECT_DIR$/target/brand-demo-1.0-SNAPSHOT + + + true + brand-demo + war + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/compiler.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/compiler.xml" new file mode 100644 index 0000000..40e3148 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/compiler.xml" @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/jarRepositories.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/jarRepositories.xml" new file mode 100644 index 0000000..a468a99 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/jarRepositories.xml" @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_19_4.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_19_4.xml" new file mode 100644 index 0000000..25c2133 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_19_4.xml" @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml" new file mode 100644 index 0000000..9796815 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml" @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__javax_servlet_jsp_jsp_api_2_2.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__javax_servlet_jsp_jsp_api_2_2.xml" new file mode 100644 index 0000000..b6ec6cb --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__javax_servlet_jsp_jsp_api_2_2.xml" @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__jstl_jstl_1_2.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__jstl_jstl_1_2.xml" new file mode 100644 index 0000000..95eb220 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__jstl_jstl_1_2.xml" @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_30.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_30.xml" new file mode 100644 index 0000000..b90366d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_30.xml" @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__org_mybatis_mybatis_3_5_5.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__org_mybatis_mybatis_3_5_5.xml" new file mode 100644 index 0000000..e8422ab --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__org_mybatis_mybatis_3_5_5.xml" @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__taglibs_standard_1_1_2.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__taglibs_standard_1_1_2.xml" new file mode 100644 index 0000000..a4e2b16 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__taglibs_standard_1_1_2.xml" @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/misc.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/misc.xml" new file mode 100644 index 0000000..e08d341 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/misc.xml" @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/modules.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/modules.xml" new file mode 100644 index 0000000..848fbc6 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/modules.xml" @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/uiDesigner.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/uiDesigner.xml" new file mode 100644 index 0000000..b93ac08 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/uiDesigner.xml" @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/workspace.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/workspace.xml" new file mode 100644 index 0000000..c8d2bd2 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/workspace.xml" @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1666491312223 + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/brand-demo.iml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/brand-demo.iml" new file mode 100644 index 0000000..28b0334 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/brand-demo.iml" @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/pom.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/pom.xml" new file mode 100644 index 0000000..beeba12 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/pom.xml" @@ -0,0 +1,77 @@ + + + 4.0.0 + + org.example + brand-demo + 1.0-SNAPSHOT + + war + + + 8 + 8 + + + + + + + org.mybatis + mybatis + 3.5.5 + + + + + mysql + mysql-connector-java + 8.0.30 + + + + + javax.servlet + javax.servlet-api + 3.1.0 + provided + + + + + + javax.servlet.jsp + jsp-api + 2.2 + provided + + + + + jstl + jstl + 1.2 + + + taglibs + standard + 1.1.2 + + + + + + + + + org.apache.tomcat.maven + tomcat7-maven-plugin + 2.2 + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/src/main/resources/mybatis-config.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/src/main/resources/mybatis-config.xml" new file mode 100644 index 0000000..0430486 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/src/main/resources/mybatis-config.xml" @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/src/main/webapp/addBrand.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/src/main/webapp/addBrand.jsp" new file mode 100644 index 0000000..99f19c7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/src/main/webapp/addBrand.jsp" @@ -0,0 +1,23 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + + + + 添加品牌 + + +

添加品牌

+
+ 品牌名称:
+ 企业名称:
+ 排序:
+ 描述信息:
+ 状态: + 禁用 + 启用
+ + +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/target/classes/mybatis-config.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/target/classes/mybatis-config.xml" new file mode 100644 index 0000000..0430486 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/target/classes/mybatis-config.xml" @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- Gitee From f006c1eaf62b03a1523f0e5ea1f5c89cc53afdd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Wed, 7 Dec 2022 12:32:25 +0000 Subject: [PATCH 159/688] =?UTF-8?q?=E7=AC=AC4=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗鑫lxxx666 <10602820+jason666NB@user.noreply.gitee.com> --- .../webWork/.idea/compiler.xml" | 8 + .../webWork/.idea/jarRepositories.xml" | 20 + .../webWork/.idea/misc.xml" | 19 + .../webWork/.idea/webContexts.xml" | 10 + .../webWork/.idea/workspace.xml" | 101 + .../\347\275\227\351\221\253/webWork/pom.xml" | 80 + .../webWork/src/main/webapp/WEB-INF/web.xml" | 6 + .../webWork/src/main/webapp/step1.html" | 35 + .../webWork/src/main/webapp/step2.html" | 44 + .../webWork/src/main/webapp/step3.jsp" | 73 + .../classes/com/web/addressServlet.class" | Bin 0 -> 1580 bytes .../classes/com/web/shopcarServlet.class" | Bin 0 -> 1623 bytes .../target/tomcat/conf/logging.properties" | 64 + .../target/tomcat/conf/tomcat-users.xml" | 26 + .../webWork/target/tomcat/conf/web.xml" | 4283 +++++++++++++++++ .../target/tomcat/logs/access_log.2022-10-29" | 20 + .../target/tomcat/logs/access_log.2022-10-31" | 50 + .../target/tomcat/logs/access_log.2022-11-01" | 6 + .../target/tomcat/logs/access_log.2022-11-03" | 63 + .../target/tomcat/logs/access_log.2022-11-06" | 87 + 20 files changed, 4995 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/compiler.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/jarRepositories.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/misc.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/webContexts.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/workspace.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/pom.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/WEB-INF/web.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step1.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step2.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step3.jsp" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/classes/com/web/addressServlet.class" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/classes/com/web/shopcarServlet.class" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/logging.properties" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/tomcat-users.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/web.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-10-29" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-10-31" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-01" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-03" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-06" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/compiler.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/compiler.xml" new file mode 100644 index 0000000..6e5a203 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/compiler.xml" @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/jarRepositories.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/jarRepositories.xml" new file mode 100644 index 0000000..a468a99 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/jarRepositories.xml" @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/misc.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/misc.xml" new file mode 100644 index 0000000..149f5ab --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/misc.xml" @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/webContexts.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/webContexts.xml" new file mode 100644 index 0000000..0c7b27c --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/webContexts.xml" @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/workspace.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/workspace.xml" new file mode 100644 index 0000000..1483d55 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/workspace.xml" @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1667038653869 + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/pom.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/pom.xml" new file mode 100644 index 0000000..6c3d706 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/pom.xml" @@ -0,0 +1,80 @@ + + + 4.0.0 + + org.example + webWork + 1.0-SNAPSHOT + + pom + + + 8 + 8 + + + + + + + org.mybatis + mybatis + 3.5.5 + + + + + mysql + mysql-connector-java + 8.0.30 + + + + + javax.servlet + javax.servlet-api + 3.1.0 + provided + + + + + + javax.servlet.jsp + jsp-api + 2.2 + provided + + + + + jstl + jstl + 1.2 + + + taglibs + standard + 1.1.2 + + + + + + + + + org.apache.tomcat.maven + tomcat7-maven-plugin + 2.2 + + true + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/WEB-INF/web.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/WEB-INF/web.xml" new file mode 100644 index 0000000..d80081d --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/WEB-INF/web.xml" @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step1.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step1.html" new file mode 100644 index 0000000..f8f1376 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step1.html" @@ -0,0 +1,35 @@ + + + + + 购物车 + + +
+ +

Step1:选择要购买的书籍

+ + + + + + + + + + + + + + + + + + + + + +
书名购买
Java

Oraclecheck

Strutscheck

+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step2.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step2.html" new file mode 100644 index 0000000..2ab8b4e --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step2.html" @@ -0,0 +1,44 @@ + + + + + 订单信息 + + +

请输入寄送地址与信用卡信息

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
信用卡信息
种类Master
Visa
卡号
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step3.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step3.jsp" new file mode 100644 index 0000000..bf53de8 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step3.jsp" @@ -0,0 +1,73 @@ +<%-- + Created by IntelliJ IDEA. + User: ɶ + Date: 2022/10/31 + Time: 17:07 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" pageEncoding="gb2312"%> +<%@ page contentType="text/html;charset=gb2312"%> +<%@ page import="java.net.URLEncoder" %> +<%@ page import="java.net.URLDecoder" %> + + + + ȷ + + +
+ + + <% + request.setCharacterEncoding("utf-8"); + %> + + + <% +// response.setContentType("test/http;charset=UTF-8"); + HttpSession session1 = request.getSession(); + String name = String.valueOf(session1.getAttribute("name")); + String javacheck = (String) session1.getAttribute("javacheck"); + String Oraclecheck = (String) session1.getAttribute("Oraclecheck"); + String Strutscheck = (String) session1.getAttribute("Strutscheck"); + String address = String.valueOf(session1.getAttribute("address")); + String cardcheck = String.valueOf(session1.getAttribute("cardcheck")); + String cardnumber = String.valueOf(session1.getAttribute("cardnumber")); + + %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
˿<%out.write(name);%>
ַ<%URLDecoder.decode(address,"UTF-8");%> + <%out.print(address);%>
Ϣ
ÿ<%out.write(cardcheck);%>
<%out.write(cardnumber);%>
Ŀ
<%out.write(javacheck);%>
<%out.print(Oraclecheck);%>
<%out.print(Strutscheck);%>
+
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/classes/com/web/addressServlet.class" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/classes/com/web/addressServlet.class" new file mode 100644 index 0000000000000000000000000000000000000000..20a9e9433fb8d15794edbbfdf3fc78b48a3ec7b7 GIT binary patch literal 1580 zcmah}*-{fh6g{17LNb5`L85G;tN}&^7Zw);7phW11q-Y6X)@`8fiM$hI>>MNqJ^1TssuW2>hE$?=ITfz*mylLDP(+mUaZ`&H?^Gplvp6w0n;*0)U0 z4$kpqO6}ObKyTS{_l-}oYM8Z}Cw+fYdWUtX76sBZ_q9|4mGSbfd1xLPe)MGQDAh3D zaEW~@@}MbwwRowU-*6pYE(Tzeo;(m3yEG)qOmf855V#ylT!RsgxgU}bz#Dbb*)}$n zXFJ=Zrp06h+APznSv%6&6UYU&6LyX+KAT~?j=<3QAVUx4%e_3ZWJA&2*YH@wJjJQG z8?MjxXUSJ~AVt^dF3$wm1d5fWqwIaTW&1W2T6P>)nPE18k$o+vK(6NG59o^^= z=s9~j1O_f1iT@m8pshZ!6`?M+YpkuGxE;ATZ#-%O`nFUXrbmgD^aMtu!8j%JMA*4g zS5$*>n}3uY9*=y^9PK~ap3gL%58an)S#h+gO+^95&VX_P$$E8HS}Obxj9$hynq`vp zrBkcOn(Z-Ep!U$SR;F|eO<+MQYK6q~F|tX} zN);Irndu^9A~RED5Y4GV+c9zp{Dn4yJWF<X=PYt4nypwhGC+} zF!DC;(08QOlr`o^@=cp8O?^TBFYp|l5hm#mK@CN2El^quloo?JSt5Z^MkfemoO=hs MPw+SS5yD65H_EwwYXATM literal 0 HcmV?d00001 diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/classes/com/web/shopcarServlet.class" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/classes/com/web/shopcarServlet.class" new file mode 100644 index 0000000000000000000000000000000000000000..4e7e47818e4bd08a4fcdeaf380135e7b2a4961d5 GIT binary patch literal 1623 zcmai!*-{fh6o&uKHd#j0;1(6c1zCcO`vPu=2v(t3LF0v2lSvmDO=jYB2YD@TwD7_Q z@KJmS%YPOFXpoEaobLJiobN1?AHTkR2XGTBMI6FR9%o9pg4sMq@)!+GtAwk#7FyTy zxKX0=RuLv{8@OZOu0Za->$&=&KzeejE|6LDn^NHLs_V&@y-q_0ukA*gC*@V&vDMm%Ot7>T*iKs}k`m8*S|vL}Nu^xh6ByecF;aw%9N*J&OTV&pOQ5*4<;bq) zWo6)=fjNO}(_faXWO3c^1&(~?hHV+%Tk+YDP@q!ldD`vBx~p7vYr*q;ZAZ=o#{WXG z`!B7xva!>-?55rBg`@CSQ%wxvuz`6K_wm5QLp(C@*u(;!m{`P9B88Li)(<{dO3Uu` z*_Q6K4J?^>hGi4SaYEq4;CT@k{r`;oBS>)j#bWfRN3L%@U)yy${(ry8>FDUA7$VE!?pZpP@a##0$sJUa_#nSj5I8=7WU7wy{8u@|zak(F5zYwL zBivbh3O=*bUm-rzNZ}~gTy$7MnYI}VFpOi|Wx^SuD!lxY&hmWLtL4--(kZ;GmNStt zm#LPsv6ZcEBPTGItK`b5E88&App~gm7@OG&l{Bf#Q)kSS3)?8ButPJABBKnUKEyKnUaMIn8QUZ;Syf(VptJ*Bq!_63(o6(37R&lj eMjy&Zpmv8y;WBThn9wAjLxi8=Z~7gCLiIOaj*r~{ literal 0 HcmV?d00001 diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/logging.properties" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/logging.properties" new file mode 100644 index 0000000..76c9512 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/logging.properties" @@ -0,0 +1,64 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler + +.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler + +############################################################ +# Handler specific properties. +# Describes specific configuration info for Handlers. +############################################################ + +1catalina.org.apache.juli.FileHandler.level = FINE +1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +1catalina.org.apache.juli.FileHandler.prefix = catalina. + +2localhost.org.apache.juli.FileHandler.level = FINE +2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +2localhost.org.apache.juli.FileHandler.prefix = localhost. + +3manager.org.apache.juli.FileHandler.level = FINE +3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +3manager.org.apache.juli.FileHandler.prefix = manager. + +4host-manager.org.apache.juli.FileHandler.level = FINE +4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs +4host-manager.org.apache.juli.FileHandler.prefix = host-manager. + +java.util.logging.ConsoleHandler.level = FINE +java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter + + +############################################################ +# Facility specific properties. +# Provides extra control for each logger. +############################################################ + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler + +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO +org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler + +# For example, set the org.apache.catalina.util.LifecycleBase logger to log +# each component that extends LifecycleBase changing state: +#org.apache.catalina.util.LifecycleBase.level = FINE + +# To see debug messages in TldLocationsCache, uncomment the following line: +#org.apache.jasper.compiler.TldLocationsCache.level = FINE diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/tomcat-users.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/tomcat-users.xml" new file mode 100644 index 0000000..7114f5d --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/tomcat-users.xml" @@ -0,0 +1,26 @@ + + + + + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/web.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/web.xml" new file mode 100644 index 0000000..cc8383c --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/web.xml" @@ -0,0 +1,4283 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + org.apache.catalina.servlets.DefaultServlet + + debug + 0 + + + listings + false + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jsp + org.apache.jasper.servlet.JspServlet + + fork + false + + + xpoweredBy + false + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + / + + + + + jsp + *.jsp + *.jspx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 30 + + + + + + + + + + + + 123 + application/vnd.lotus-1-2-3 + + + 3dml + text/vnd.in3d.3dml + + + 3g2 + video/3gpp2 + + + 3gp + video/3gpp + + + 7z + application/x-7z-compressed + + + aab + application/x-authorware-bin + + + aac + audio/x-aac + + + aam + application/x-authorware-map + + + aas + application/x-authorware-seg + + + abs + audio/x-mpeg + + + abw + application/x-abiword + + + ac + application/pkix-attr-cert + + + acc + application/vnd.americandynamics.acc + + + ace + application/x-ace-compressed + + + acu + application/vnd.acucobol + + + acutc + application/vnd.acucorp + + + adp + audio/adpcm + + + aep + application/vnd.audiograph + + + afm + application/x-font-type1 + + + afp + application/vnd.ibm.modcap + + + ahead + application/vnd.ahead.space + + + ai + application/postscript + + + aif + audio/x-aiff + + + aifc + audio/x-aiff + + + aiff + audio/x-aiff + + + aim + application/x-aim + + + air + application/vnd.adobe.air-application-installer-package+zip + + + ait + application/vnd.dvb.ait + + + ami + application/vnd.amiga.ami + + + anx + application/annodex + + + apk + application/vnd.android.package-archive + + + application + application/x-ms-application + + + apr + application/vnd.lotus-approach + + + art + image/x-jg + + + asc + application/pgp-signature + + + asf + video/x-ms-asf + + + asm + text/x-asm + + + aso + application/vnd.accpac.simply.aso + + + asx + video/x-ms-asf + + + atc + application/vnd.acucorp + + + atom + application/atom+xml + + + atomcat + application/atomcat+xml + + + atomsvc + application/atomsvc+xml + + + atx + application/vnd.antix.game-component + + + au + audio/basic + + + avi + video/x-msvideo + + + avx + video/x-rad-screenplay + + + aw + application/applixware + + + axa + audio/annodex + + + axv + video/annodex + + + azf + application/vnd.airzip.filesecure.azf + + + azs + application/vnd.airzip.filesecure.azs + + + azw + application/vnd.amazon.ebook + + + bat + application/x-msdownload + + + bcpio + application/x-bcpio + + + bdf + application/x-font-bdf + + + bdm + application/vnd.syncml.dm+wbxml + + + bed + application/vnd.realvnc.bed + + + bh2 + application/vnd.fujitsu.oasysprs + + + bin + application/octet-stream + + + bmi + application/vnd.bmi + + + bmp + image/bmp + + + body + text/html + + + book + application/vnd.framemaker + + + box + application/vnd.previewsystems.box + + + boz + application/x-bzip2 + + + bpk + application/octet-stream + + + btif + image/prs.btif + + + bz + application/x-bzip + + + bz2 + application/x-bzip2 + + + c + text/x-c + + + c11amc + application/vnd.cluetrust.cartomobile-config + + + c11amz + application/vnd.cluetrust.cartomobile-config-pkg + + + c4d + application/vnd.clonk.c4group + + + c4f + application/vnd.clonk.c4group + + + c4g + application/vnd.clonk.c4group + + + c4p + application/vnd.clonk.c4group + + + c4u + application/vnd.clonk.c4group + + + cab + application/vnd.ms-cab-compressed + + + cap + application/vnd.tcpdump.pcap + + + car + application/vnd.curl.car + + + cat + application/vnd.ms-pki.seccat + + + cc + text/x-c + + + cct + application/x-director + + + ccxml + application/ccxml+xml + + + cdbcmsg + application/vnd.contact.cmsg + + + cdf + application/x-cdf + + + cdkey + application/vnd.mediastation.cdkey + + + cdmia + application/cdmi-capability + + + cdmic + application/cdmi-container + + + cdmid + application/cdmi-domain + + + cdmio + application/cdmi-object + + + cdmiq + application/cdmi-queue + + + cdx + chemical/x-cdx + + + cdxml + application/vnd.chemdraw+xml + + + cdy + application/vnd.cinderella + + + cer + application/pkix-cert + + + cgm + image/cgm + + + chat + application/x-chat + + + chm + application/vnd.ms-htmlhelp + + + chrt + application/vnd.kde.kchart + + + cif + chemical/x-cif + + + cii + application/vnd.anser-web-certificate-issue-initiation + + + cil + application/vnd.ms-artgalry + + + cla + application/vnd.claymore + + + class + application/java + + + clkk + application/vnd.crick.clicker.keyboard + + + clkp + application/vnd.crick.clicker.palette + + + clkt + application/vnd.crick.clicker.template + + + clkw + application/vnd.crick.clicker.wordbank + + + clkx + application/vnd.crick.clicker + + + clp + application/x-msclip + + + cmc + application/vnd.cosmocaller + + + cmdf + chemical/x-cmdf + + + cml + chemical/x-cml + + + cmp + application/vnd.yellowriver-custom-menu + + + cmx + image/x-cmx + + + cod + application/vnd.rim.cod + + + com + application/x-msdownload + + + conf + text/plain + + + cpio + application/x-cpio + + + cpp + text/x-c + + + cpt + application/mac-compactpro + + + crd + application/x-mscardfile + + + crl + application/pkix-crl + + + crt + application/x-x509-ca-cert + + + cryptonote + application/vnd.rig.cryptonote + + + csh + application/x-csh + + + csml + chemical/x-csml + + + csp + application/vnd.commonspace + + + css + text/css + + + cst + application/x-director + + + csv + text/csv + + + cu + application/cu-seeme + + + curl + text/vnd.curl + + + cww + application/prs.cww + + + cxt + application/x-director + + + cxx + text/x-c + + + dae + model/vnd.collada+xml + + + daf + application/vnd.mobius.daf + + + dataless + application/vnd.fdsn.seed + + + davmount + application/davmount+xml + + + dcr + application/x-director + + + dcurl + text/vnd.curl.dcurl + + + dd2 + application/vnd.oma.dd2+xml + + + ddd + application/vnd.fujixerox.ddd + + + deb + application/x-debian-package + + + def + text/plain + + + deploy + application/octet-stream + + + der + application/x-x509-ca-cert + + + dfac + application/vnd.dreamfactory + + + dib + image/bmp + + + dic + text/x-c + + + dir + application/x-director + + + dis + application/vnd.mobius.dis + + + dist + application/octet-stream + + + distz + application/octet-stream + + + djv + image/vnd.djvu + + + djvu + image/vnd.djvu + + + dll + application/x-msdownload + + + dmg + application/octet-stream + + + dmp + application/vnd.tcpdump.pcap + + + dms + application/octet-stream + + + dna + application/vnd.dna + + + doc + application/msword + + + docm + application/vnd.ms-word.document.macroenabled.12 + + + docx + application/vnd.openxmlformats-officedocument.wordprocessingml.document + + + dot + application/msword + + + dotm + application/vnd.ms-word.template.macroenabled.12 + + + dotx + application/vnd.openxmlformats-officedocument.wordprocessingml.template + + + dp + application/vnd.osgi.dp + + + dpg + application/vnd.dpgraph + + + dra + audio/vnd.dra + + + dsc + text/prs.lines.tag + + + dssc + application/dssc+der + + + dtb + application/x-dtbook+xml + + + dtd + application/xml-dtd + + + dts + audio/vnd.dts + + + dtshd + audio/vnd.dts.hd + + + dump + application/octet-stream + + + dv + video/x-dv + + + dvb + video/vnd.dvb.file + + + dvi + application/x-dvi + + + dwf + model/vnd.dwf + + + dwg + image/vnd.dwg + + + dxf + image/vnd.dxf + + + dxp + application/vnd.spotfire.dxp + + + dxr + application/x-director + + + ecelp4800 + audio/vnd.nuera.ecelp4800 + + + ecelp7470 + audio/vnd.nuera.ecelp7470 + + + ecelp9600 + audio/vnd.nuera.ecelp9600 + + + ecma + application/ecmascript + + + edm + application/vnd.novadigm.edm + + + edx + application/vnd.novadigm.edx + + + efif + application/vnd.picsel + + + ei6 + application/vnd.pg.osasli + + + elc + application/octet-stream + + + eml + message/rfc822 + + + emma + application/emma+xml + + + eol + audio/vnd.digital-winds + + + eot + application/vnd.ms-fontobject + + + eps + application/postscript + + + epub + application/epub+zip + + + es3 + application/vnd.eszigno3+xml + + + esf + application/vnd.epson.esf + + + et3 + application/vnd.eszigno3+xml + + + etx + text/x-setext + + + exe + application/octet-stream + + + exi + application/exi + + + ext + application/vnd.novadigm.ext + + + ez + application/andrew-inset + + + ez2 + application/vnd.ezpix-album + + + ez3 + application/vnd.ezpix-package + + + f + text/x-fortran + + + f4v + video/x-f4v + + + f77 + text/x-fortran + + + f90 + text/x-fortran + + + fbs + image/vnd.fastbidsheet + + + fcs + application/vnd.isac.fcs + + + fdf + application/vnd.fdf + + + fe_launch + application/vnd.denovo.fcselayout-link + + + fg5 + application/vnd.fujitsu.oasysgp + + + fgd + application/x-director + + + fh + image/x-freehand + + + fh4 + image/x-freehand + + + fh5 + image/x-freehand + + + fh7 + image/x-freehand + + + fhc + image/x-freehand + + + fig + application/x-xfig + + + flac + audio/flac + + + fli + video/x-fli + + + flo + application/vnd.micrografx.flo + + + flv + video/x-flv + + + flw + application/vnd.kde.kivio + + + flx + text/vnd.fmi.flexstor + + + fly + text/vnd.fly + + + fm + application/vnd.framemaker + + + fnc + application/vnd.frogans.fnc + + + for + text/x-fortran + + + fpx + image/vnd.fpx + + + frame + application/vnd.framemaker + + + fsc + application/vnd.fsc.weblaunch + + + fst + image/vnd.fst + + + ftc + application/vnd.fluxtime.clip + + + fti + application/vnd.anser-web-funds-transfer-initiation + + + fvt + video/vnd.fvt + + + fxp + application/vnd.adobe.fxp + + + fxpl + application/vnd.adobe.fxp + + + fzs + application/vnd.fuzzysheet + + + g2w + application/vnd.geoplan + + + g3 + image/g3fax + + + g3w + application/vnd.geospace + + + gac + application/vnd.groove-account + + + gbr + application/rpki-ghostbusters + + + gdl + model/vnd.gdl + + + geo + application/vnd.dynageo + + + gex + application/vnd.geometry-explorer + + + ggb + application/vnd.geogebra.file + + + ggt + application/vnd.geogebra.tool + + + ghf + application/vnd.groove-help + + + gif + image/gif + + + gim + application/vnd.groove-identity-message + + + gmx + application/vnd.gmx + + + gnumeric + application/x-gnumeric + + + gph + application/vnd.flographit + + + gqf + application/vnd.grafeq + + + gqs + application/vnd.grafeq + + + gram + application/srgs + + + gre + application/vnd.geometry-explorer + + + grv + application/vnd.groove-injector + + + grxml + application/srgs+xml + + + gsf + application/x-font-ghostscript + + + gtar + application/x-gtar + + + gtm + application/vnd.groove-tool-message + + + gtw + model/vnd.gtw + + + gv + text/vnd.graphviz + + + gxt + application/vnd.geonext + + + gz + application/x-gzip + + + h + text/x-c + + + h261 + video/h261 + + + h263 + video/h263 + + + h264 + video/h264 + + + hal + application/vnd.hal+xml + + + hbci + application/vnd.hbci + + + hdf + application/x-hdf + + + hh + text/x-c + + + hlp + application/winhlp + + + hpgl + application/vnd.hp-hpgl + + + hpid + application/vnd.hp-hpid + + + hps + application/vnd.hp-hps + + + hqx + application/mac-binhex40 + + + htc + text/x-component + + + htke + application/vnd.kenameaapp + + + htm + text/html + + + html + text/html + + + hvd + application/vnd.yamaha.hv-dic + + + hvp + application/vnd.yamaha.hv-voice + + + hvs + application/vnd.yamaha.hv-script + + + i2g + application/vnd.intergeo + + + icc + application/vnd.iccprofile + + + ice + x-conference/x-cooltalk + + + icm + application/vnd.iccprofile + + + ico + image/x-icon + + + ics + text/calendar + + + ief + image/ief + + + ifb + text/calendar + + + ifm + application/vnd.shana.informed.formdata + + + iges + model/iges + + + igl + application/vnd.igloader + + + igm + application/vnd.insors.igm + + + igs + model/iges + + + igx + application/vnd.micrografx.igx + + + iif + application/vnd.shana.informed.interchange + + + imp + application/vnd.accpac.simply.imp + + + ims + application/vnd.ms-ims + + + in + text/plain + + + ink + application/inkml+xml + + + inkml + application/inkml+xml + + + iota + application/vnd.astraea-software.iota + + + ipfix + application/ipfix + + + ipk + application/vnd.shana.informed.package + + + irm + application/vnd.ibm.rights-management + + + irp + application/vnd.irepository.package+xml + + + iso + application/octet-stream + + + itp + application/vnd.shana.informed.formtemplate + + + ivp + application/vnd.immervision-ivp + + + ivu + application/vnd.immervision-ivu + + + jad + text/vnd.sun.j2me.app-descriptor + + + jam + application/vnd.jam + + + jar + application/java-archive + + + java + text/x-java-source + + + jisp + application/vnd.jisp + + + jlt + application/vnd.hp-jlyt + + + jnlp + application/x-java-jnlp-file + + + joda + application/vnd.joost.joda-archive + + + jpe + image/jpeg + + + jpeg + image/jpeg + + + jpg + image/jpeg + + + jpgm + video/jpm + + + jpgv + video/jpeg + + + jpm + video/jpm + + + js + application/javascript + + + jsf + text/plain + + + json + application/json + + + jspf + text/plain + + + kar + audio/midi + + + karbon + application/vnd.kde.karbon + + + kfo + application/vnd.kde.kformula + + + kia + application/vnd.kidspiration + + + kml + application/vnd.google-earth.kml+xml + + + kmz + application/vnd.google-earth.kmz + + + kne + application/vnd.kinar + + + knp + application/vnd.kinar + + + kon + application/vnd.kde.kontour + + + kpr + application/vnd.kde.kpresenter + + + kpt + application/vnd.kde.kpresenter + + + ksp + application/vnd.kde.kspread + + + ktr + application/vnd.kahootz + + + ktx + image/ktx + + + ktz + application/vnd.kahootz + + + kwd + application/vnd.kde.kword + + + kwt + application/vnd.kde.kword + + + lasxml + application/vnd.las.las+xml + + + latex + application/x-latex + + + lbd + application/vnd.llamagraphics.life-balance.desktop + + + lbe + application/vnd.llamagraphics.life-balance.exchange+xml + + + les + application/vnd.hhe.lesson-player + + + lha + application/octet-stream + + + link66 + application/vnd.route66.link66+xml + + + list + text/plain + + + list3820 + application/vnd.ibm.modcap + + + listafp + application/vnd.ibm.modcap + + + log + text/plain + + + lostxml + application/lost+xml + + + lrf + application/octet-stream + + + lrm + application/vnd.ms-lrm + + + ltf + application/vnd.frogans.ltf + + + lvp + audio/vnd.lucent.voice + + + lwp + application/vnd.lotus-wordpro + + + lzh + application/octet-stream + + + m13 + application/x-msmediaview + + + m14 + application/x-msmediaview + + + m1v + video/mpeg + + + m21 + application/mp21 + + + m2a + audio/mpeg + + + m2v + video/mpeg + + + m3a + audio/mpeg + + + m3u + audio/x-mpegurl + + + m3u8 + application/vnd.apple.mpegurl + + + m4a + audio/mp4 + + + m4b + audio/mp4 + + + m4r + audio/mp4 + + + m4u + video/vnd.mpegurl + + + m4v + video/mp4 + + + ma + application/mathematica + + + mac + image/x-macpaint + + + mads + application/mads+xml + + + mag + application/vnd.ecowin.chart + + + maker + application/vnd.framemaker + + + man + text/troff + + + mathml + application/mathml+xml + + + mb + application/mathematica + + + mbk + application/vnd.mobius.mbk + + + mbox + application/mbox + + + mc1 + application/vnd.medcalcdata + + + mcd + application/vnd.mcd + + + mcurl + text/vnd.curl.mcurl + + + mdb + application/x-msaccess + + + mdi + image/vnd.ms-modi + + + me + text/troff + + + mesh + model/mesh + + + meta4 + application/metalink4+xml + + + mets + application/mets+xml + + + mfm + application/vnd.mfmp + + + mft + application/rpki-manifest + + + mgp + application/vnd.osgeo.mapguide.package + + + mgz + application/vnd.proteus.magazine + + + mid + audio/midi + + + midi + audio/midi + + + mif + application/x-mif + + + mime + message/rfc822 + + + mj2 + video/mj2 + + + mjp2 + video/mj2 + + + mlp + application/vnd.dolby.mlp + + + mmd + application/vnd.chipnuts.karaoke-mmd + + + mmf + application/vnd.smaf + + + mmr + image/vnd.fujixerox.edmics-mmr + + + mny + application/x-msmoney + + + mobi + application/x-mobipocket-ebook + + + mods + application/mods+xml + + + mov + video/quicktime + + + movie + video/x-sgi-movie + + + mp1 + audio/mpeg + + + mp2 + audio/mpeg + + + mp21 + application/mp21 + + + mp2a + audio/mpeg + + + mp3 + audio/mpeg + + + mp4 + video/mp4 + + + mp4a + audio/mp4 + + + mp4s + application/mp4 + + + mp4v + video/mp4 + + + mpa + audio/mpeg + + + mpc + application/vnd.mophun.certificate + + + mpe + video/mpeg + + + mpeg + video/mpeg + + + mpega + audio/x-mpeg + + + mpg + video/mpeg + + + mpg4 + video/mp4 + + + mpga + audio/mpeg + + + mpkg + application/vnd.apple.installer+xml + + + mpm + application/vnd.blueice.multipass + + + mpn + application/vnd.mophun.application + + + mpp + application/vnd.ms-project + + + mpt + application/vnd.ms-project + + + mpv2 + video/mpeg2 + + + mpy + application/vnd.ibm.minipay + + + mqy + application/vnd.mobius.mqy + + + mrc + application/marc + + + mrcx + application/marcxml+xml + + + ms + text/troff + + + mscml + application/mediaservercontrol+xml + + + mseed + application/vnd.fdsn.mseed + + + mseq + application/vnd.mseq + + + msf + application/vnd.epson.msf + + + msh + model/mesh + + + msi + application/x-msdownload + + + msl + application/vnd.mobius.msl + + + msty + application/vnd.muvee.style + + + mts + model/vnd.mts + + + mus + application/vnd.musician + + + musicxml + application/vnd.recordare.musicxml+xml + + + mvb + application/x-msmediaview + + + mwf + application/vnd.mfer + + + mxf + application/mxf + + + mxl + application/vnd.recordare.musicxml + + + mxml + application/xv+xml + + + mxs + application/vnd.triscape.mxs + + + mxu + video/vnd.mpegurl + + + n-gage + application/vnd.nokia.n-gage.symbian.install + + + n3 + text/n3 + + + nb + application/mathematica + + + nbp + application/vnd.wolfram.player + + + nc + application/x-netcdf + + + ncx + application/x-dtbncx+xml + + + ngdat + application/vnd.nokia.n-gage.data + + + nlu + application/vnd.neurolanguage.nlu + + + nml + application/vnd.enliven + + + nnd + application/vnd.noblenet-directory + + + nns + application/vnd.noblenet-sealer + + + nnw + application/vnd.noblenet-web + + + npx + image/vnd.net-fpx + + + nsf + application/vnd.lotus-notes + + + oa2 + application/vnd.fujitsu.oasys2 + + + oa3 + application/vnd.fujitsu.oasys3 + + + oas + application/vnd.fujitsu.oasys + + + obd + application/x-msbinder + + + oda + application/oda + + + + odb + application/vnd.oasis.opendocument.database + + + + odc + application/vnd.oasis.opendocument.chart + + + + odf + application/vnd.oasis.opendocument.formula + + + odft + application/vnd.oasis.opendocument.formula-template + + + + odg + application/vnd.oasis.opendocument.graphics + + + + odi + application/vnd.oasis.opendocument.image + + + + odm + application/vnd.oasis.opendocument.text-master + + + + odp + application/vnd.oasis.opendocument.presentation + + + + ods + application/vnd.oasis.opendocument.spreadsheet + + + + odt + application/vnd.oasis.opendocument.text + + + oga + audio/ogg + + + ogg + audio/ogg + + + ogv + video/ogg + + + + ogx + application/ogg + + + onepkg + application/onenote + + + onetmp + application/onenote + + + onetoc + application/onenote + + + onetoc2 + application/onenote + + + opf + application/oebps-package+xml + + + oprc + application/vnd.palm + + + org + application/vnd.lotus-organizer + + + osf + application/vnd.yamaha.openscoreformat + + + osfpvg + application/vnd.yamaha.openscoreformat.osfpvg+xml + + + otc + application/vnd.oasis.opendocument.chart-template + + + otf + application/x-font-otf + + + + otg + application/vnd.oasis.opendocument.graphics-template + + + + oth + application/vnd.oasis.opendocument.text-web + + + oti + application/vnd.oasis.opendocument.image-template + + + + otp + application/vnd.oasis.opendocument.presentation-template + + + + ots + application/vnd.oasis.opendocument.spreadsheet-template + + + + ott + application/vnd.oasis.opendocument.text-template + + + oxps + application/oxps + + + oxt + application/vnd.openofficeorg.extension + + + p + text/x-pascal + + + p10 + application/pkcs10 + + + p12 + application/x-pkcs12 + + + p7b + application/x-pkcs7-certificates + + + p7c + application/pkcs7-mime + + + p7m + application/pkcs7-mime + + + p7r + application/x-pkcs7-certreqresp + + + p7s + application/pkcs7-signature + + + p8 + application/pkcs8 + + + pas + text/x-pascal + + + paw + application/vnd.pawaafile + + + pbd + application/vnd.powerbuilder6 + + + pbm + image/x-portable-bitmap + + + pcap + application/vnd.tcpdump.pcap + + + pcf + application/x-font-pcf + + + pcl + application/vnd.hp-pcl + + + pclxl + application/vnd.hp-pclxl + + + pct + image/pict + + + pcurl + application/vnd.curl.pcurl + + + pcx + image/x-pcx + + + pdb + application/vnd.palm + + + pdf + application/pdf + + + pfa + application/x-font-type1 + + + pfb + application/x-font-type1 + + + pfm + application/x-font-type1 + + + pfr + application/font-tdpfr + + + pfx + application/x-pkcs12 + + + pgm + image/x-portable-graymap + + + pgn + application/x-chess-pgn + + + pgp + application/pgp-encrypted + + + pic + image/pict + + + pict + image/pict + + + pkg + application/octet-stream + + + pki + application/pkixcmp + + + pkipath + application/pkix-pkipath + + + plb + application/vnd.3gpp.pic-bw-large + + + plc + application/vnd.mobius.plc + + + plf + application/vnd.pocketlearn + + + pls + audio/x-scpls + + + pml + application/vnd.ctc-posml + + + png + image/png + + + pnm + image/x-portable-anymap + + + pnt + image/x-macpaint + + + portpkg + application/vnd.macports.portpkg + + + pot + application/vnd.ms-powerpoint + + + potm + application/vnd.ms-powerpoint.template.macroenabled.12 + + + potx + application/vnd.openxmlformats-officedocument.presentationml.template + + + ppam + application/vnd.ms-powerpoint.addin.macroenabled.12 + + + ppd + application/vnd.cups-ppd + + + ppm + image/x-portable-pixmap + + + pps + application/vnd.ms-powerpoint + + + ppsm + application/vnd.ms-powerpoint.slideshow.macroenabled.12 + + + ppsx + application/vnd.openxmlformats-officedocument.presentationml.slideshow + + + ppt + application/vnd.ms-powerpoint + + + pptm + application/vnd.ms-powerpoint.presentation.macroenabled.12 + + + pptx + application/vnd.openxmlformats-officedocument.presentationml.presentation + + + pqa + application/vnd.palm + + + prc + application/x-mobipocket-ebook + + + pre + application/vnd.lotus-freelance + + + prf + application/pics-rules + + + ps + application/postscript + + + psb + application/vnd.3gpp.pic-bw-small + + + psd + image/vnd.adobe.photoshop + + + psf + application/x-font-linux-psf + + + pskcxml + application/pskc+xml + + + ptid + application/vnd.pvi.ptid1 + + + pub + application/x-mspublisher + + + pvb + application/vnd.3gpp.pic-bw-var + + + pwn + application/vnd.3m.post-it-notes + + + pya + audio/vnd.ms-playready.media.pya + + + pyv + video/vnd.ms-playready.media.pyv + + + qam + application/vnd.epson.quickanime + + + qbo + application/vnd.intu.qbo + + + qfx + application/vnd.intu.qfx + + + qps + application/vnd.publishare-delta-tree + + + qt + video/quicktime + + + qti + image/x-quicktime + + + qtif + image/x-quicktime + + + qwd + application/vnd.quark.quarkxpress + + + qwt + application/vnd.quark.quarkxpress + + + qxb + application/vnd.quark.quarkxpress + + + qxd + application/vnd.quark.quarkxpress + + + qxl + application/vnd.quark.quarkxpress + + + qxt + application/vnd.quark.quarkxpress + + + ra + audio/x-pn-realaudio + + + ram + audio/x-pn-realaudio + + + rar + application/x-rar-compressed + + + ras + image/x-cmu-raster + + + rcprofile + application/vnd.ipunplugged.rcprofile + + + rdf + application/rdf+xml + + + rdz + application/vnd.data-vision.rdz + + + rep + application/vnd.businessobjects + + + res + application/x-dtbresource+xml + + + rgb + image/x-rgb + + + rif + application/reginfo+xml + + + rip + audio/vnd.rip + + + rl + application/resource-lists+xml + + + rlc + image/vnd.fujixerox.edmics-rlc + + + rld + application/resource-lists-diff+xml + + + rm + application/vnd.rn-realmedia + + + rmi + audio/midi + + + rmp + audio/x-pn-realaudio-plugin + + + rms + application/vnd.jcp.javame.midlet-rms + + + rnc + application/relax-ng-compact-syntax + + + roa + application/rpki-roa + + + roff + text/troff + + + rp9 + application/vnd.cloanto.rp9 + + + rpss + application/vnd.nokia.radio-presets + + + rpst + application/vnd.nokia.radio-preset + + + rq + application/sparql-query + + + rs + application/rls-services+xml + + + rsd + application/rsd+xml + + + rss + application/rss+xml + + + rtf + application/rtf + + + rtx + text/richtext + + + s + text/x-asm + + + saf + application/vnd.yamaha.smaf-audio + + + sbml + application/sbml+xml + + + sc + application/vnd.ibm.secure-container + + + scd + application/x-msschedule + + + scm + application/vnd.lotus-screencam + + + scq + application/scvp-cv-request + + + scs + application/scvp-cv-response + + + scurl + text/vnd.curl.scurl + + + sda + application/vnd.stardivision.draw + + + sdc + application/vnd.stardivision.calc + + + sdd + application/vnd.stardivision.impress + + + sdkd + application/vnd.solent.sdkm+xml + + + sdkm + application/vnd.solent.sdkm+xml + + + sdp + application/sdp + + + sdw + application/vnd.stardivision.writer + + + see + application/vnd.seemail + + + seed + application/vnd.fdsn.seed + + + sema + application/vnd.sema + + + semd + application/vnd.semd + + + semf + application/vnd.semf + + + ser + application/java-serialized-object + + + setpay + application/set-payment-initiation + + + setreg + application/set-registration-initiation + + + sfd-hdstx + application/vnd.hydrostatix.sof-data + + + sfs + application/vnd.spotfire.sfs + + + sgl + application/vnd.stardivision.writer-global + + + sgm + text/sgml + + + sgml + text/sgml + + + sh + application/x-sh + + + shar + application/x-shar + + + shf + application/shf+xml + + + + sig + application/pgp-signature + + + silo + model/mesh + + + sis + application/vnd.symbian.install + + + sisx + application/vnd.symbian.install + + + sit + application/x-stuffit + + + sitx + application/x-stuffitx + + + skd + application/vnd.koan + + + skm + application/vnd.koan + + + skp + application/vnd.koan + + + skt + application/vnd.koan + + + sldm + application/vnd.ms-powerpoint.slide.macroenabled.12 + + + sldx + application/vnd.openxmlformats-officedocument.presentationml.slide + + + slt + application/vnd.epson.salt + + + sm + application/vnd.stepmania.stepchart + + + smf + application/vnd.stardivision.math + + + smi + application/smil+xml + + + smil + application/smil+xml + + + smzip + application/vnd.stepmania.package + + + snd + audio/basic + + + snf + application/x-font-snf + + + so + application/octet-stream + + + spc + application/x-pkcs7-certificates + + + spf + application/vnd.yamaha.smaf-phrase + + + spl + application/x-futuresplash + + + spot + text/vnd.in3d.spot + + + spp + application/scvp-vp-response + + + spq + application/scvp-vp-request + + + spx + audio/ogg + + + src + application/x-wais-source + + + sru + application/sru+xml + + + srx + application/sparql-results+xml + + + sse + application/vnd.kodak-descriptor + + + ssf + application/vnd.epson.ssf + + + ssml + application/ssml+xml + + + st + application/vnd.sailingtracker.track + + + stc + application/vnd.sun.xml.calc.template + + + std + application/vnd.sun.xml.draw.template + + + stf + application/vnd.wt.stf + + + sti + application/vnd.sun.xml.impress.template + + + stk + application/hyperstudio + + + stl + application/vnd.ms-pki.stl + + + str + application/vnd.pg.format + + + stw + application/vnd.sun.xml.writer.template + + + sub + text/vnd.dvb.subtitle + + + sus + application/vnd.sus-calendar + + + susp + application/vnd.sus-calendar + + + sv4cpio + application/x-sv4cpio + + + sv4crc + application/x-sv4crc + + + svc + application/vnd.dvb.service + + + svd + application/vnd.svd + + + svg + image/svg+xml + + + svgz + image/svg+xml + + + swa + application/x-director + + + swf + application/x-shockwave-flash + + + swi + application/vnd.aristanetworks.swi + + + sxc + application/vnd.sun.xml.calc + + + sxd + application/vnd.sun.xml.draw + + + sxg + application/vnd.sun.xml.writer.global + + + sxi + application/vnd.sun.xml.impress + + + sxm + application/vnd.sun.xml.math + + + sxw + application/vnd.sun.xml.writer + + + t + text/troff + + + taglet + application/vnd.mynfc + + + tao + application/vnd.tao.intent-module-archive + + + tar + application/x-tar + + + tcap + application/vnd.3gpp2.tcap + + + tcl + application/x-tcl + + + teacher + application/vnd.smart.teacher + + + tei + application/tei+xml + + + teicorpus + application/tei+xml + + + tex + application/x-tex + + + texi + application/x-texinfo + + + texinfo + application/x-texinfo + + + text + text/plain + + + tfi + application/thraud+xml + + + tfm + application/x-tex-tfm + + + thmx + application/vnd.ms-officetheme + + + tif + image/tiff + + + tiff + image/tiff + + + tmo + application/vnd.tmobile-livetv + + + torrent + application/x-bittorrent + + + tpl + application/vnd.groove-tool-template + + + tpt + application/vnd.trid.tpt + + + tr + text/troff + + + tra + application/vnd.trueapp + + + trm + application/x-msterminal + + + tsd + application/timestamped-data + + + tsv + text/tab-separated-values + + + ttc + application/x-font-ttf + + + ttf + application/x-font-ttf + + + ttl + text/turtle + + + twd + application/vnd.simtech-mindmapper + + + twds + application/vnd.simtech-mindmapper + + + txd + application/vnd.genomatix.tuxedo + + + txf + application/vnd.mobius.txf + + + txt + text/plain + + + u32 + application/x-authorware-bin + + + udeb + application/x-debian-package + + + ufd + application/vnd.ufdl + + + ufdl + application/vnd.ufdl + + + ulw + audio/basic + + + umj + application/vnd.umajin + + + unityweb + application/vnd.unity + + + uoml + application/vnd.uoml+xml + + + uri + text/uri-list + + + uris + text/uri-list + + + urls + text/uri-list + + + ustar + application/x-ustar + + + utz + application/vnd.uiq.theme + + + uu + text/x-uuencode + + + uva + audio/vnd.dece.audio + + + uvd + application/vnd.dece.data + + + uvf + application/vnd.dece.data + + + uvg + image/vnd.dece.graphic + + + uvh + video/vnd.dece.hd + + + uvi + image/vnd.dece.graphic + + + uvm + video/vnd.dece.mobile + + + uvp + video/vnd.dece.pd + + + uvs + video/vnd.dece.sd + + + uvt + application/vnd.dece.ttml+xml + + + uvu + video/vnd.uvvu.mp4 + + + uvv + video/vnd.dece.video + + + uvva + audio/vnd.dece.audio + + + uvvd + application/vnd.dece.data + + + uvvf + application/vnd.dece.data + + + uvvg + image/vnd.dece.graphic + + + uvvh + video/vnd.dece.hd + + + uvvi + image/vnd.dece.graphic + + + uvvm + video/vnd.dece.mobile + + + uvvp + video/vnd.dece.pd + + + uvvs + video/vnd.dece.sd + + + uvvt + application/vnd.dece.ttml+xml + + + uvvu + video/vnd.uvvu.mp4 + + + uvvv + video/vnd.dece.video + + + uvvx + application/vnd.dece.unspecified + + + uvvz + application/vnd.dece.zip + + + uvx + application/vnd.dece.unspecified + + + uvz + application/vnd.dece.zip + + + vcard + text/vcard + + + vcd + application/x-cdlink + + + vcf + text/x-vcard + + + vcg + application/vnd.groove-vcard + + + vcs + text/x-vcalendar + + + vcx + application/vnd.vcx + + + vis + application/vnd.visionary + + + viv + video/vnd.vivo + + + vor + application/vnd.stardivision.writer + + + vox + application/x-authorware-bin + + + vrml + model/vrml + + + vsd + application/vnd.visio + + + vsf + application/vnd.vsf + + + vss + application/vnd.visio + + + vst + application/vnd.visio + + + vsw + application/vnd.visio + + + vtu + model/vnd.vtu + + + vxml + application/voicexml+xml + + + w3d + application/x-director + + + wad + application/x-doom + + + wav + audio/x-wav + + + wax + audio/x-ms-wax + + + + wbmp + image/vnd.wap.wbmp + + + wbs + application/vnd.criticaltools.wbs+xml + + + wbxml + application/vnd.wap.wbxml + + + wcm + application/vnd.ms-works + + + wdb + application/vnd.ms-works + + + weba + audio/webm + + + webm + video/webm + + + webp + image/webp + + + wg + application/vnd.pmi.widget + + + wgt + application/widget + + + wks + application/vnd.ms-works + + + wm + video/x-ms-wm + + + wma + audio/x-ms-wma + + + wmd + application/x-ms-wmd + + + wmf + application/x-msmetafile + + + + wml + text/vnd.wap.wml + + + + wmlc + application/vnd.wap.wmlc + + + + wmls + text/vnd.wap.wmlscript + + + + wmlsc + application/vnd.wap.wmlscriptc + + + wmv + video/x-ms-wmv + + + wmx + video/x-ms-wmx + + + wmz + application/x-ms-wmz + + + woff + application/x-font-woff + + + wpd + application/vnd.wordperfect + + + wpl + application/vnd.ms-wpl + + + wps + application/vnd.ms-works + + + wqd + application/vnd.wqd + + + wri + application/x-mswrite + + + wrl + model/vrml + + + wsdl + application/wsdl+xml + + + wspolicy + application/wspolicy+xml + + + wtb + application/vnd.webturbo + + + wvx + video/x-ms-wvx + + + x32 + application/x-authorware-bin + + + x3d + application/vnd.hzn-3d-crossword + + + xap + application/x-silverlight-app + + + xar + application/vnd.xara + + + xbap + application/x-ms-xbap + + + xbd + application/vnd.fujixerox.docuworks.binder + + + xbm + image/x-xbitmap + + + xdf + application/xcap-diff+xml + + + xdm + application/vnd.syncml.dm+xml + + + xdp + application/vnd.adobe.xdp+xml + + + xdssc + application/dssc+xml + + + xdw + application/vnd.fujixerox.docuworks + + + xenc + application/xenc+xml + + + xer + application/patch-ops-error+xml + + + xfdf + application/vnd.adobe.xfdf + + + xfdl + application/vnd.xfdl + + + xht + application/xhtml+xml + + + xhtml + application/xhtml+xml + + + xhvml + application/xv+xml + + + xif + image/vnd.xiff + + + xla + application/vnd.ms-excel + + + xlam + application/vnd.ms-excel.addin.macroenabled.12 + + + xlc + application/vnd.ms-excel + + + xlm + application/vnd.ms-excel + + + xls + application/vnd.ms-excel + + + xlsb + application/vnd.ms-excel.sheet.binary.macroenabled.12 + + + xlsm + application/vnd.ms-excel.sheet.macroenabled.12 + + + xlsx + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + + + xlt + application/vnd.ms-excel + + + xltm + application/vnd.ms-excel.template.macroenabled.12 + + + xltx + application/vnd.openxmlformats-officedocument.spreadsheetml.template + + + xlw + application/vnd.ms-excel + + + xml + application/xml + + + xo + application/vnd.olpc-sugar + + + xop + application/xop+xml + + + xpi + application/x-xpinstall + + + xpm + image/x-xpixmap + + + xpr + application/vnd.is-xpr + + + xps + application/vnd.ms-xpsdocument + + + xpw + application/vnd.intercon.formnet + + + xpx + application/vnd.intercon.formnet + + + xsl + application/xml + + + xslt + application/xslt+xml + + + xsm + application/vnd.syncml+xml + + + xspf + application/xspf+xml + + + xul + application/vnd.mozilla.xul+xml + + + xvm + application/xv+xml + + + xvml + application/xv+xml + + + xwd + image/x-xwindowdump + + + xyz + chemical/x-xyz + + + yang + application/yang + + + yin + application/yin+xml + + + z + application/x-compress + + + Z + application/x-compress + + + zaz + application/vnd.zzazz.deck+xml + + + zip + application/zip + + + zir + application/vnd.zul + + + zirz + application/vnd.zul + + + zmm + application/vnd.handheld-entertainment+xml + + + + + + + + + + + + + + + + + + index.html + index.htm + index.jsp + + + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-10-29" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-10-29" new file mode 100644 index 0000000..5f3a7d0 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-10-29" @@ -0,0 +1,20 @@ +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:54:08 +0800] "GET /brand-demo HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:30 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:30 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 7 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:55 +0800] "GET /webWork/step1.html HTTP/1.1" 200 994 http-bio-8080-exec-4 1 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:54 +0800] "GET /webWork/step1.html HTTP/1.1" 200 994 http-bio-8080-exec-5 5 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:55 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:57 +0800] "POST /src/main/webapp HTTP/1.1" 404 - http-bio-8080-exec-8 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:00:13 +0800] "POST /src/main/webapp HTTP/1.1" 404 - http-bio-8080-exec-9 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:19 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:19 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 7 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:30 +0800] "GET /webWork/step1.html HTTP/1.1" 200 975 http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:55 +0800] "GET /webWork/step1.html HTTP/1.1" 200 975 http-bio-8080-exec-5 1 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:58 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-6 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:41 +0800] "GET /login-test/loginServlet HTTP/1.1" 404 - http-bio-8080-exec-7 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:47 +0800] "GET /webWork/step1.html HTTP/1.1" 200 988 http-bio-8080-exec-9 2 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:52 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-10 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:39 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:39 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:45 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 +0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:48 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-5 0 diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-10-31" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-10-31" new file mode 100644 index 0000000..5c1dc1b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-10-31" @@ -0,0 +1,50 @@ +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 14 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:37:04 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 5 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:37:08 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-6 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:15 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-5 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:58:57 +0800] "GET /webWork/step1.html HTTP/1.1" 200 1010 http-bio-8080-exec-1 26 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:59:00 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-3 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:29 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:29 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:35 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 4 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:10:24 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-6 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:10:26 +0800] "GET /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 15 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:58 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:02 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-6 5 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:56 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:57 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 19 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:05 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:14 +0800] "GET /webWork/step2.heml HTTP/1.1" 404 987 http-bio-8080-exec-5 1 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:19 +0800] "GET /webWork/step2.html HTTP/1.1" 200 1191 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:33:18 +0800] "GET /webWork/step1.heml HTTP/1.1" 404 987 http-bio-8080-exec-1 30 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:33:25 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-3 4 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:36:41 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:36:41 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 20 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:37:16 +0800] "GET /webWork/step1.html HTTP/1.1" 200 1000 http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:37:19 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 4 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:40 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:40 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:46 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:48 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:22 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:22 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 14 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:31 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:33 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:08 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:08 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:22 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 5 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:22 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:05 +0800] "GET /webWork/step3.html HTTP/1.1" 404 987 http-bio-8080-exec-7 2 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:10 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 993 http-bio-8080-exec-9 418 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 993 http-bio-8080-exec-10 35 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:29:55 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1057 http-bio-8080-exec-3 26 +0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:31:26 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1069 http-bio-8080-exec-2 24 diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-01" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-01" new file mode 100644 index 0000000..9fc8f49 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-01" @@ -0,0 +1,6 @@ +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:04 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-2 0 +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:04 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:05 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1208 http-bio-8080-exec-5 464 +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:54 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1230 http-bio-8080-exec-6 42 +0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:53:28 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1230 http-bio-8080-exec-7 43 diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-03" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-03" new file mode 100644 index 0000000..d350f0a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-03" @@ -0,0 +1,63 @@ +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:46 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 10 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:49 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-6 8 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:49 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-7 7 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:27:59 +0800] "GET /webWork/step2.html HTTP/1.1" 200 1191 http-bio-8080-exec-9 3 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:07 +0800] "POST /webWork/addressServlet HTTP/1.1" 200 - http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:21 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:21 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 12 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:28 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 7 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:28 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:33 +0800] "POST /webWork/addressServlet HTTP/1.1" 200 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:15 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:15 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 12 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:21 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 7 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:21 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:25 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:26 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1209 http-bio-8080-exec-7 412 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:35 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-9 3 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-9 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:38 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:43 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:43 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1175 http-bio-8080-exec-9 73 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:55:44 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 64 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:55:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:12 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:12 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 3 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:32 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:32 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 70 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:19 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1106 http-bio-8080-exec-10 64 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:21 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1106 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:40 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-10 66 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:41 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:59:54 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-5 47 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:59:56 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-5 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:00 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 38 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:00 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:02 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:36 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:36 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 9 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:44 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 4 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:44 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 2 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:48 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-7 13 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 264 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:08 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:08 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:04:19 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1192 http-bio-8080-exec-8 48 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:05:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1179 http-bio-8080-exec-8 43 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:05:22 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1179 http-bio-8080-exec-8 42 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:30 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-1 326 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:30 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:36 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 2 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:38 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:43 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:43 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-8 1 diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-06" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-06" new file mode 100644 index 0000000..96549aa --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-06" @@ -0,0 +1,87 @@ +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:22 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:39 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-6 7 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:39 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-7 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:45 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-8 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-9 21 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:14:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1147 http-bio-8080-exec-1 429 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:15:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-3 46 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:35 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:35 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 11 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:43 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 6 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:43 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:48 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-7 21 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:18:33 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-8 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:18:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-9 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:19:23 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:22 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-10 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:22 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-10 358 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:25 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-4 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-4 45 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:34 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-6 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:01 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:01 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:04 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-4 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:15 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 5 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:15 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 3 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:19 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:20 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-8 368 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:46 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1224 http-bio-8080-exec-2 55 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:22:27 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1242 http-bio-8080-exec-10 41 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:42 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 38 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:44 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-1 49 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:17 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-2 4 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:19 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:20 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 3 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:20 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:24 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:24 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-8 3 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:35 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-3 3 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-9 340 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-10 5 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-1 4 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:21 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-2 43 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 39 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:37 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:37 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:38 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:38 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:39 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:12 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 41 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:14 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:36:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1226 http-bio-8080-exec-9 41 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:36:49 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1226 http-bio-8080-exec-9 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:39:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-4 37 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 32 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:52 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 0 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:49:03 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1364 http-bio-8080-exec-6 34 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:14 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 27 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:42 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 31 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1269 http-bio-8080-exec-10 31 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 32 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:06 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:52:59 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-1 28 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:00 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-3 8 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:00 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:04 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-5 2 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2370 http-bio-8080-exec-6 25 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:28 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2804 http-bio-8080-exec-2 344 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1199 http-bio-8080-exec-7 49 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:54:40 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 +0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:54:40 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1113 http-bio-8080-exec-10 40 -- Gitee From a883fc11347c17535759917074b60fa9375907c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Wed, 7 Dec 2022 12:32:55 +0000 Subject: [PATCH 160/688] =?UTF-8?q?=E7=AC=AC=E4=BC=8D=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗鑫lxxx666 <10602820+jason666NB@user.noreply.gitee.com> --- .../l\347\275\227\351\221\253/test.jsp" | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/test.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/test.jsp" new file mode 100644 index 0000000..7795ee3 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From a140eadc9819370450e7950afdbb2e700ce8aa7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E7=AB=B9=E5=AE=A2?= <10602822+ink-bamboo-guest@user.noreply.gitee.com> Date: Thu, 8 Dec 2022 12:27:11 +0000 Subject: [PATCH 161/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E4=BF=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\344\277\212/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 3b4488d2158ffcf380cdcdccac4142bacbd74c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E7=AB=B9=E5=AE=A2?= <10602822+ink-bamboo-guest@user.noreply.gitee.com> Date: Thu, 8 Dec 2022 12:28:12 +0000 Subject: [PATCH 162/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 墨竹客 <10602822+ink-bamboo-guest@user.noreply.gitee.com> --- .../\346\236\227\344\277\212/sdf.jsp" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/sdf.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/sdf.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/sdf.jsp" new file mode 100644 index 0000000..9a05f19 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/sdf.jsp" @@ -0,0 +1,34 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/12 + Time: 21:27 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("海权"); + user.add("林少"); + user.add("细狗"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + -- Gitee From a2ac365b9e7af63adef016da0ec8f10c0b984ee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E7=AB=B9=E5=AE=A2?= <10602822+ink-bamboo-guest@user.noreply.gitee.com> Date: Thu, 8 Dec 2022 12:38:58 +0000 Subject: [PATCH 163/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E4=BF=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\344\277\212/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 6ab45260ffc3ce215ad68906695cc0ea95408c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E7=AB=B9=E5=AE=A2?= <10602822+ink-bamboo-guest@user.noreply.gitee.com> Date: Thu, 8 Dec 2022 12:40:43 +0000 Subject: [PATCH 164/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 墨竹客 <10602822+ink-bamboo-guest@user.noreply.gitee.com> --- .../\346\236\227\344\277\212/fdj.jsp" | 47 +++++++++++++++++++ .../\346\236\227\344\277\212/user.java" | 0 2 files changed, 47 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/fdj.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/user.java" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/fdj.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/fdj.jsp" new file mode 100644 index 0000000..05b1c76 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/fdj.jsp" @@ -0,0 +1,47 @@ +<%@ page import="week12.User" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %> +<%-- + Created by IntelliJ IDEA. + week12.User: WX1927910504 + Date: 2022/11/16 + Time: 20:09 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new User("张三",22,"福建")); + list.add(new User("李四",23,"江西")); + list.add(new User("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.address} + +
+ + + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/user.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/user.java" new file mode 100644 index 0000000..e69de29 -- Gitee From b06e13299f9e3db3cb830859e78183699f4c9613 Mon Sep 17 00:00:00 2001 From: zsy <1135989631@qq.com> Date: Thu, 8 Dec 2022 13:43:53 +0000 Subject: [PATCH 165/688] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zsy <1135989631@qq.com> --- .../zy.html" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/zy.html" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/zy.html" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/zy.html" new file mode 100644 index 0000000..5d1e103 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/zy.html" @@ -0,0 +1,34 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: 15260319477 + Date: 2022/12/3 + Time: 21:28 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("zhu"); + user.add("yu妤"); + user.add("han涵"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From 8ddffd6d4591acbfd980d5f8be3576b73bbcb2bd Mon Sep 17 00:00:00 2001 From: zsy <1135989631@qq.com> Date: Thu, 8 Dec 2022 13:46:22 +0000 Subject: [PATCH 166/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E5=85=AD=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=AC=AC=E5=85=AD?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A=20=E4=B8=BA=20=E7=AC=AC=E5=85=AD?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9C=B1=E6=9D=89=E7=91=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\234\261\346\235\211\347\221\234/zy.html" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/zy.html" => "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/zy.html" (100%) diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/zy.html" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/zy.html" similarity index 100% rename from "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/zy.html" rename to "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/zy.html" -- Gitee From 3214cc8ce2fcdae6c24b89ea076cdb1e3fb15521 Mon Sep 17 00:00:00 2001 From: zsy <1135989631@qq.com> Date: Thu, 8 Dec 2022 13:46:39 +0000 Subject: [PATCH 167/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9C=B1=E6=9D=89?= =?UTF-8?q?=E7=91=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\234\261\346\235\211\347\221\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From b671261c528a1f96bb4482307872c096734622e8 Mon Sep 17 00:00:00 2001 From: zsy <1135989631@qq.com> Date: Thu, 8 Dec 2022 13:47:18 +0000 Subject: [PATCH 168/688] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zsy <1135989631@qq.com> --- .../cookie.java" | 0 .../test.java" | 55 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/cookie.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/test.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/cookie.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/cookie.java" new file mode 100644 index 0000000..e69de29 diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/test.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/test.java" new file mode 100644 index 0000000..cf1eac6 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\234\261\346\235\211\347\221\234/test.java" @@ -0,0 +1,55 @@ + +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; + @WebServlet("/test") +public class test extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + + resp.setContentType("text/html;charset=utf-8"); + + cookie[] cookies = req.getCookies(); + boolean flag=false; + if (cookies != null||cookies.length>0) { + for (cookie cookie:cookies) { + String name = cookie.getName(); + if ("lastTime".equals(name)) { + flag=true; + + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie cookie=new Cookie("lastTime",srt_date); + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} + -- Gitee From 6225700e311fe4c30d4d2dd9d89ddc23c860ba29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sat, 10 Dec 2022 08:52:41 +0000 Subject: [PATCH 169/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C=E4=B8=9A/l=E7=BD=97?= =?UTF-8?q?=E9=91=AB/filterWork?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../filterWork/filterWork.iml" | 38 - .../filterWork/pom.xml" | 76 - .../filterWork/src/main/java/filter.java" | 35 - .../src/main/java/filterServelet.java" | 26 - .../src/main/webapp/WEB-INF/web.xml" | 7 - .../src/main/webapp/filterweb.html" | 12 - .../filterWork/src/main/webapp/filterweb.jsp" | 24 - .../filterWork/src/main/webapp/webtest.jsp" | 20 - .../filterWork/target/classes/filter.class" | Bin 1949 -> 0 bytes .../target/classes/filterServelet.class" | Bin 1218 -> 0 bytes .../compile/default-compile/createdFiles.lst" | 2 - .../compile/default-compile/inputFiles.lst" | 2 - .../target/tomcat/conf/logging.properties" | 64 - .../target/tomcat/conf/tomcat-users.xml" | 26 - .../filterWork/target/tomcat/conf/web.xml" | 4283 ----------------- .../target/tomcat/logs/access_log.2022-12-04" | 40 - .../target/tomcat/logs/access_log.2022-12-05" | 76 - .../org/apache/jsp/filterweb_jsp.class" | Bin 3991 -> 0 bytes .../org/apache/jsp/filterweb_jsp.java" | 85 - .../\347\254\254\345\205\253\347\253\240" | 0 20 files changed, 4816 deletions(-) delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/filterWork.iml" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/pom.xml" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/java/filter.java" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/java/filterServelet.java" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/WEB-INF/web.xml" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/filterweb.html" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/filterweb.jsp" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/webtest.jsp" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/classes/filter.class" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/classes/filterServelet.class" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/logging.properties" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/tomcat-users.xml" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/web.xml" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/logs/access_log.2022-12-04" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/logs/access_log.2022-12-05" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/work/Tomcat/localhost/filterWork/org/apache/jsp/filterweb_jsp.class" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/work/Tomcat/localhost/filterWork/org/apache/jsp/filterweb_jsp.java" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/\347\254\254\345\205\253\347\253\240" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/filterWork.iml" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/filterWork.iml" deleted file mode 100644 index 8136199..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/filterWork.iml" +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/pom.xml" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/pom.xml" deleted file mode 100644 index daeb51a..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/pom.xml" +++ /dev/null @@ -1,76 +0,0 @@ - - - 4.0.0 - - org.example - filterWork - 1.0-SNAPSHOT - war - - - 8 - 8 - - - - - - - org.mybatis - mybatis - 3.5.5 - - - - - mysql - mysql-connector-java - 8.0.30 - - - - - javax.servlet - javax.servlet-api - 3.1.0 - provided - - - - - - javax.servlet.jsp - jsp-api - 2.2 - provided - - - - - jstl - jstl - 1.2 - - - taglibs - standard - 1.1.2 - - - - - - - - - org.apache.tomcat.maven - tomcat7-maven-plugin - 2.2 - - - - - - diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/java/filter.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/java/filter.java" deleted file mode 100644 index 2c82a03..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/java/filter.java" +++ /dev/null @@ -1,35 +0,0 @@ -import javax.servlet.*; -import javax.servlet.annotation.WebFilter; -import java.io.IOException; - -//配置Filter拦截路径 -@WebFilter("/test") -public class filter implements Filter { - @Override - public void init(FilterConfig filterConfig) throws ServletException { - - } - - @Override - public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { - request.setCharacterEncoding("utf-8"); - String[] str = new String[]{"sb","lz","2货"}; - String name = request.getParameter("name"); -// name = name.replaceAll("sb","**"); -// name = name.replaceAll("lz","**"); - for (int i = 0; i < str.length; i++) { - String index = str[i]; - name = name.replaceAll(index,"**"); - } - System.out.print("过滤后输出:"); - System.out.println(name); - request.setAttribute("name",name); - - - chain.doFilter(request,response); - } - @Override - public void destroy() { - - } -} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/java/filterServelet.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/java/filterServelet.java" deleted file mode 100644 index bb346d1..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/java/filterServelet.java" +++ /dev/null @@ -1,26 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/test") -public class filterServelet extends HttpServlet { - @Override - public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { - String name = request.getParameter("name"); - System.out.print("原输入:"); - System.out.println(name); - - - } - - - @Override - public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { - this.doGet(request,response); - - } - -} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/WEB-INF/web.xml" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/WEB-INF/web.xml" deleted file mode 100644 index 948c100..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/WEB-INF/web.xml" +++ /dev/null @@ -1,7 +0,0 @@ - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/filterweb.html" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/filterweb.html" deleted file mode 100644 index 3b56155..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/filterweb.html" +++ /dev/null @@ -1,12 +0,0 @@ - - - - - Title - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/filterweb.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/filterweb.jsp" deleted file mode 100644 index e6945eb..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/filterweb.jsp" +++ /dev/null @@ -1,24 +0,0 @@ -<%-- - Created by IntelliJ IDEA. - User: 啥 - Date: 2022/12/4 - Time: 15:49 - To change this template use File | Settings | File Templates. ---%> -<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> -<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> - - - - 过滤器应用---敏感词过滤 - - - -

过滤器应用---敏感词过滤

-
- - -
- - - \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/webtest.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/webtest.jsp" deleted file mode 100644 index 55f167c..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/src/main/webapp/webtest.jsp" +++ /dev/null @@ -1,20 +0,0 @@ -<%-- - Created by IntelliJ IDEA. - User: 啥 - Date: 2022/12/5 - Time: 14:53 - To change this template use File | Settings | File Templates. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - - - 过滤器应用---敏感词过滤 - - -

过滤器应用---敏感词过滤

-
- - -
- - diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/classes/filter.class" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/classes/filter.class" deleted file mode 100644 index 8a163420ad795d4a605ddb868af16a203ef435ae..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1949 zcma)6U2_vv7=BK&A0b(22^Nio0u`Z6DZvWZ4@7EdwOD9vu(i~$O>){UZZ>sy(%)B(JOw^Nu-;|AVQ%Zxg{nZYg0nwT^3 zu8Da88c53=30{!$i$naaPAvAuA4vEds}$z^<tG+1Xc*?Qc-xn?_F1XFjsiriG~t9}Zu z?X4Dyq3?LBY*sjYrUgttt|id(v}!RH0{3NHm>fOLw}DJRFDo1Z-7TKGK~lIN^aYMA zw?n9Tc9r5CEQWUZ)0_5sq??HX2gk&1BCn7lzjlud7i)FDESZ}AnUzSc^Qvco+9)11z z{=>h1`NqV@7CynE1zRm8lucAD^nx&qxW7FmXG?cwnWOt$yTPThd(Dk8YK|oZh|oK= z!u0Ge>#??BjoDtoB^sY*}3!G`^)@}^a zzFc?hvK)6^f#Eh$`-A%ToA%IEycdMB%IT}sNm^Iz&F<%TH$vVJX;-OxlayU%3cs$L zIDOIXa>6b0Fdp(=mFgk&Is0sgu~gCh%q&+v6sP#~;-xs5=%Fpelj=Y=v5jN`#;?$pl3BgDq-BlblAbk- zquM|=wT%M_jOxkDMwgM(9({}MoYrLwjhZ<+5~XLDy5Yp6z=jaSi!em1LYc??9fRB;Z2tbH7FI8PZgMor-Yv*>sw zLXvobyon(buZq9P+esP?hF*+#yVO*0fOeI7p9sAXzF0lcz>>gax+d@%hPfYN;0T}5 JWrzS{{{qa5-)sN? diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/classes/filterServelet.class" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/classes/filterServelet.class" deleted file mode 100644 index 616569b0e237ec70cfac84028c085b4084753062..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1218 zcmah|$!^p@5PdzHXB=l?LLgxYYqrT^matBQgd&zmqYx!195^{ilNfpI!S0E|2XN)W zjSD9}01iPQln>xPB5~sn5U*`(k^z*tblFv}URAy7{_*?U9)MZQnJ{s=h`}z5V6=oW zj2AIsqJl|%OqnQQ+Q5tfTc9xK`mVYskR6{`70As88&aUR=K6B6SznXkQ)kVir(6rx z9dFeMUHzXrb85?t1o~<(Tu;exMTXnbld39^-v}N_C9phRd+BUDJ9fkvL-v+Z4f`<< z4W?sRzG})yRXf6>M&L)Xs+%;zBuQYbV_L#4Pz+_lAkev`v=-&?oq9aH9>VqKK}at-oR}OcW~E2RUc*a3-q-2Cop{U%KibQ4Yl;($gy5-U@ts5{0zgC-v z+*GrnLCpGJU48xHxaZ>nACk!@2V^0%_&mG$XVVJWeB}$oCw^qm!?O@OOX%gdh7y22 z9HZs)LO)SDxlWs-9hxj>z9O5!;%DT_`CSxfr*~l-5SC-0#V)!@(}O{tn!J(_q~xT+ zaSX%-hj0QXS)jz&ApKdKBECS+X`CVAY^#k0#oMRr?vY?0p7oS5!xbz3_VJ3h8 diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" deleted file mode 100644 index 4e0c00e..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" +++ /dev/null @@ -1,2 +0,0 @@ -filter.class -filterServelet.class diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" deleted file mode 100644 index a069c6d..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" +++ /dev/null @@ -1,2 +0,0 @@ -B:\javawork\web\filterWork\src\main\java\filter.java -B:\javawork\web\filterWork\src\main\java\filterServelet.java diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/logging.properties" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/logging.properties" deleted file mode 100644 index 76c9512..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/logging.properties" +++ /dev/null @@ -1,64 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler - -.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler - -############################################################ -# Handler specific properties. -# Describes specific configuration info for Handlers. -############################################################ - -1catalina.org.apache.juli.FileHandler.level = FINE -1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -1catalina.org.apache.juli.FileHandler.prefix = catalina. - -2localhost.org.apache.juli.FileHandler.level = FINE -2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -2localhost.org.apache.juli.FileHandler.prefix = localhost. - -3manager.org.apache.juli.FileHandler.level = FINE -3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -3manager.org.apache.juli.FileHandler.prefix = manager. - -4host-manager.org.apache.juli.FileHandler.level = FINE -4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -4host-manager.org.apache.juli.FileHandler.prefix = host-manager. - -java.util.logging.ConsoleHandler.level = FINE -java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter - - -############################################################ -# Facility specific properties. -# Provides extra control for each logger. -############################################################ - -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler - -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler - -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler - -# For example, set the org.apache.catalina.util.LifecycleBase logger to log -# each component that extends LifecycleBase changing state: -#org.apache.catalina.util.LifecycleBase.level = FINE - -# To see debug messages in TldLocationsCache, uncomment the following line: -#org.apache.jasper.compiler.TldLocationsCache.level = FINE diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/tomcat-users.xml" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/tomcat-users.xml" deleted file mode 100644 index 7114f5d..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/tomcat-users.xml" +++ /dev/null @@ -1,26 +0,0 @@ - - - - - diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/web.xml" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/web.xml" deleted file mode 100644 index cc8383c..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/conf/web.xml" +++ /dev/null @@ -1,4283 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - default - org.apache.catalina.servlets.DefaultServlet - - debug - 0 - - - listings - false - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jsp - org.apache.jasper.servlet.JspServlet - - fork - false - - - xpoweredBy - false - - 3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - default - / - - - - - jsp - *.jsp - *.jspx - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 30 - - - - - - - - - - - - 123 - application/vnd.lotus-1-2-3 - - - 3dml - text/vnd.in3d.3dml - - - 3g2 - video/3gpp2 - - - 3gp - video/3gpp - - - 7z - application/x-7z-compressed - - - aab - application/x-authorware-bin - - - aac - audio/x-aac - - - aam - application/x-authorware-map - - - aas - application/x-authorware-seg - - - abs - audio/x-mpeg - - - abw - application/x-abiword - - - ac - application/pkix-attr-cert - - - acc - application/vnd.americandynamics.acc - - - ace - application/x-ace-compressed - - - acu - application/vnd.acucobol - - - acutc - application/vnd.acucorp - - - adp - audio/adpcm - - - aep - application/vnd.audiograph - - - afm - application/x-font-type1 - - - afp - application/vnd.ibm.modcap - - - ahead - application/vnd.ahead.space - - - ai - application/postscript - - - aif - audio/x-aiff - - - aifc - audio/x-aiff - - - aiff - audio/x-aiff - - - aim - application/x-aim - - - air - application/vnd.adobe.air-application-installer-package+zip - - - ait - application/vnd.dvb.ait - - - ami - application/vnd.amiga.ami - - - anx - application/annodex - - - apk - application/vnd.android.package-archive - - - application - application/x-ms-application - - - apr - application/vnd.lotus-approach - - - art - image/x-jg - - - asc - application/pgp-signature - - - asf - video/x-ms-asf - - - asm - text/x-asm - - - aso - application/vnd.accpac.simply.aso - - - asx - video/x-ms-asf - - - atc - application/vnd.acucorp - - - atom - application/atom+xml - - - atomcat - application/atomcat+xml - - - atomsvc - application/atomsvc+xml - - - atx - application/vnd.antix.game-component - - - au - audio/basic - - - avi - video/x-msvideo - - - avx - video/x-rad-screenplay - - - aw - application/applixware - - - axa - audio/annodex - - - axv - video/annodex - - - azf - application/vnd.airzip.filesecure.azf - - - azs - application/vnd.airzip.filesecure.azs - - - azw - application/vnd.amazon.ebook - - - bat - application/x-msdownload - - - bcpio - application/x-bcpio - - - bdf - application/x-font-bdf - - - bdm - application/vnd.syncml.dm+wbxml - - - bed - application/vnd.realvnc.bed - - - bh2 - application/vnd.fujitsu.oasysprs - - - bin - application/octet-stream - - - bmi - application/vnd.bmi - - - bmp - image/bmp - - - body - text/html - - - book - application/vnd.framemaker - - - box - application/vnd.previewsystems.box - - - boz - application/x-bzip2 - - - bpk - application/octet-stream - - - btif - image/prs.btif - - - bz - application/x-bzip - - - bz2 - application/x-bzip2 - - - c - text/x-c - - - c11amc - application/vnd.cluetrust.cartomobile-config - - - c11amz - application/vnd.cluetrust.cartomobile-config-pkg - - - c4d - application/vnd.clonk.c4group - - - c4f - application/vnd.clonk.c4group - - - c4g - application/vnd.clonk.c4group - - - c4p - application/vnd.clonk.c4group - - - c4u - application/vnd.clonk.c4group - - - cab - application/vnd.ms-cab-compressed - - - cap - application/vnd.tcpdump.pcap - - - car - application/vnd.curl.car - - - cat - application/vnd.ms-pki.seccat - - - cc - text/x-c - - - cct - application/x-director - - - ccxml - application/ccxml+xml - - - cdbcmsg - application/vnd.contact.cmsg - - - cdf - application/x-cdf - - - cdkey - application/vnd.mediastation.cdkey - - - cdmia - application/cdmi-capability - - - cdmic - application/cdmi-container - - - cdmid - application/cdmi-domain - - - cdmio - application/cdmi-object - - - cdmiq - application/cdmi-queue - - - cdx - chemical/x-cdx - - - cdxml - application/vnd.chemdraw+xml - - - cdy - application/vnd.cinderella - - - cer - application/pkix-cert - - - cgm - image/cgm - - - chat - application/x-chat - - - chm - application/vnd.ms-htmlhelp - - - chrt - application/vnd.kde.kchart - - - cif - chemical/x-cif - - - cii - application/vnd.anser-web-certificate-issue-initiation - - - cil - application/vnd.ms-artgalry - - - cla - application/vnd.claymore - - - class - application/java - - - clkk - application/vnd.crick.clicker.keyboard - - - clkp - application/vnd.crick.clicker.palette - - - clkt - application/vnd.crick.clicker.template - - - clkw - application/vnd.crick.clicker.wordbank - - - clkx - application/vnd.crick.clicker - - - clp - application/x-msclip - - - cmc - application/vnd.cosmocaller - - - cmdf - chemical/x-cmdf - - - cml - chemical/x-cml - - - cmp - application/vnd.yellowriver-custom-menu - - - cmx - image/x-cmx - - - cod - application/vnd.rim.cod - - - com - application/x-msdownload - - - conf - text/plain - - - cpio - application/x-cpio - - - cpp - text/x-c - - - cpt - application/mac-compactpro - - - crd - application/x-mscardfile - - - crl - application/pkix-crl - - - crt - application/x-x509-ca-cert - - - cryptonote - application/vnd.rig.cryptonote - - - csh - application/x-csh - - - csml - chemical/x-csml - - - csp - application/vnd.commonspace - - - css - text/css - - - cst - application/x-director - - - csv - text/csv - - - cu - application/cu-seeme - - - curl - text/vnd.curl - - - cww - application/prs.cww - - - cxt - application/x-director - - - cxx - text/x-c - - - dae - model/vnd.collada+xml - - - daf - application/vnd.mobius.daf - - - dataless - application/vnd.fdsn.seed - - - davmount - application/davmount+xml - - - dcr - application/x-director - - - dcurl - text/vnd.curl.dcurl - - - dd2 - application/vnd.oma.dd2+xml - - - ddd - application/vnd.fujixerox.ddd - - - deb - application/x-debian-package - - - def - text/plain - - - deploy - application/octet-stream - - - der - application/x-x509-ca-cert - - - dfac - application/vnd.dreamfactory - - - dib - image/bmp - - - dic - text/x-c - - - dir - application/x-director - - - dis - application/vnd.mobius.dis - - - dist - application/octet-stream - - - distz - application/octet-stream - - - djv - image/vnd.djvu - - - djvu - image/vnd.djvu - - - dll - application/x-msdownload - - - dmg - application/octet-stream - - - dmp - application/vnd.tcpdump.pcap - - - dms - application/octet-stream - - - dna - application/vnd.dna - - - doc - application/msword - - - docm - application/vnd.ms-word.document.macroenabled.12 - - - docx - application/vnd.openxmlformats-officedocument.wordprocessingml.document - - - dot - application/msword - - - dotm - application/vnd.ms-word.template.macroenabled.12 - - - dotx - application/vnd.openxmlformats-officedocument.wordprocessingml.template - - - dp - application/vnd.osgi.dp - - - dpg - application/vnd.dpgraph - - - dra - audio/vnd.dra - - - dsc - text/prs.lines.tag - - - dssc - application/dssc+der - - - dtb - application/x-dtbook+xml - - - dtd - application/xml-dtd - - - dts - audio/vnd.dts - - - dtshd - audio/vnd.dts.hd - - - dump - application/octet-stream - - - dv - video/x-dv - - - dvb - video/vnd.dvb.file - - - dvi - application/x-dvi - - - dwf - model/vnd.dwf - - - dwg - image/vnd.dwg - - - dxf - image/vnd.dxf - - - dxp - application/vnd.spotfire.dxp - - - dxr - application/x-director - - - ecelp4800 - audio/vnd.nuera.ecelp4800 - - - ecelp7470 - audio/vnd.nuera.ecelp7470 - - - ecelp9600 - audio/vnd.nuera.ecelp9600 - - - ecma - application/ecmascript - - - edm - application/vnd.novadigm.edm - - - edx - application/vnd.novadigm.edx - - - efif - application/vnd.picsel - - - ei6 - application/vnd.pg.osasli - - - elc - application/octet-stream - - - eml - message/rfc822 - - - emma - application/emma+xml - - - eol - audio/vnd.digital-winds - - - eot - application/vnd.ms-fontobject - - - eps - application/postscript - - - epub - application/epub+zip - - - es3 - application/vnd.eszigno3+xml - - - esf - application/vnd.epson.esf - - - et3 - application/vnd.eszigno3+xml - - - etx - text/x-setext - - - exe - application/octet-stream - - - exi - application/exi - - - ext - application/vnd.novadigm.ext - - - ez - application/andrew-inset - - - ez2 - application/vnd.ezpix-album - - - ez3 - application/vnd.ezpix-package - - - f - text/x-fortran - - - f4v - video/x-f4v - - - f77 - text/x-fortran - - - f90 - text/x-fortran - - - fbs - image/vnd.fastbidsheet - - - fcs - application/vnd.isac.fcs - - - fdf - application/vnd.fdf - - - fe_launch - application/vnd.denovo.fcselayout-link - - - fg5 - application/vnd.fujitsu.oasysgp - - - fgd - application/x-director - - - fh - image/x-freehand - - - fh4 - image/x-freehand - - - fh5 - image/x-freehand - - - fh7 - image/x-freehand - - - fhc - image/x-freehand - - - fig - application/x-xfig - - - flac - audio/flac - - - fli - video/x-fli - - - flo - application/vnd.micrografx.flo - - - flv - video/x-flv - - - flw - application/vnd.kde.kivio - - - flx - text/vnd.fmi.flexstor - - - fly - text/vnd.fly - - - fm - application/vnd.framemaker - - - fnc - application/vnd.frogans.fnc - - - for - text/x-fortran - - - fpx - image/vnd.fpx - - - frame - application/vnd.framemaker - - - fsc - application/vnd.fsc.weblaunch - - - fst - image/vnd.fst - - - ftc - application/vnd.fluxtime.clip - - - fti - application/vnd.anser-web-funds-transfer-initiation - - - fvt - video/vnd.fvt - - - fxp - application/vnd.adobe.fxp - - - fxpl - application/vnd.adobe.fxp - - - fzs - application/vnd.fuzzysheet - - - g2w - application/vnd.geoplan - - - g3 - image/g3fax - - - g3w - application/vnd.geospace - - - gac - application/vnd.groove-account - - - gbr - application/rpki-ghostbusters - - - gdl - model/vnd.gdl - - - geo - application/vnd.dynageo - - - gex - application/vnd.geometry-explorer - - - ggb - application/vnd.geogebra.file - - - ggt - application/vnd.geogebra.tool - - - ghf - application/vnd.groove-help - - - gif - image/gif - - - gim - application/vnd.groove-identity-message - - - gmx - application/vnd.gmx - - - gnumeric - application/x-gnumeric - - - gph - application/vnd.flographit - - - gqf - application/vnd.grafeq - - - gqs - application/vnd.grafeq - - - gram - application/srgs - - - gre - application/vnd.geometry-explorer - - - grv - application/vnd.groove-injector - - - grxml - application/srgs+xml - - - gsf - application/x-font-ghostscript - - - gtar - application/x-gtar - - - gtm - application/vnd.groove-tool-message - - - gtw - model/vnd.gtw - - - gv - text/vnd.graphviz - - - gxt - application/vnd.geonext - - - gz - application/x-gzip - - - h - text/x-c - - - h261 - video/h261 - - - h263 - video/h263 - - - h264 - video/h264 - - - hal - application/vnd.hal+xml - - - hbci - application/vnd.hbci - - - hdf - application/x-hdf - - - hh - text/x-c - - - hlp - application/winhlp - - - hpgl - application/vnd.hp-hpgl - - - hpid - application/vnd.hp-hpid - - - hps - application/vnd.hp-hps - - - hqx - application/mac-binhex40 - - - htc - text/x-component - - - htke - application/vnd.kenameaapp - - - htm - text/html - - - html - text/html - - - hvd - application/vnd.yamaha.hv-dic - - - hvp - application/vnd.yamaha.hv-voice - - - hvs - application/vnd.yamaha.hv-script - - - i2g - application/vnd.intergeo - - - icc - application/vnd.iccprofile - - - ice - x-conference/x-cooltalk - - - icm - application/vnd.iccprofile - - - ico - image/x-icon - - - ics - text/calendar - - - ief - image/ief - - - ifb - text/calendar - - - ifm - application/vnd.shana.informed.formdata - - - iges - model/iges - - - igl - application/vnd.igloader - - - igm - application/vnd.insors.igm - - - igs - model/iges - - - igx - application/vnd.micrografx.igx - - - iif - application/vnd.shana.informed.interchange - - - imp - application/vnd.accpac.simply.imp - - - ims - application/vnd.ms-ims - - - in - text/plain - - - ink - application/inkml+xml - - - inkml - application/inkml+xml - - - iota - application/vnd.astraea-software.iota - - - ipfix - application/ipfix - - - ipk - application/vnd.shana.informed.package - - - irm - application/vnd.ibm.rights-management - - - irp - application/vnd.irepository.package+xml - - - iso - application/octet-stream - - - itp - application/vnd.shana.informed.formtemplate - - - ivp - application/vnd.immervision-ivp - - - ivu - application/vnd.immervision-ivu - - - jad - text/vnd.sun.j2me.app-descriptor - - - jam - application/vnd.jam - - - jar - application/java-archive - - - java - text/x-java-source - - - jisp - application/vnd.jisp - - - jlt - application/vnd.hp-jlyt - - - jnlp - application/x-java-jnlp-file - - - joda - application/vnd.joost.joda-archive - - - jpe - image/jpeg - - - jpeg - image/jpeg - - - jpg - image/jpeg - - - jpgm - video/jpm - - - jpgv - video/jpeg - - - jpm - video/jpm - - - js - application/javascript - - - jsf - text/plain - - - json - application/json - - - jspf - text/plain - - - kar - audio/midi - - - karbon - application/vnd.kde.karbon - - - kfo - application/vnd.kde.kformula - - - kia - application/vnd.kidspiration - - - kml - application/vnd.google-earth.kml+xml - - - kmz - application/vnd.google-earth.kmz - - - kne - application/vnd.kinar - - - knp - application/vnd.kinar - - - kon - application/vnd.kde.kontour - - - kpr - application/vnd.kde.kpresenter - - - kpt - application/vnd.kde.kpresenter - - - ksp - application/vnd.kde.kspread - - - ktr - application/vnd.kahootz - - - ktx - image/ktx - - - ktz - application/vnd.kahootz - - - kwd - application/vnd.kde.kword - - - kwt - application/vnd.kde.kword - - - lasxml - application/vnd.las.las+xml - - - latex - application/x-latex - - - lbd - application/vnd.llamagraphics.life-balance.desktop - - - lbe - application/vnd.llamagraphics.life-balance.exchange+xml - - - les - application/vnd.hhe.lesson-player - - - lha - application/octet-stream - - - link66 - application/vnd.route66.link66+xml - - - list - text/plain - - - list3820 - application/vnd.ibm.modcap - - - listafp - application/vnd.ibm.modcap - - - log - text/plain - - - lostxml - application/lost+xml - - - lrf - application/octet-stream - - - lrm - application/vnd.ms-lrm - - - ltf - application/vnd.frogans.ltf - - - lvp - audio/vnd.lucent.voice - - - lwp - application/vnd.lotus-wordpro - - - lzh - application/octet-stream - - - m13 - application/x-msmediaview - - - m14 - application/x-msmediaview - - - m1v - video/mpeg - - - m21 - application/mp21 - - - m2a - audio/mpeg - - - m2v - video/mpeg - - - m3a - audio/mpeg - - - m3u - audio/x-mpegurl - - - m3u8 - application/vnd.apple.mpegurl - - - m4a - audio/mp4 - - - m4b - audio/mp4 - - - m4r - audio/mp4 - - - m4u - video/vnd.mpegurl - - - m4v - video/mp4 - - - ma - application/mathematica - - - mac - image/x-macpaint - - - mads - application/mads+xml - - - mag - application/vnd.ecowin.chart - - - maker - application/vnd.framemaker - - - man - text/troff - - - mathml - application/mathml+xml - - - mb - application/mathematica - - - mbk - application/vnd.mobius.mbk - - - mbox - application/mbox - - - mc1 - application/vnd.medcalcdata - - - mcd - application/vnd.mcd - - - mcurl - text/vnd.curl.mcurl - - - mdb - application/x-msaccess - - - mdi - image/vnd.ms-modi - - - me - text/troff - - - mesh - model/mesh - - - meta4 - application/metalink4+xml - - - mets - application/mets+xml - - - mfm - application/vnd.mfmp - - - mft - application/rpki-manifest - - - mgp - application/vnd.osgeo.mapguide.package - - - mgz - application/vnd.proteus.magazine - - - mid - audio/midi - - - midi - audio/midi - - - mif - application/x-mif - - - mime - message/rfc822 - - - mj2 - video/mj2 - - - mjp2 - video/mj2 - - - mlp - application/vnd.dolby.mlp - - - mmd - application/vnd.chipnuts.karaoke-mmd - - - mmf - application/vnd.smaf - - - mmr - image/vnd.fujixerox.edmics-mmr - - - mny - application/x-msmoney - - - mobi - application/x-mobipocket-ebook - - - mods - application/mods+xml - - - mov - video/quicktime - - - movie - video/x-sgi-movie - - - mp1 - audio/mpeg - - - mp2 - audio/mpeg - - - mp21 - application/mp21 - - - mp2a - audio/mpeg - - - mp3 - audio/mpeg - - - mp4 - video/mp4 - - - mp4a - audio/mp4 - - - mp4s - application/mp4 - - - mp4v - video/mp4 - - - mpa - audio/mpeg - - - mpc - application/vnd.mophun.certificate - - - mpe - video/mpeg - - - mpeg - video/mpeg - - - mpega - audio/x-mpeg - - - mpg - video/mpeg - - - mpg4 - video/mp4 - - - mpga - audio/mpeg - - - mpkg - application/vnd.apple.installer+xml - - - mpm - application/vnd.blueice.multipass - - - mpn - application/vnd.mophun.application - - - mpp - application/vnd.ms-project - - - mpt - application/vnd.ms-project - - - mpv2 - video/mpeg2 - - - mpy - application/vnd.ibm.minipay - - - mqy - application/vnd.mobius.mqy - - - mrc - application/marc - - - mrcx - application/marcxml+xml - - - ms - text/troff - - - mscml - application/mediaservercontrol+xml - - - mseed - application/vnd.fdsn.mseed - - - mseq - application/vnd.mseq - - - msf - application/vnd.epson.msf - - - msh - model/mesh - - - msi - application/x-msdownload - - - msl - application/vnd.mobius.msl - - - msty - application/vnd.muvee.style - - - mts - model/vnd.mts - - - mus - application/vnd.musician - - - musicxml - application/vnd.recordare.musicxml+xml - - - mvb - application/x-msmediaview - - - mwf - application/vnd.mfer - - - mxf - application/mxf - - - mxl - application/vnd.recordare.musicxml - - - mxml - application/xv+xml - - - mxs - application/vnd.triscape.mxs - - - mxu - video/vnd.mpegurl - - - n-gage - application/vnd.nokia.n-gage.symbian.install - - - n3 - text/n3 - - - nb - application/mathematica - - - nbp - application/vnd.wolfram.player - - - nc - application/x-netcdf - - - ncx - application/x-dtbncx+xml - - - ngdat - application/vnd.nokia.n-gage.data - - - nlu - application/vnd.neurolanguage.nlu - - - nml - application/vnd.enliven - - - nnd - application/vnd.noblenet-directory - - - nns - application/vnd.noblenet-sealer - - - nnw - application/vnd.noblenet-web - - - npx - image/vnd.net-fpx - - - nsf - application/vnd.lotus-notes - - - oa2 - application/vnd.fujitsu.oasys2 - - - oa3 - application/vnd.fujitsu.oasys3 - - - oas - application/vnd.fujitsu.oasys - - - obd - application/x-msbinder - - - oda - application/oda - - - - odb - application/vnd.oasis.opendocument.database - - - - odc - application/vnd.oasis.opendocument.chart - - - - odf - application/vnd.oasis.opendocument.formula - - - odft - application/vnd.oasis.opendocument.formula-template - - - - odg - application/vnd.oasis.opendocument.graphics - - - - odi - application/vnd.oasis.opendocument.image - - - - odm - application/vnd.oasis.opendocument.text-master - - - - odp - application/vnd.oasis.opendocument.presentation - - - - ods - application/vnd.oasis.opendocument.spreadsheet - - - - odt - application/vnd.oasis.opendocument.text - - - oga - audio/ogg - - - ogg - audio/ogg - - - ogv - video/ogg - - - - ogx - application/ogg - - - onepkg - application/onenote - - - onetmp - application/onenote - - - onetoc - application/onenote - - - onetoc2 - application/onenote - - - opf - application/oebps-package+xml - - - oprc - application/vnd.palm - - - org - application/vnd.lotus-organizer - - - osf - application/vnd.yamaha.openscoreformat - - - osfpvg - application/vnd.yamaha.openscoreformat.osfpvg+xml - - - otc - application/vnd.oasis.opendocument.chart-template - - - otf - application/x-font-otf - - - - otg - application/vnd.oasis.opendocument.graphics-template - - - - oth - application/vnd.oasis.opendocument.text-web - - - oti - application/vnd.oasis.opendocument.image-template - - - - otp - application/vnd.oasis.opendocument.presentation-template - - - - ots - application/vnd.oasis.opendocument.spreadsheet-template - - - - ott - application/vnd.oasis.opendocument.text-template - - - oxps - application/oxps - - - oxt - application/vnd.openofficeorg.extension - - - p - text/x-pascal - - - p10 - application/pkcs10 - - - p12 - application/x-pkcs12 - - - p7b - application/x-pkcs7-certificates - - - p7c - application/pkcs7-mime - - - p7m - application/pkcs7-mime - - - p7r - application/x-pkcs7-certreqresp - - - p7s - application/pkcs7-signature - - - p8 - application/pkcs8 - - - pas - text/x-pascal - - - paw - application/vnd.pawaafile - - - pbd - application/vnd.powerbuilder6 - - - pbm - image/x-portable-bitmap - - - pcap - application/vnd.tcpdump.pcap - - - pcf - application/x-font-pcf - - - pcl - application/vnd.hp-pcl - - - pclxl - application/vnd.hp-pclxl - - - pct - image/pict - - - pcurl - application/vnd.curl.pcurl - - - pcx - image/x-pcx - - - pdb - application/vnd.palm - - - pdf - application/pdf - - - pfa - application/x-font-type1 - - - pfb - application/x-font-type1 - - - pfm - application/x-font-type1 - - - pfr - application/font-tdpfr - - - pfx - application/x-pkcs12 - - - pgm - image/x-portable-graymap - - - pgn - application/x-chess-pgn - - - pgp - application/pgp-encrypted - - - pic - image/pict - - - pict - image/pict - - - pkg - application/octet-stream - - - pki - application/pkixcmp - - - pkipath - application/pkix-pkipath - - - plb - application/vnd.3gpp.pic-bw-large - - - plc - application/vnd.mobius.plc - - - plf - application/vnd.pocketlearn - - - pls - audio/x-scpls - - - pml - application/vnd.ctc-posml - - - png - image/png - - - pnm - image/x-portable-anymap - - - pnt - image/x-macpaint - - - portpkg - application/vnd.macports.portpkg - - - pot - application/vnd.ms-powerpoint - - - potm - application/vnd.ms-powerpoint.template.macroenabled.12 - - - potx - application/vnd.openxmlformats-officedocument.presentationml.template - - - ppam - application/vnd.ms-powerpoint.addin.macroenabled.12 - - - ppd - application/vnd.cups-ppd - - - ppm - image/x-portable-pixmap - - - pps - application/vnd.ms-powerpoint - - - ppsm - application/vnd.ms-powerpoint.slideshow.macroenabled.12 - - - ppsx - application/vnd.openxmlformats-officedocument.presentationml.slideshow - - - ppt - application/vnd.ms-powerpoint - - - pptm - application/vnd.ms-powerpoint.presentation.macroenabled.12 - - - pptx - application/vnd.openxmlformats-officedocument.presentationml.presentation - - - pqa - application/vnd.palm - - - prc - application/x-mobipocket-ebook - - - pre - application/vnd.lotus-freelance - - - prf - application/pics-rules - - - ps - application/postscript - - - psb - application/vnd.3gpp.pic-bw-small - - - psd - image/vnd.adobe.photoshop - - - psf - application/x-font-linux-psf - - - pskcxml - application/pskc+xml - - - ptid - application/vnd.pvi.ptid1 - - - pub - application/x-mspublisher - - - pvb - application/vnd.3gpp.pic-bw-var - - - pwn - application/vnd.3m.post-it-notes - - - pya - audio/vnd.ms-playready.media.pya - - - pyv - video/vnd.ms-playready.media.pyv - - - qam - application/vnd.epson.quickanime - - - qbo - application/vnd.intu.qbo - - - qfx - application/vnd.intu.qfx - - - qps - application/vnd.publishare-delta-tree - - - qt - video/quicktime - - - qti - image/x-quicktime - - - qtif - image/x-quicktime - - - qwd - application/vnd.quark.quarkxpress - - - qwt - application/vnd.quark.quarkxpress - - - qxb - application/vnd.quark.quarkxpress - - - qxd - application/vnd.quark.quarkxpress - - - qxl - application/vnd.quark.quarkxpress - - - qxt - application/vnd.quark.quarkxpress - - - ra - audio/x-pn-realaudio - - - ram - audio/x-pn-realaudio - - - rar - application/x-rar-compressed - - - ras - image/x-cmu-raster - - - rcprofile - application/vnd.ipunplugged.rcprofile - - - rdf - application/rdf+xml - - - rdz - application/vnd.data-vision.rdz - - - rep - application/vnd.businessobjects - - - res - application/x-dtbresource+xml - - - rgb - image/x-rgb - - - rif - application/reginfo+xml - - - rip - audio/vnd.rip - - - rl - application/resource-lists+xml - - - rlc - image/vnd.fujixerox.edmics-rlc - - - rld - application/resource-lists-diff+xml - - - rm - application/vnd.rn-realmedia - - - rmi - audio/midi - - - rmp - audio/x-pn-realaudio-plugin - - - rms - application/vnd.jcp.javame.midlet-rms - - - rnc - application/relax-ng-compact-syntax - - - roa - application/rpki-roa - - - roff - text/troff - - - rp9 - application/vnd.cloanto.rp9 - - - rpss - application/vnd.nokia.radio-presets - - - rpst - application/vnd.nokia.radio-preset - - - rq - application/sparql-query - - - rs - application/rls-services+xml - - - rsd - application/rsd+xml - - - rss - application/rss+xml - - - rtf - application/rtf - - - rtx - text/richtext - - - s - text/x-asm - - - saf - application/vnd.yamaha.smaf-audio - - - sbml - application/sbml+xml - - - sc - application/vnd.ibm.secure-container - - - scd - application/x-msschedule - - - scm - application/vnd.lotus-screencam - - - scq - application/scvp-cv-request - - - scs - application/scvp-cv-response - - - scurl - text/vnd.curl.scurl - - - sda - application/vnd.stardivision.draw - - - sdc - application/vnd.stardivision.calc - - - sdd - application/vnd.stardivision.impress - - - sdkd - application/vnd.solent.sdkm+xml - - - sdkm - application/vnd.solent.sdkm+xml - - - sdp - application/sdp - - - sdw - application/vnd.stardivision.writer - - - see - application/vnd.seemail - - - seed - application/vnd.fdsn.seed - - - sema - application/vnd.sema - - - semd - application/vnd.semd - - - semf - application/vnd.semf - - - ser - application/java-serialized-object - - - setpay - application/set-payment-initiation - - - setreg - application/set-registration-initiation - - - sfd-hdstx - application/vnd.hydrostatix.sof-data - - - sfs - application/vnd.spotfire.sfs - - - sgl - application/vnd.stardivision.writer-global - - - sgm - text/sgml - - - sgml - text/sgml - - - sh - application/x-sh - - - shar - application/x-shar - - - shf - application/shf+xml - - - - sig - application/pgp-signature - - - silo - model/mesh - - - sis - application/vnd.symbian.install - - - sisx - application/vnd.symbian.install - - - sit - application/x-stuffit - - - sitx - application/x-stuffitx - - - skd - application/vnd.koan - - - skm - application/vnd.koan - - - skp - application/vnd.koan - - - skt - application/vnd.koan - - - sldm - application/vnd.ms-powerpoint.slide.macroenabled.12 - - - sldx - application/vnd.openxmlformats-officedocument.presentationml.slide - - - slt - application/vnd.epson.salt - - - sm - application/vnd.stepmania.stepchart - - - smf - application/vnd.stardivision.math - - - smi - application/smil+xml - - - smil - application/smil+xml - - - smzip - application/vnd.stepmania.package - - - snd - audio/basic - - - snf - application/x-font-snf - - - so - application/octet-stream - - - spc - application/x-pkcs7-certificates - - - spf - application/vnd.yamaha.smaf-phrase - - - spl - application/x-futuresplash - - - spot - text/vnd.in3d.spot - - - spp - application/scvp-vp-response - - - spq - application/scvp-vp-request - - - spx - audio/ogg - - - src - application/x-wais-source - - - sru - application/sru+xml - - - srx - application/sparql-results+xml - - - sse - application/vnd.kodak-descriptor - - - ssf - application/vnd.epson.ssf - - - ssml - application/ssml+xml - - - st - application/vnd.sailingtracker.track - - - stc - application/vnd.sun.xml.calc.template - - - std - application/vnd.sun.xml.draw.template - - - stf - application/vnd.wt.stf - - - sti - application/vnd.sun.xml.impress.template - - - stk - application/hyperstudio - - - stl - application/vnd.ms-pki.stl - - - str - application/vnd.pg.format - - - stw - application/vnd.sun.xml.writer.template - - - sub - text/vnd.dvb.subtitle - - - sus - application/vnd.sus-calendar - - - susp - application/vnd.sus-calendar - - - sv4cpio - application/x-sv4cpio - - - sv4crc - application/x-sv4crc - - - svc - application/vnd.dvb.service - - - svd - application/vnd.svd - - - svg - image/svg+xml - - - svgz - image/svg+xml - - - swa - application/x-director - - - swf - application/x-shockwave-flash - - - swi - application/vnd.aristanetworks.swi - - - sxc - application/vnd.sun.xml.calc - - - sxd - application/vnd.sun.xml.draw - - - sxg - application/vnd.sun.xml.writer.global - - - sxi - application/vnd.sun.xml.impress - - - sxm - application/vnd.sun.xml.math - - - sxw - application/vnd.sun.xml.writer - - - t - text/troff - - - taglet - application/vnd.mynfc - - - tao - application/vnd.tao.intent-module-archive - - - tar - application/x-tar - - - tcap - application/vnd.3gpp2.tcap - - - tcl - application/x-tcl - - - teacher - application/vnd.smart.teacher - - - tei - application/tei+xml - - - teicorpus - application/tei+xml - - - tex - application/x-tex - - - texi - application/x-texinfo - - - texinfo - application/x-texinfo - - - text - text/plain - - - tfi - application/thraud+xml - - - tfm - application/x-tex-tfm - - - thmx - application/vnd.ms-officetheme - - - tif - image/tiff - - - tiff - image/tiff - - - tmo - application/vnd.tmobile-livetv - - - torrent - application/x-bittorrent - - - tpl - application/vnd.groove-tool-template - - - tpt - application/vnd.trid.tpt - - - tr - text/troff - - - tra - application/vnd.trueapp - - - trm - application/x-msterminal - - - tsd - application/timestamped-data - - - tsv - text/tab-separated-values - - - ttc - application/x-font-ttf - - - ttf - application/x-font-ttf - - - ttl - text/turtle - - - twd - application/vnd.simtech-mindmapper - - - twds - application/vnd.simtech-mindmapper - - - txd - application/vnd.genomatix.tuxedo - - - txf - application/vnd.mobius.txf - - - txt - text/plain - - - u32 - application/x-authorware-bin - - - udeb - application/x-debian-package - - - ufd - application/vnd.ufdl - - - ufdl - application/vnd.ufdl - - - ulw - audio/basic - - - umj - application/vnd.umajin - - - unityweb - application/vnd.unity - - - uoml - application/vnd.uoml+xml - - - uri - text/uri-list - - - uris - text/uri-list - - - urls - text/uri-list - - - ustar - application/x-ustar - - - utz - application/vnd.uiq.theme - - - uu - text/x-uuencode - - - uva - audio/vnd.dece.audio - - - uvd - application/vnd.dece.data - - - uvf - application/vnd.dece.data - - - uvg - image/vnd.dece.graphic - - - uvh - video/vnd.dece.hd - - - uvi - image/vnd.dece.graphic - - - uvm - video/vnd.dece.mobile - - - uvp - video/vnd.dece.pd - - - uvs - video/vnd.dece.sd - - - uvt - application/vnd.dece.ttml+xml - - - uvu - video/vnd.uvvu.mp4 - - - uvv - video/vnd.dece.video - - - uvva - audio/vnd.dece.audio - - - uvvd - application/vnd.dece.data - - - uvvf - application/vnd.dece.data - - - uvvg - image/vnd.dece.graphic - - - uvvh - video/vnd.dece.hd - - - uvvi - image/vnd.dece.graphic - - - uvvm - video/vnd.dece.mobile - - - uvvp - video/vnd.dece.pd - - - uvvs - video/vnd.dece.sd - - - uvvt - application/vnd.dece.ttml+xml - - - uvvu - video/vnd.uvvu.mp4 - - - uvvv - video/vnd.dece.video - - - uvvx - application/vnd.dece.unspecified - - - uvvz - application/vnd.dece.zip - - - uvx - application/vnd.dece.unspecified - - - uvz - application/vnd.dece.zip - - - vcard - text/vcard - - - vcd - application/x-cdlink - - - vcf - text/x-vcard - - - vcg - application/vnd.groove-vcard - - - vcs - text/x-vcalendar - - - vcx - application/vnd.vcx - - - vis - application/vnd.visionary - - - viv - video/vnd.vivo - - - vor - application/vnd.stardivision.writer - - - vox - application/x-authorware-bin - - - vrml - model/vrml - - - vsd - application/vnd.visio - - - vsf - application/vnd.vsf - - - vss - application/vnd.visio - - - vst - application/vnd.visio - - - vsw - application/vnd.visio - - - vtu - model/vnd.vtu - - - vxml - application/voicexml+xml - - - w3d - application/x-director - - - wad - application/x-doom - - - wav - audio/x-wav - - - wax - audio/x-ms-wax - - - - wbmp - image/vnd.wap.wbmp - - - wbs - application/vnd.criticaltools.wbs+xml - - - wbxml - application/vnd.wap.wbxml - - - wcm - application/vnd.ms-works - - - wdb - application/vnd.ms-works - - - weba - audio/webm - - - webm - video/webm - - - webp - image/webp - - - wg - application/vnd.pmi.widget - - - wgt - application/widget - - - wks - application/vnd.ms-works - - - wm - video/x-ms-wm - - - wma - audio/x-ms-wma - - - wmd - application/x-ms-wmd - - - wmf - application/x-msmetafile - - - - wml - text/vnd.wap.wml - - - - wmlc - application/vnd.wap.wmlc - - - - wmls - text/vnd.wap.wmlscript - - - - wmlsc - application/vnd.wap.wmlscriptc - - - wmv - video/x-ms-wmv - - - wmx - video/x-ms-wmx - - - wmz - application/x-ms-wmz - - - woff - application/x-font-woff - - - wpd - application/vnd.wordperfect - - - wpl - application/vnd.ms-wpl - - - wps - application/vnd.ms-works - - - wqd - application/vnd.wqd - - - wri - application/x-mswrite - - - wrl - model/vrml - - - wsdl - application/wsdl+xml - - - wspolicy - application/wspolicy+xml - - - wtb - application/vnd.webturbo - - - wvx - video/x-ms-wvx - - - x32 - application/x-authorware-bin - - - x3d - application/vnd.hzn-3d-crossword - - - xap - application/x-silverlight-app - - - xar - application/vnd.xara - - - xbap - application/x-ms-xbap - - - xbd - application/vnd.fujixerox.docuworks.binder - - - xbm - image/x-xbitmap - - - xdf - application/xcap-diff+xml - - - xdm - application/vnd.syncml.dm+xml - - - xdp - application/vnd.adobe.xdp+xml - - - xdssc - application/dssc+xml - - - xdw - application/vnd.fujixerox.docuworks - - - xenc - application/xenc+xml - - - xer - application/patch-ops-error+xml - - - xfdf - application/vnd.adobe.xfdf - - - xfdl - application/vnd.xfdl - - - xht - application/xhtml+xml - - - xhtml - application/xhtml+xml - - - xhvml - application/xv+xml - - - xif - image/vnd.xiff - - - xla - application/vnd.ms-excel - - - xlam - application/vnd.ms-excel.addin.macroenabled.12 - - - xlc - application/vnd.ms-excel - - - xlm - application/vnd.ms-excel - - - xls - application/vnd.ms-excel - - - xlsb - application/vnd.ms-excel.sheet.binary.macroenabled.12 - - - xlsm - application/vnd.ms-excel.sheet.macroenabled.12 - - - xlsx - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - - - xlt - application/vnd.ms-excel - - - xltm - application/vnd.ms-excel.template.macroenabled.12 - - - xltx - application/vnd.openxmlformats-officedocument.spreadsheetml.template - - - xlw - application/vnd.ms-excel - - - xml - application/xml - - - xo - application/vnd.olpc-sugar - - - xop - application/xop+xml - - - xpi - application/x-xpinstall - - - xpm - image/x-xpixmap - - - xpr - application/vnd.is-xpr - - - xps - application/vnd.ms-xpsdocument - - - xpw - application/vnd.intercon.formnet - - - xpx - application/vnd.intercon.formnet - - - xsl - application/xml - - - xslt - application/xslt+xml - - - xsm - application/vnd.syncml+xml - - - xspf - application/xspf+xml - - - xul - application/vnd.mozilla.xul+xml - - - xvm - application/xv+xml - - - xvml - application/xv+xml - - - xwd - image/x-xwindowdump - - - xyz - chemical/x-xyz - - - yang - application/yang - - - yin - application/yin+xml - - - z - application/x-compress - - - Z - application/x-compress - - - zaz - application/vnd.zzazz.deck+xml - - - zip - application/zip - - - zir - application/vnd.zul - - - zirz - application/vnd.zul - - - zmm - application/vnd.handheld-entertainment+xml - - - - - - - - - - - - - - - - - - index.html - index.htm - index.jsp - - - diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/logs/access_log.2022-12-04" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/logs/access_log.2022-12-04" deleted file mode 100644 index 7cdbd27..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/logs/access_log.2022-12-04" +++ /dev/null @@ -1,40 +0,0 @@ -0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:27:21 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-2 0 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:27:21 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-3 9 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:27:44 +0800] "GET /filterWork/filter.jsp HTTP/1.1" 404 993 http-bio-8080-exec-4 1 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:27:49 +0800] "GET /filterWork/filter.http HTTP/1.1" 404 995 http-bio-8080-exec-5 1 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:27:58 +0800] "GET /filterWork/filter.html HTTP/1.1" 404 995 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:30:52 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-2 0 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:30:52 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-3 8 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:31:05 +0800] "GET /filterWork/filter.html HTTP/1.1" 404 995 http-bio-8080-exec-4 1 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:31:12 +0800] "GET /filterWork/filter.jsp HTTP/1.1" 404 993 http-bio-8080-exec-5 1 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:43:12 +0800] "GET /filterWork/filter.jsp HTTP/1.1" 404 993 http-bio-8080-exec-1 26 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:43:21 +0800] "GET /filterWork/filter.html HTTP/1.1" 500 1761 http-bio-8080-exec-3 5 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:16:52:41 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 200 177 http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:01:42 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 200 209 http-bio-8080-exec-7 4 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:34:10 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:34:10 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-3 9 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:34:15 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 200 202 http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:35:11 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 304 - http-bio-8080-exec-1 23 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:35:15 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 304 - http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:35:16 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 304 - http-bio-8080-exec-4 1 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:35:59 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 304 - http-bio-8080-exec-5 1 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:36:04 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 304 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:17:36:10 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 304 - http-bio-8080-exec-7 2 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:21:34:32 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-2 0 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:21:34:32 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-3 12 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:21:34:37 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 304 - http-bio-8080-exec-4 4 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:21:37:01 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:21:37:01 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-3 9 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:21:38:23 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 200 233 http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:21:38:24 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 304 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:27:58 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 134 http-bio-8080-exec-9 619 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:28:24 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 188 http-bio-8080-exec-1 439 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:28:44 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 188 http-bio-8080-exec-3 3 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:29:45 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 188 http-bio-8080-exec-1 57 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:29:46 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 188 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:30:14 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 188 http-bio-8080-exec-1 62 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:33:10 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 188 http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:33:53 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 - http-bio-8080-exec-1 26 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:34:43 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 - http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:34:59 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [04/Dec/2022:22:35:18 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 200 - http-bio-8080-exec-1 29 diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/logs/access_log.2022-12-05" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/logs/access_log.2022-12-05" deleted file mode 100644 index ac0846f..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/logs/access_log.2022-12-05" +++ /dev/null @@ -1,76 +0,0 @@ -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:52:31 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:52:31 +0800] "GET /filterWork/ HTTP/1.1" 500 1210 http-bio-8080-exec-3 6 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:52:32 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-2 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:52:48 +0800] "GET /filterWork/filterweb.jsp HTTP/1.1" 500 1210 http-bio-8080-exec-4 1 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:54:24 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 500 1210 http-bio-8080-exec-1 23 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:54:39 +0800] "GET /filterWork/filterweb.html HTTP/1.1" 500 1210 http-bio-8080-exec-2 2 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:56:23 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-1 380 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:56:28 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-3 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:56:47 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:57:54 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:57:58 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-3 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:58:00 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-4 23 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:58:06 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-5 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:59:19 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:59:19 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-3 8 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:59:28 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-4 19 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:14:59:35 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-5 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:03:53 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-1 41 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:03:57 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-3 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:04:09 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:04:09 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:04:14 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:04:18 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-7 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:05:09 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-1 42 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:05:09 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:06:08 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-1 38 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:06:11 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-3 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:06:23 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:06:39 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-5 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:06:39 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-6 3 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:06:44 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 278 http-bio-8080-exec-7 2 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:06:56 +0800] "POST /test HTTP/1.1" 404 - http-bio-8080-exec-8 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:07:48 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 281 http-bio-8080-exec-1 308 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:07:50 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 281 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:07:56 +0800] "POST /webtest HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:09:34 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 500 1210 http-bio-8080-exec-1 23 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:10:30 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 500 1210 http-bio-8080-exec-2 2 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:10:39 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 500 1210 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:10:49 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 281 http-bio-8080-exec-1 40 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:10:54 +0800] "POST /webtest HTTP/1.1" 404 - http-bio-8080-exec-3 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:18:19 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 281 http-bio-8080-exec-1 38 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:18:22 +0800] "POST /webtest HTTP/1.1" 404 - http-bio-8080-exec-3 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:29:17 +0800] "GET /filterWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:29:17 +0800] "GET /filterWork/ HTTP/1.1" 404 973 http-bio-8080-exec-3 10 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:29:29 +0800] "GET /filterWork/test HTTP/1.1" 500 1210 http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:29:51 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-2 358 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:29:55 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:32:24 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-8 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:32:29 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:34:22 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:35:03 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 0 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:35:34 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 38 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:35:39 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:37:33 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:37:54 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 41 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:38:02 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 2 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:39:16 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 38 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:39:20 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 2 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:40:50 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-1 25 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:43:05 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 46 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:43:09 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:44:59 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 39 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:45:03 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 2 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:45:50 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 40 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:45:53 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 2 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:47:27 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 41 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:47:30 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 3 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:47:45 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-4 1 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:49:24 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 39 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:49:28 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 2 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:50:30 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-5 1 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:51:39 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 43 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:51:50 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-3 2 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:52:20 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-1 47 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:52:20 +0800] "GET /filterWork/webtest.jsp HTTP/1.1" 200 289 http-bio-8080-exec-2 2 -0:0:0:0:0:0:0:1 - - [05/Dec/2022:15:52:25 +0800] "POST /filterWork/test HTTP/1.1" 200 - http-bio-8080-exec-5 1 diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/work/Tomcat/localhost/filterWork/org/apache/jsp/filterweb_jsp.class" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/work/Tomcat/localhost/filterWork/org/apache/jsp/filterweb_jsp.class" deleted file mode 100644 index 6f3e7116753d3ebd455688ebc12ad148a759c383..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3991 zcma)9+jA4w9sbsqwX(d1;6Ooyi%=oO!e$8s1Cs3oV>{TffmjYCG_A9i*YX;9rR=W2 zq-oPOZIjZZX`41}()-nY=}br`PH1O(dC5cGJALd-W;)X;|3M#`e&_6Zy^`!q8PM5t z&hK`<-<1#k`-eXPIF1z+EeiHjoRV%-jpBl-FS=EI-YR>hbHkjS;Z8+N!J#OH;Z{vY zcWSn0Et&dx&#R8R)gi+*Rm2taY)(qDLZ#*u&0(`@+H|7Xb*+j$zh>VaNxZC^Wql;PUAJz#ux`e( zUC*$K=8|C>CDT#x$%zOkUS+9hc=}jCH0cvjXQIDYwrtBARM2|3`?7-AxyqcG#18CK z@d>)=NLN~Sk#&KtF|7h;+|+#OiG399W-aGwSh2?3^Mn-^+Jv!*j`%$5mY z*F>dglrI~OCHBE#ykAKkWFnFlC;78UuI@KyE*xv+B9YMYWM{!JrPK4^= zuOrj&0FL|Uub+G7G6TFB{d$VLaPWf~PNGl2E*i*iKU=MqEd~iAk9PWU#tt_)u|dox zK5iDpC!I!4#TkNC|0Ln94Yg~?qhG;xTGtfy^mqv2hFKxJGN_>wTatJfLn_WHI2Or= z#rk^EkQYG|YdD8t#v(0fAW$&0IWlx{zB?L_n<&f<)T>?&URHyD7aU6MYk&Y z*v0Th#RURg@2)^)NRz-N1v^Ew=nLLbIbU2b9M|*)9-kiVJ>7vROsgm;xW8V?W~OO) z95ikVCCC`Gz3H1(La@V!K#x|??#m*GpV06mu9AgLy2Qd4hVHFK)B?*JQTlic!`lG5 zNZAew`PH$j8)ZSn7AD(MBAq{@U~fGPBK9MMf-Wn5p4MPsmQLcM3Vt(CkO?E+4f<3B zMcFW?&-=#t?^E$5cGYGN7Oq)U;l(f~1d=ak z_zJ%2H=d!|{JiNDtY;a?Y_enG{zVNhi3ZkDESrYoQwZ1J((nzu%zRuh?76a8Czqu< zng`PhPUVJZk4)$!Ch<+t6JHid@huJC#&=k`9Fx*rDJ4vdOk-j+L?NZA`0iRokQo{SDe0jV7`c5$$_7pc{9q zL9ElA{wODDyZmpVXQsH;@)Qc$5lQp#?P7{3ct-IW$2~casQ4v^)cSa6evd58Ol5xv zWfCw5y8LhrhTWq=1RLGjm^xc4jVybnEoMNrc)pDP+7QETF)eX~PKs%RXC3@*fyRIA zbMl+Lgln8s+t5Xdd%4rOia+Xm*#3L$zRk}T?BVYg3I<79Ng8L=?3FhlIY+AqvtVz_ zzKi|qtZ^xGt7OsScN-2MLqcW<4pM<{+aYPeQJxARvA1#mTT+Qo@5{I^A|n>cI2;;q zS-u`Pn0*_&v#aR7gI)!zIB^H36ug6htT=oR550qtb^H9M?dN!!racEDIu3?99tm|E zk#^JebpgI{2P2G1$ao%OeBiizLJJ;c<`L$W0zq%**Z z&-%-A{_+JbD|jNOrqsXUi*KSY)h0B&kL@WM@#Qz5iS=tMh+Rp=-$!REo>Euw^%Zpf z5tC1*)OYd9pJ{k1zKT~@uq&5X+oTfV`EB~99k=ibUc+zkJG@0O+VKJYMi^RUh`o+O z{O;vWr@xQ!_CZGGN$f-)p*=}RPcd3fqZ?;9^5$@YGv68XV*rB~#zU0%Fh_{9Z1F>Q zn$uW`r#41V!ziA^BX|MlsecTw(jDI?^$#&YOD1s}7w{Kcq%Bjl<}v)8>pxJyhg|=S zY3bG}nM-#Ax6*O=9$uGmdY7_(Ko=i?g*Wgft#8G@DEmju!8rbjAM>k?Z}|{E;ccAS z^Y|%##_aq#UptP(M}$OGp{V$UN{uQO<=>~o$!i}mPZAqk@=Dx4iY@;^`#5(R|DTLs zQDO^zjo)ycE=-=ilx(gY$??LaWVVo&%V_dQ`dB(7I?6)1&LVf&iR7uC2af0ZjwiDt G$^QYovODtt diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/work/Tomcat/localhost/filterWork/org/apache/jsp/filterweb_jsp.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/work/Tomcat/localhost/filterWork/org/apache/jsp/filterweb_jsp.java" deleted file mode 100644 index ac83c6d..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/target/tomcat/work/Tomcat/localhost/filterWork/org/apache/jsp/filterweb_jsp.java" +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Generated by the Jasper component of Apache Tomcat - * Version: Apache Tomcat/7.0.47 - * Generated at: 2022-12-04 14:28:24 UTC - * Note: The last modified time of this file was set to - * the last modified time of the source file after - * generation to assist with modification tracking. - */ -package org.apache.jsp; - -import javax.servlet.*; -import javax.servlet.http.*; -import javax.servlet.jsp.*; - -public final class filterweb_jsp extends org.apache.jasper.runtime.HttpJspBase - implements org.apache.jasper.runtime.JspSourceDependent { - - private static final javax.servlet.jsp.JspFactory _jspxFactory = - javax.servlet.jsp.JspFactory.getDefaultFactory(); - - private static java.util.Map _jspx_dependants; - - private javax.el.ExpressionFactory _el_expressionfactory; - private org.apache.tomcat.InstanceManager _jsp_instancemanager; - - public java.util.Map getDependants() { - return _jspx_dependants; - } - - public void _jspInit() { - _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); - _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig()); - } - - public void _jspDestroy() { - } - - public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) - throws java.io.IOException, javax.servlet.ServletException { - - final javax.servlet.jsp.PageContext pageContext; - javax.servlet.http.HttpSession session = null; - final javax.servlet.ServletContext application; - final javax.servlet.ServletConfig config; - javax.servlet.jsp.JspWriter out = null; - final java.lang.Object page = this; - javax.servlet.jsp.JspWriter _jspx_out = null; - javax.servlet.jsp.PageContext _jspx_page_context = null; - - - try { - response.setContentType("text/html;charset=UTF-8"); - pageContext = _jspxFactory.getPageContext(this, request, response, - null, true, 8192, true); - _jspx_page_context = pageContext; - application = pageContext.getServletContext(); - config = pageContext.getServletConfig(); - session = pageContext.getSession(); - out = pageContext.getOut(); - _jspx_out = out; - - out.write("\r\n"); - out.write("\r\n"); - out.write("\r\n"); - out.write("\r\n"); - out.write(" Filter Test\r\n"); - out.write("\r\n"); - out.write("\r\n"); - out.write("\r\n"); - out.write("\r\n"); - out.write("\r\n"); - out.write("\r\n"); - } catch (java.lang.Throwable t) { - if (!(t instanceof javax.servlet.jsp.SkipPageException)){ - out = _jspx_out; - if (out != null && out.getBufferSize() != 0) - try { out.clearBuffer(); } catch (java.io.IOException e) {} - if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); - else throw new ServletException(t); - } - } finally { - _jspxFactory.releasePageContext(_jspx_page_context); - } - } -} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/\347\254\254\345\205\253\347\253\240" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterWork/\347\254\254\345\205\253\347\253\240" deleted file mode 100644 index e69de29..0000000 -- Gitee From 9e2510f9d145255ffa6a5f093dd4aacd0b98284c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sat, 10 Dec 2022 08:52:50 +0000 Subject: [PATCH 170/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C=E4=B8=9A/l=E7=BD=97?= =?UTF-8?q?=E9=91=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../l\347\275\227\351\221\253/test.jsp" | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/test.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/test.jsp" deleted file mode 100644 index 7795ee3..0000000 --- "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/test.jsp" +++ /dev/null @@ -1,44 +0,0 @@ -<%-- - Created by IntelliJ IDEA. - User: 啥 - Date: 2022/12/7 - Time: 17:18 - To change this template use File | Settings | File Templates. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ page language="java" %> -<% - String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; -%> - - - - - Java 二维数组示例 - - -

Java 二维数组内容

- - - - - - - <% - for (int i = 0; i < array.length; i++) { - %> - - <% - for (int j = 0; j < array[i].length; j++) { - %> - - <% - } - %> - - <% - } - %> -
第一列第二列第三列
<%= array[i][j] %>
- - -- Gitee From c9ae75cae3e5c461f9e13cc1753ffada2ceff5d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sat, 10 Dec 2022 08:52:55 +0000 Subject: [PATCH 171/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=BD=97?= =?UTF-8?q?=E9=91=AB/jstl=5Fel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jstl_el/jstl_el.iml" | 35 - .../\347\275\227\351\221\253/jstl_el/pom.xml" | 59 - .../src/main/java/com/ittest/pojo/Brand.java" | 101 - .../src/main/java/com/ittest/pojo/User.java" | 76 - .../jstl_el/src/main/webapp/WEB-INF/web.xml" | 6 - .../jstl_el/src/main/webapp/jstl-foreach.jsp" | 60 - .../jstl_el/src/main/webapp/jstl.jsp" | 67 - .../jstl_el/src/main/webapp/test.jsp" | 44 - .../classes/com/ittest/pojo/Brand.class" | Bin 2731 -> 0 bytes .../classes/com/ittest/pojo/User.class" | Bin 1841 -> 0 bytes .../com/ittest/web/ServletDemo1.class" | Bin 2023 -> 0 bytes .../com/ittest/web/ServletDemo2.class" | Bin 1962 -> 0 bytes .../compile/default-compile/createdFiles.lst" | 4 - .../compile/default-compile/inputFiles.lst" | 4 - .../target/tomcat/conf/logging.properties" | 64 - .../target/tomcat/conf/tomcat-users.xml" | 26 - .../jstl_el/target/tomcat/conf/web.xml" | 4283 ----------------- .../target/tomcat/logs/access_log.2022-12-06" | 21 - .../target/tomcat/logs/access_log.2022-12-07" | 14 - .../\347\254\254\344\270\203\347\253\240" | 0 20 files changed, 4864 deletions(-) delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/jstl_el.iml" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/pom.xml" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/java/com/ittest/pojo/Brand.java" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/java/com/ittest/pojo/User.java" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/WEB-INF/web.xml" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/jstl-foreach.jsp" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/jstl.jsp" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/test.jsp" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/pojo/Brand.class" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/pojo/User.class" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/web/ServletDemo1.class" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/web/ServletDemo2.class" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/logging.properties" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/tomcat-users.xml" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/web.xml" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/logs/access_log.2022-12-06" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/logs/access_log.2022-12-07" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/\347\254\254\344\270\203\347\253\240" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/jstl_el.iml" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/jstl_el.iml" deleted file mode 100644 index 00a197d..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/jstl_el.iml" +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/pom.xml" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/pom.xml" deleted file mode 100644 index b381e1d..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/pom.xml" +++ /dev/null @@ -1,59 +0,0 @@ - - - 4.0.0 - - org.example - jstl_el - 1.0-SNAPSHOT - war - - - 8 - 8 - - - - - javax.servlet - javax.servlet-api - 3.1.0 - provided - - - - javax.servlet.jsp - jsp-api - 2.2 - provided - - - - - jstl - jstl - 1.2 - - - - taglibs - standard - 1.1.2 - - - - - - - - org.apache.tomcat.maven - tomcat7-maven-plugin - 2.2 - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/java/com/ittest/pojo/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/java/com/ittest/pojo/Brand.java" deleted file mode 100644 index 6ae9f9e..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/java/com/ittest/pojo/Brand.java" +++ /dev/null @@ -1,101 +0,0 @@ -package com.ittest.pojo; - -/** - * 品牌实体类 - */ - -public class Brand { - // id 主键 - private Integer id; - // 品牌名称 - private String brandName; - // 企业名称 - private String companyName; - // 排序字段 - private Integer ordered; - // 描述信息 - private String description; - // 状态:0:禁用 1:启用 - private Integer status; - - - public Brand() { - } - - public Brand(Integer id, String brandName, String companyName, String description) { - this.id = id; - this.brandName = brandName; - this.companyName = companyName; - this.description = description; - } - - public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { - this.id = id; - this.brandName = brandName; - this.companyName = companyName; - this.ordered = ordered; - this.description = description; - this.status = status; - } - // getId ${brand.id} Id getId - public Integer getId() { - System.out.println("getId方法被调用了..."); - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getBrandName() { - return brandName; - } - - public void setBrandName(String brandName) { - this.brandName = brandName; - } - - public String getCompanyName() { - return companyName; - } - - public void setCompanyName(String companyName) { - this.companyName = companyName; - } - - public Integer getOrdered() { - return ordered; - } - - public void setOrdered(Integer ordered) { - this.ordered = ordered; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } - - @Override - public String toString() { - return "Brand{" + - "id=" + id + - ", brandName='" + brandName + '\'' + - ", companyName='" + companyName + '\'' + - ", ordered=" + ordered + - ", description='" + description + '\'' + - ", status=" + status + - '}'; - } -} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/java/com/ittest/pojo/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/java/com/ittest/pojo/User.java" deleted file mode 100644 index 8ea795d..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/java/com/ittest/pojo/User.java" +++ /dev/null @@ -1,76 +0,0 @@ -package com.ittest.pojo; - -public class User { - // id 主键 - private Integer id; - // 名称 - private String UserName; - // 性别 - private String sex; - // 年龄 - private Integer old; - // 描述信息 - private String description; - // 状态:0:禁用 1:启用 - private Integer status; - - public User() { - } - - public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { - this.id = id; - this.UserName = userName; - this.sex = sex; - this.old = old; - this.description = description; - this.status = status; - } - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getUserName() { - return UserName; - } - - public void setUserName(String userName) { - this.UserName = userName; - } - - public String getSex() { - return sex; - } - - public void setSex(String sex) { - this.sex = sex; - } - - public Integer getOld() { - return old; - } - - public void setOld(Integer old) { - this.old = old; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } -} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/WEB-INF/web.xml" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/WEB-INF/web.xml" deleted file mode 100644 index d80081d..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/WEB-INF/web.xml" +++ /dev/null @@ -1,6 +0,0 @@ - - - \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/jstl-foreach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/jstl-foreach.jsp" deleted file mode 100644 index 20a8e34..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/jstl-foreach.jsp" +++ /dev/null @@ -1,60 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - - - - - - Title - - -
-
- - - - - - - - - - - - - - - - <%----%> - - - - - - - - - - - - - - - - - - - - -
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
- - -
- -<%----%> -<%-- ${i}--%> -<%----%> - - - - \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/jstl.jsp" deleted file mode 100644 index 9e324af..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/jstl.jsp" +++ /dev/null @@ -1,67 +0,0 @@ -<%-- - Created by IntelliJ IDEA. - User: 啥 - Date: 2022/12/6 - Time: 20:20 - To change this template use File | Settings | File Templates. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - - - - - - User - - -
-
- - - - - - - - - - - - - - - - <%----%> - - - - - - - - - - - - - - - - - - - - -
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
- - -
- -<%----%> -<%-- ${i}--%> -<%----%> - - - - diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/test.jsp" deleted file mode 100644 index 7795ee3..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/src/main/webapp/test.jsp" +++ /dev/null @@ -1,44 +0,0 @@ -<%-- - Created by IntelliJ IDEA. - User: 啥 - Date: 2022/12/7 - Time: 17:18 - To change this template use File | Settings | File Templates. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ page language="java" %> -<% - String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; -%> - - - - - Java 二维数组示例 - - -

Java 二维数组内容

- - - - - - - <% - for (int i = 0; i < array.length; i++) { - %> - - <% - for (int j = 0; j < array[i].length; j++) { - %> - - <% - } - %> - - <% - } - %> -
第一列第二列第三列
<%= array[i][j] %>
- - diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/pojo/Brand.class" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/pojo/Brand.class" deleted file mode 100644 index 7fa5ef8a053f427b6f071e997afad212c0398f43..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2731 zcmb`I-)Kt$EH zj7FUS13Tt^Q)}FJLsZkM>6T8pftudhv5cl|m<r69I! z)~I}J&1mTB2m9N)bxYgcbIvk%w7o6OGUVHH#_Z1xYK*V(%(7wIddn_1&0Vv+B#?wz zn+_nhFA;Eg)X(D)I_rOsdoGH0kQ^GX>-H)iaCCYmz}b%AddpoO3xgAZ3#?1*<^zb~#dvsCt!=;$nNA zv`v>mLAq)lSUdW4L#iU}5YJ1YW^fXd8B8FT!Am%i!OLP^74wSt^2n*!%HTHcD9G`g z)!Ne^e}DSx56^yj`0UX)|9t=8?)kmXb<@Ad|@-$I#r4=rv5 z!yUYh?OlDx?s8S{w`_f%ZDk&CVbrZ0!z^#IP5G>ruI;lwMjVZ9w*s{(L3`4sTC=G) zSbTF~>(n>(jlV7xkJQ?6R|_YJE}S2g19k)q=-92un|_}1nW^wS#XuSQ>f`&P4IHg<%B6G zRg9=JlZ(Y1ni-Gg0cljO75dR6iW6}%6(rT+k$oZpoI diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/pojo/User.class" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/pojo/User.class" deleted file mode 100644 index c9179dde5b9cc5f0b990799f258fe25a6089e828..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1841 zcma)*T~pIg5QaBxl73Q<(n7^AKxzpeQHorM!-Y7EC<7N&?$b6?!<2?eQpcaQKryOnPC`&tROg2y1JY%!VrkSC= z3_VvU<#ZJ)pI%y@EVFM7dgjR>uzR+5piuUMZ+mCfm95Zxte_Qm&Y*|)Y2W?~>-M2g z=-PhAbFKr&9Vn#xffWpW1TUR|6C9$dv2mf0dgOMYHhby}?6cuj+xFgD?Y_`=J68X~ z@*IASl4|hLfkyST<6fCg5ZHcTUb~mB$y_+!Ys9E-uw$tR^q-mk`s}8NTgVQ_L(zJ6 zaDv_|jg8nDH^mBRe)zsB<7BM@1ST_HxFs{5aseunqDovVs$nS|QY~JGj`A=-=A2i< z84;9_c^zL<32$yCa;y@qF2_PqoNu{9uVWuOysI43?C^yt(ma)ml&3^1|Z;_!8lUQW@=cUgVDpe8AgL&=A}WSOv`9;MVu2bg3w%Lk2ENV$#^#7p#@2|^#`cI* zqo$6aT+>FR8#R4InaK&OXn>%gQU#4vfwc&zCFs`ZA>E~QS{5h23Du*MagJ!0k?W|M z5uA0NC8b4i6LF)3=Xi1P406CZf!uN(jo=7L6CqWLSAPxCM v^d!hDfE-N$;cLqv8`6nnk|4)Y5JNtZ*#8$^*0%t8HwA?M8V1=EzsJ^JX14xU diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/web/ServletDemo1.class" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/web/ServletDemo1.class" deleted file mode 100644 index 6755f9b78f2882c9a535568e3ee656bdb843cd57..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2023 zcma)7-BTM?6#v~MWS0~x%4SM+#_JmHv` z&{LzjWyrPb^odEsW;hf}nA4ge1h<8DgU7WIZq1~)7~s?9@d!gz(!9V0!*E+{N}thh zYPPelO$w3GF4Dt2Fw8&A5=LatFgs(WZ61*oE0%MJp>@w=4myKsaR-56?~>eHL{;3< z(@E;LzL-eM3L~Y(462u5-*$R#Wi}~l-x1qe&Q->oGPN@jHPS~Qfpa$#JR=P1O+ie- z`;;?jUN&vwE-+$dtpq=B$YF%a3GR`cGBgio)54hMqlRtJg!D8@0?9xtrU&8|MWyYcmd!sovf=5r+Fd~Ufg zzp!@a@%rpNI;G&lAVx7pr)?rAOY;nAQ?^KTUpFnTCnkHQ>`V|JVO+u0AgBgLX?L|8_8!uimgph}OM@BanKPqB7OD2_(FdNN5$DX(QHKE)Fv(tedx zxjSXl~r#hpn4i7xNuPh3_GKX#H6I}6KD?#Z6zH!h>!)<3SJ252&S5UZvmhYhX5B`xgt4KD+<` diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/web/ServletDemo2.class" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/classes/com/ittest/web/ServletDemo2.class" deleted file mode 100644 index 5d8c4b1dbefe7229c54d8b8c13e8bfe5b0936e45..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1962 zcma)7TW=dh6#m9`yc=i9#c^6n=@mla+!jj9%^@^xdT}vHN!o<8@UXV0$r{INcE@S^ z1`^PeBDE5TR>}(k2?-&A5EX8STHg5`*nvNRIJ3L4oftJdcy{K@H{UtuJ7>m!{PWu* z07vm&1iSH~f};@xA}K&MA14Av|gpOfkj~?2pefgicyn&d`xE3w*M)l;-vYBb_HpG-YLs z{H$S{a_t*KV$pOM_N6k`l5PsY9id<4X?=#<%Xuy)_>y%b!O)Vm&Tzpn-Ji-C%f>a` z@%HsaA&UB08vFy({DTs4BzA;3MXTWOgp63Ry+aIrJ0A1c8C08l3=BJm%~olJo-9zv{9;}m9zAVM4A{Qj>xHN8D117Wu_pd;4Lan z);e!Fq+DdiD%lx++LWc}^3`(X9g&JM?3peVgt^3LO~<7Aj28-)FkCK%-fg-VwM~7F zr+qS6rez~vBL1+Rm4(yrB=#_LO9x&8ej};hRxqt$1{WAwE1%q|-e0Z$@{pjFN9F3rw=2Kj zt*+er>*03{TIGwCzi)hAx$#r=qwi_?=YyLYw|?}96kOCWi#hV>P`)LqPOF}CM1Caa z6g9kqc?Fj=T*kW^4&Wfe-iElhcPhjF$G2w_z}K!;xJ|W8OHWQUSi4*e^G0DoPZk7U z;5PNGtM=3tYM%aN+-s>u1Qo>gyJw5J0XZXVv#{XZ7TpCkTYP{24lStd-UXo$?B zl<(Mo5O^xqpO>a%r0IdJ@isxIFjp-5s$o;k$2}i)LciYrq3zF9ZMXJ1;SfEwyXgf7 zf?)DK(fAatbow&-whWZPex^wPdua^2#tuA9bIk)_ANJEKB-@uzbeM(FN^9WGIs)@$ z1Sf~r5tg-jn*d>He}Vvq=n=e diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" deleted file mode 100644 index 0f808bc..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" +++ /dev/null @@ -1,4 +0,0 @@ -com\ittest\pojo\Brand.class -com\ittest\web\ServletDemo1.class -com\ittest\web\ServletDemo2.class -com\ittest\pojo\User.class diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" deleted file mode 100644 index b0d9147..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" +++ /dev/null @@ -1,4 +0,0 @@ -B:\javawork\web\jstl_el\src\main\java\com\ittest\web\ServletDemo1.java -B:\javawork\web\jstl_el\src\main\java\com\ittest\pojo\Brand.java -B:\javawork\web\jstl_el\src\main\java\com\ittest\pojo\User.java -B:\javawork\web\jstl_el\src\main\java\com\ittest\web\ServletDemo2.java diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/logging.properties" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/logging.properties" deleted file mode 100644 index 76c9512..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/logging.properties" +++ /dev/null @@ -1,64 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler - -.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler - -############################################################ -# Handler specific properties. -# Describes specific configuration info for Handlers. -############################################################ - -1catalina.org.apache.juli.FileHandler.level = FINE -1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -1catalina.org.apache.juli.FileHandler.prefix = catalina. - -2localhost.org.apache.juli.FileHandler.level = FINE -2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -2localhost.org.apache.juli.FileHandler.prefix = localhost. - -3manager.org.apache.juli.FileHandler.level = FINE -3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -3manager.org.apache.juli.FileHandler.prefix = manager. - -4host-manager.org.apache.juli.FileHandler.level = FINE -4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -4host-manager.org.apache.juli.FileHandler.prefix = host-manager. - -java.util.logging.ConsoleHandler.level = FINE -java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter - - -############################################################ -# Facility specific properties. -# Provides extra control for each logger. -############################################################ - -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler - -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler - -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler - -# For example, set the org.apache.catalina.util.LifecycleBase logger to log -# each component that extends LifecycleBase changing state: -#org.apache.catalina.util.LifecycleBase.level = FINE - -# To see debug messages in TldLocationsCache, uncomment the following line: -#org.apache.jasper.compiler.TldLocationsCache.level = FINE diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/tomcat-users.xml" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/tomcat-users.xml" deleted file mode 100644 index 7114f5d..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/tomcat-users.xml" +++ /dev/null @@ -1,26 +0,0 @@ - - - - - diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/web.xml" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/web.xml" deleted file mode 100644 index cc8383c..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/conf/web.xml" +++ /dev/null @@ -1,4283 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - default - org.apache.catalina.servlets.DefaultServlet - - debug - 0 - - - listings - false - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jsp - org.apache.jasper.servlet.JspServlet - - fork - false - - - xpoweredBy - false - - 3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - default - / - - - - - jsp - *.jsp - *.jspx - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 30 - - - - - - - - - - - - 123 - application/vnd.lotus-1-2-3 - - - 3dml - text/vnd.in3d.3dml - - - 3g2 - video/3gpp2 - - - 3gp - video/3gpp - - - 7z - application/x-7z-compressed - - - aab - application/x-authorware-bin - - - aac - audio/x-aac - - - aam - application/x-authorware-map - - - aas - application/x-authorware-seg - - - abs - audio/x-mpeg - - - abw - application/x-abiword - - - ac - application/pkix-attr-cert - - - acc - application/vnd.americandynamics.acc - - - ace - application/x-ace-compressed - - - acu - application/vnd.acucobol - - - acutc - application/vnd.acucorp - - - adp - audio/adpcm - - - aep - application/vnd.audiograph - - - afm - application/x-font-type1 - - - afp - application/vnd.ibm.modcap - - - ahead - application/vnd.ahead.space - - - ai - application/postscript - - - aif - audio/x-aiff - - - aifc - audio/x-aiff - - - aiff - audio/x-aiff - - - aim - application/x-aim - - - air - application/vnd.adobe.air-application-installer-package+zip - - - ait - application/vnd.dvb.ait - - - ami - application/vnd.amiga.ami - - - anx - application/annodex - - - apk - application/vnd.android.package-archive - - - application - application/x-ms-application - - - apr - application/vnd.lotus-approach - - - art - image/x-jg - - - asc - application/pgp-signature - - - asf - video/x-ms-asf - - - asm - text/x-asm - - - aso - application/vnd.accpac.simply.aso - - - asx - video/x-ms-asf - - - atc - application/vnd.acucorp - - - atom - application/atom+xml - - - atomcat - application/atomcat+xml - - - atomsvc - application/atomsvc+xml - - - atx - application/vnd.antix.game-component - - - au - audio/basic - - - avi - video/x-msvideo - - - avx - video/x-rad-screenplay - - - aw - application/applixware - - - axa - audio/annodex - - - axv - video/annodex - - - azf - application/vnd.airzip.filesecure.azf - - - azs - application/vnd.airzip.filesecure.azs - - - azw - application/vnd.amazon.ebook - - - bat - application/x-msdownload - - - bcpio - application/x-bcpio - - - bdf - application/x-font-bdf - - - bdm - application/vnd.syncml.dm+wbxml - - - bed - application/vnd.realvnc.bed - - - bh2 - application/vnd.fujitsu.oasysprs - - - bin - application/octet-stream - - - bmi - application/vnd.bmi - - - bmp - image/bmp - - - body - text/html - - - book - application/vnd.framemaker - - - box - application/vnd.previewsystems.box - - - boz - application/x-bzip2 - - - bpk - application/octet-stream - - - btif - image/prs.btif - - - bz - application/x-bzip - - - bz2 - application/x-bzip2 - - - c - text/x-c - - - c11amc - application/vnd.cluetrust.cartomobile-config - - - c11amz - application/vnd.cluetrust.cartomobile-config-pkg - - - c4d - application/vnd.clonk.c4group - - - c4f - application/vnd.clonk.c4group - - - c4g - application/vnd.clonk.c4group - - - c4p - application/vnd.clonk.c4group - - - c4u - application/vnd.clonk.c4group - - - cab - application/vnd.ms-cab-compressed - - - cap - application/vnd.tcpdump.pcap - - - car - application/vnd.curl.car - - - cat - application/vnd.ms-pki.seccat - - - cc - text/x-c - - - cct - application/x-director - - - ccxml - application/ccxml+xml - - - cdbcmsg - application/vnd.contact.cmsg - - - cdf - application/x-cdf - - - cdkey - application/vnd.mediastation.cdkey - - - cdmia - application/cdmi-capability - - - cdmic - application/cdmi-container - - - cdmid - application/cdmi-domain - - - cdmio - application/cdmi-object - - - cdmiq - application/cdmi-queue - - - cdx - chemical/x-cdx - - - cdxml - application/vnd.chemdraw+xml - - - cdy - application/vnd.cinderella - - - cer - application/pkix-cert - - - cgm - image/cgm - - - chat - application/x-chat - - - chm - application/vnd.ms-htmlhelp - - - chrt - application/vnd.kde.kchart - - - cif - chemical/x-cif - - - cii - application/vnd.anser-web-certificate-issue-initiation - - - cil - application/vnd.ms-artgalry - - - cla - application/vnd.claymore - - - class - application/java - - - clkk - application/vnd.crick.clicker.keyboard - - - clkp - application/vnd.crick.clicker.palette - - - clkt - application/vnd.crick.clicker.template - - - clkw - application/vnd.crick.clicker.wordbank - - - clkx - application/vnd.crick.clicker - - - clp - application/x-msclip - - - cmc - application/vnd.cosmocaller - - - cmdf - chemical/x-cmdf - - - cml - chemical/x-cml - - - cmp - application/vnd.yellowriver-custom-menu - - - cmx - image/x-cmx - - - cod - application/vnd.rim.cod - - - com - application/x-msdownload - - - conf - text/plain - - - cpio - application/x-cpio - - - cpp - text/x-c - - - cpt - application/mac-compactpro - - - crd - application/x-mscardfile - - - crl - application/pkix-crl - - - crt - application/x-x509-ca-cert - - - cryptonote - application/vnd.rig.cryptonote - - - csh - application/x-csh - - - csml - chemical/x-csml - - - csp - application/vnd.commonspace - - - css - text/css - - - cst - application/x-director - - - csv - text/csv - - - cu - application/cu-seeme - - - curl - text/vnd.curl - - - cww - application/prs.cww - - - cxt - application/x-director - - - cxx - text/x-c - - - dae - model/vnd.collada+xml - - - daf - application/vnd.mobius.daf - - - dataless - application/vnd.fdsn.seed - - - davmount - application/davmount+xml - - - dcr - application/x-director - - - dcurl - text/vnd.curl.dcurl - - - dd2 - application/vnd.oma.dd2+xml - - - ddd - application/vnd.fujixerox.ddd - - - deb - application/x-debian-package - - - def - text/plain - - - deploy - application/octet-stream - - - der - application/x-x509-ca-cert - - - dfac - application/vnd.dreamfactory - - - dib - image/bmp - - - dic - text/x-c - - - dir - application/x-director - - - dis - application/vnd.mobius.dis - - - dist - application/octet-stream - - - distz - application/octet-stream - - - djv - image/vnd.djvu - - - djvu - image/vnd.djvu - - - dll - application/x-msdownload - - - dmg - application/octet-stream - - - dmp - application/vnd.tcpdump.pcap - - - dms - application/octet-stream - - - dna - application/vnd.dna - - - doc - application/msword - - - docm - application/vnd.ms-word.document.macroenabled.12 - - - docx - application/vnd.openxmlformats-officedocument.wordprocessingml.document - - - dot - application/msword - - - dotm - application/vnd.ms-word.template.macroenabled.12 - - - dotx - application/vnd.openxmlformats-officedocument.wordprocessingml.template - - - dp - application/vnd.osgi.dp - - - dpg - application/vnd.dpgraph - - - dra - audio/vnd.dra - - - dsc - text/prs.lines.tag - - - dssc - application/dssc+der - - - dtb - application/x-dtbook+xml - - - dtd - application/xml-dtd - - - dts - audio/vnd.dts - - - dtshd - audio/vnd.dts.hd - - - dump - application/octet-stream - - - dv - video/x-dv - - - dvb - video/vnd.dvb.file - - - dvi - application/x-dvi - - - dwf - model/vnd.dwf - - - dwg - image/vnd.dwg - - - dxf - image/vnd.dxf - - - dxp - application/vnd.spotfire.dxp - - - dxr - application/x-director - - - ecelp4800 - audio/vnd.nuera.ecelp4800 - - - ecelp7470 - audio/vnd.nuera.ecelp7470 - - - ecelp9600 - audio/vnd.nuera.ecelp9600 - - - ecma - application/ecmascript - - - edm - application/vnd.novadigm.edm - - - edx - application/vnd.novadigm.edx - - - efif - application/vnd.picsel - - - ei6 - application/vnd.pg.osasli - - - elc - application/octet-stream - - - eml - message/rfc822 - - - emma - application/emma+xml - - - eol - audio/vnd.digital-winds - - - eot - application/vnd.ms-fontobject - - - eps - application/postscript - - - epub - application/epub+zip - - - es3 - application/vnd.eszigno3+xml - - - esf - application/vnd.epson.esf - - - et3 - application/vnd.eszigno3+xml - - - etx - text/x-setext - - - exe - application/octet-stream - - - exi - application/exi - - - ext - application/vnd.novadigm.ext - - - ez - application/andrew-inset - - - ez2 - application/vnd.ezpix-album - - - ez3 - application/vnd.ezpix-package - - - f - text/x-fortran - - - f4v - video/x-f4v - - - f77 - text/x-fortran - - - f90 - text/x-fortran - - - fbs - image/vnd.fastbidsheet - - - fcs - application/vnd.isac.fcs - - - fdf - application/vnd.fdf - - - fe_launch - application/vnd.denovo.fcselayout-link - - - fg5 - application/vnd.fujitsu.oasysgp - - - fgd - application/x-director - - - fh - image/x-freehand - - - fh4 - image/x-freehand - - - fh5 - image/x-freehand - - - fh7 - image/x-freehand - - - fhc - image/x-freehand - - - fig - application/x-xfig - - - flac - audio/flac - - - fli - video/x-fli - - - flo - application/vnd.micrografx.flo - - - flv - video/x-flv - - - flw - application/vnd.kde.kivio - - - flx - text/vnd.fmi.flexstor - - - fly - text/vnd.fly - - - fm - application/vnd.framemaker - - - fnc - application/vnd.frogans.fnc - - - for - text/x-fortran - - - fpx - image/vnd.fpx - - - frame - application/vnd.framemaker - - - fsc - application/vnd.fsc.weblaunch - - - fst - image/vnd.fst - - - ftc - application/vnd.fluxtime.clip - - - fti - application/vnd.anser-web-funds-transfer-initiation - - - fvt - video/vnd.fvt - - - fxp - application/vnd.adobe.fxp - - - fxpl - application/vnd.adobe.fxp - - - fzs - application/vnd.fuzzysheet - - - g2w - application/vnd.geoplan - - - g3 - image/g3fax - - - g3w - application/vnd.geospace - - - gac - application/vnd.groove-account - - - gbr - application/rpki-ghostbusters - - - gdl - model/vnd.gdl - - - geo - application/vnd.dynageo - - - gex - application/vnd.geometry-explorer - - - ggb - application/vnd.geogebra.file - - - ggt - application/vnd.geogebra.tool - - - ghf - application/vnd.groove-help - - - gif - image/gif - - - gim - application/vnd.groove-identity-message - - - gmx - application/vnd.gmx - - - gnumeric - application/x-gnumeric - - - gph - application/vnd.flographit - - - gqf - application/vnd.grafeq - - - gqs - application/vnd.grafeq - - - gram - application/srgs - - - gre - application/vnd.geometry-explorer - - - grv - application/vnd.groove-injector - - - grxml - application/srgs+xml - - - gsf - application/x-font-ghostscript - - - gtar - application/x-gtar - - - gtm - application/vnd.groove-tool-message - - - gtw - model/vnd.gtw - - - gv - text/vnd.graphviz - - - gxt - application/vnd.geonext - - - gz - application/x-gzip - - - h - text/x-c - - - h261 - video/h261 - - - h263 - video/h263 - - - h264 - video/h264 - - - hal - application/vnd.hal+xml - - - hbci - application/vnd.hbci - - - hdf - application/x-hdf - - - hh - text/x-c - - - hlp - application/winhlp - - - hpgl - application/vnd.hp-hpgl - - - hpid - application/vnd.hp-hpid - - - hps - application/vnd.hp-hps - - - hqx - application/mac-binhex40 - - - htc - text/x-component - - - htke - application/vnd.kenameaapp - - - htm - text/html - - - html - text/html - - - hvd - application/vnd.yamaha.hv-dic - - - hvp - application/vnd.yamaha.hv-voice - - - hvs - application/vnd.yamaha.hv-script - - - i2g - application/vnd.intergeo - - - icc - application/vnd.iccprofile - - - ice - x-conference/x-cooltalk - - - icm - application/vnd.iccprofile - - - ico - image/x-icon - - - ics - text/calendar - - - ief - image/ief - - - ifb - text/calendar - - - ifm - application/vnd.shana.informed.formdata - - - iges - model/iges - - - igl - application/vnd.igloader - - - igm - application/vnd.insors.igm - - - igs - model/iges - - - igx - application/vnd.micrografx.igx - - - iif - application/vnd.shana.informed.interchange - - - imp - application/vnd.accpac.simply.imp - - - ims - application/vnd.ms-ims - - - in - text/plain - - - ink - application/inkml+xml - - - inkml - application/inkml+xml - - - iota - application/vnd.astraea-software.iota - - - ipfix - application/ipfix - - - ipk - application/vnd.shana.informed.package - - - irm - application/vnd.ibm.rights-management - - - irp - application/vnd.irepository.package+xml - - - iso - application/octet-stream - - - itp - application/vnd.shana.informed.formtemplate - - - ivp - application/vnd.immervision-ivp - - - ivu - application/vnd.immervision-ivu - - - jad - text/vnd.sun.j2me.app-descriptor - - - jam - application/vnd.jam - - - jar - application/java-archive - - - java - text/x-java-source - - - jisp - application/vnd.jisp - - - jlt - application/vnd.hp-jlyt - - - jnlp - application/x-java-jnlp-file - - - joda - application/vnd.joost.joda-archive - - - jpe - image/jpeg - - - jpeg - image/jpeg - - - jpg - image/jpeg - - - jpgm - video/jpm - - - jpgv - video/jpeg - - - jpm - video/jpm - - - js - application/javascript - - - jsf - text/plain - - - json - application/json - - - jspf - text/plain - - - kar - audio/midi - - - karbon - application/vnd.kde.karbon - - - kfo - application/vnd.kde.kformula - - - kia - application/vnd.kidspiration - - - kml - application/vnd.google-earth.kml+xml - - - kmz - application/vnd.google-earth.kmz - - - kne - application/vnd.kinar - - - knp - application/vnd.kinar - - - kon - application/vnd.kde.kontour - - - kpr - application/vnd.kde.kpresenter - - - kpt - application/vnd.kde.kpresenter - - - ksp - application/vnd.kde.kspread - - - ktr - application/vnd.kahootz - - - ktx - image/ktx - - - ktz - application/vnd.kahootz - - - kwd - application/vnd.kde.kword - - - kwt - application/vnd.kde.kword - - - lasxml - application/vnd.las.las+xml - - - latex - application/x-latex - - - lbd - application/vnd.llamagraphics.life-balance.desktop - - - lbe - application/vnd.llamagraphics.life-balance.exchange+xml - - - les - application/vnd.hhe.lesson-player - - - lha - application/octet-stream - - - link66 - application/vnd.route66.link66+xml - - - list - text/plain - - - list3820 - application/vnd.ibm.modcap - - - listafp - application/vnd.ibm.modcap - - - log - text/plain - - - lostxml - application/lost+xml - - - lrf - application/octet-stream - - - lrm - application/vnd.ms-lrm - - - ltf - application/vnd.frogans.ltf - - - lvp - audio/vnd.lucent.voice - - - lwp - application/vnd.lotus-wordpro - - - lzh - application/octet-stream - - - m13 - application/x-msmediaview - - - m14 - application/x-msmediaview - - - m1v - video/mpeg - - - m21 - application/mp21 - - - m2a - audio/mpeg - - - m2v - video/mpeg - - - m3a - audio/mpeg - - - m3u - audio/x-mpegurl - - - m3u8 - application/vnd.apple.mpegurl - - - m4a - audio/mp4 - - - m4b - audio/mp4 - - - m4r - audio/mp4 - - - m4u - video/vnd.mpegurl - - - m4v - video/mp4 - - - ma - application/mathematica - - - mac - image/x-macpaint - - - mads - application/mads+xml - - - mag - application/vnd.ecowin.chart - - - maker - application/vnd.framemaker - - - man - text/troff - - - mathml - application/mathml+xml - - - mb - application/mathematica - - - mbk - application/vnd.mobius.mbk - - - mbox - application/mbox - - - mc1 - application/vnd.medcalcdata - - - mcd - application/vnd.mcd - - - mcurl - text/vnd.curl.mcurl - - - mdb - application/x-msaccess - - - mdi - image/vnd.ms-modi - - - me - text/troff - - - mesh - model/mesh - - - meta4 - application/metalink4+xml - - - mets - application/mets+xml - - - mfm - application/vnd.mfmp - - - mft - application/rpki-manifest - - - mgp - application/vnd.osgeo.mapguide.package - - - mgz - application/vnd.proteus.magazine - - - mid - audio/midi - - - midi - audio/midi - - - mif - application/x-mif - - - mime - message/rfc822 - - - mj2 - video/mj2 - - - mjp2 - video/mj2 - - - mlp - application/vnd.dolby.mlp - - - mmd - application/vnd.chipnuts.karaoke-mmd - - - mmf - application/vnd.smaf - - - mmr - image/vnd.fujixerox.edmics-mmr - - - mny - application/x-msmoney - - - mobi - application/x-mobipocket-ebook - - - mods - application/mods+xml - - - mov - video/quicktime - - - movie - video/x-sgi-movie - - - mp1 - audio/mpeg - - - mp2 - audio/mpeg - - - mp21 - application/mp21 - - - mp2a - audio/mpeg - - - mp3 - audio/mpeg - - - mp4 - video/mp4 - - - mp4a - audio/mp4 - - - mp4s - application/mp4 - - - mp4v - video/mp4 - - - mpa - audio/mpeg - - - mpc - application/vnd.mophun.certificate - - - mpe - video/mpeg - - - mpeg - video/mpeg - - - mpega - audio/x-mpeg - - - mpg - video/mpeg - - - mpg4 - video/mp4 - - - mpga - audio/mpeg - - - mpkg - application/vnd.apple.installer+xml - - - mpm - application/vnd.blueice.multipass - - - mpn - application/vnd.mophun.application - - - mpp - application/vnd.ms-project - - - mpt - application/vnd.ms-project - - - mpv2 - video/mpeg2 - - - mpy - application/vnd.ibm.minipay - - - mqy - application/vnd.mobius.mqy - - - mrc - application/marc - - - mrcx - application/marcxml+xml - - - ms - text/troff - - - mscml - application/mediaservercontrol+xml - - - mseed - application/vnd.fdsn.mseed - - - mseq - application/vnd.mseq - - - msf - application/vnd.epson.msf - - - msh - model/mesh - - - msi - application/x-msdownload - - - msl - application/vnd.mobius.msl - - - msty - application/vnd.muvee.style - - - mts - model/vnd.mts - - - mus - application/vnd.musician - - - musicxml - application/vnd.recordare.musicxml+xml - - - mvb - application/x-msmediaview - - - mwf - application/vnd.mfer - - - mxf - application/mxf - - - mxl - application/vnd.recordare.musicxml - - - mxml - application/xv+xml - - - mxs - application/vnd.triscape.mxs - - - mxu - video/vnd.mpegurl - - - n-gage - application/vnd.nokia.n-gage.symbian.install - - - n3 - text/n3 - - - nb - application/mathematica - - - nbp - application/vnd.wolfram.player - - - nc - application/x-netcdf - - - ncx - application/x-dtbncx+xml - - - ngdat - application/vnd.nokia.n-gage.data - - - nlu - application/vnd.neurolanguage.nlu - - - nml - application/vnd.enliven - - - nnd - application/vnd.noblenet-directory - - - nns - application/vnd.noblenet-sealer - - - nnw - application/vnd.noblenet-web - - - npx - image/vnd.net-fpx - - - nsf - application/vnd.lotus-notes - - - oa2 - application/vnd.fujitsu.oasys2 - - - oa3 - application/vnd.fujitsu.oasys3 - - - oas - application/vnd.fujitsu.oasys - - - obd - application/x-msbinder - - - oda - application/oda - - - - odb - application/vnd.oasis.opendocument.database - - - - odc - application/vnd.oasis.opendocument.chart - - - - odf - application/vnd.oasis.opendocument.formula - - - odft - application/vnd.oasis.opendocument.formula-template - - - - odg - application/vnd.oasis.opendocument.graphics - - - - odi - application/vnd.oasis.opendocument.image - - - - odm - application/vnd.oasis.opendocument.text-master - - - - odp - application/vnd.oasis.opendocument.presentation - - - - ods - application/vnd.oasis.opendocument.spreadsheet - - - - odt - application/vnd.oasis.opendocument.text - - - oga - audio/ogg - - - ogg - audio/ogg - - - ogv - video/ogg - - - - ogx - application/ogg - - - onepkg - application/onenote - - - onetmp - application/onenote - - - onetoc - application/onenote - - - onetoc2 - application/onenote - - - opf - application/oebps-package+xml - - - oprc - application/vnd.palm - - - org - application/vnd.lotus-organizer - - - osf - application/vnd.yamaha.openscoreformat - - - osfpvg - application/vnd.yamaha.openscoreformat.osfpvg+xml - - - otc - application/vnd.oasis.opendocument.chart-template - - - otf - application/x-font-otf - - - - otg - application/vnd.oasis.opendocument.graphics-template - - - - oth - application/vnd.oasis.opendocument.text-web - - - oti - application/vnd.oasis.opendocument.image-template - - - - otp - application/vnd.oasis.opendocument.presentation-template - - - - ots - application/vnd.oasis.opendocument.spreadsheet-template - - - - ott - application/vnd.oasis.opendocument.text-template - - - oxps - application/oxps - - - oxt - application/vnd.openofficeorg.extension - - - p - text/x-pascal - - - p10 - application/pkcs10 - - - p12 - application/x-pkcs12 - - - p7b - application/x-pkcs7-certificates - - - p7c - application/pkcs7-mime - - - p7m - application/pkcs7-mime - - - p7r - application/x-pkcs7-certreqresp - - - p7s - application/pkcs7-signature - - - p8 - application/pkcs8 - - - pas - text/x-pascal - - - paw - application/vnd.pawaafile - - - pbd - application/vnd.powerbuilder6 - - - pbm - image/x-portable-bitmap - - - pcap - application/vnd.tcpdump.pcap - - - pcf - application/x-font-pcf - - - pcl - application/vnd.hp-pcl - - - pclxl - application/vnd.hp-pclxl - - - pct - image/pict - - - pcurl - application/vnd.curl.pcurl - - - pcx - image/x-pcx - - - pdb - application/vnd.palm - - - pdf - application/pdf - - - pfa - application/x-font-type1 - - - pfb - application/x-font-type1 - - - pfm - application/x-font-type1 - - - pfr - application/font-tdpfr - - - pfx - application/x-pkcs12 - - - pgm - image/x-portable-graymap - - - pgn - application/x-chess-pgn - - - pgp - application/pgp-encrypted - - - pic - image/pict - - - pict - image/pict - - - pkg - application/octet-stream - - - pki - application/pkixcmp - - - pkipath - application/pkix-pkipath - - - plb - application/vnd.3gpp.pic-bw-large - - - plc - application/vnd.mobius.plc - - - plf - application/vnd.pocketlearn - - - pls - audio/x-scpls - - - pml - application/vnd.ctc-posml - - - png - image/png - - - pnm - image/x-portable-anymap - - - pnt - image/x-macpaint - - - portpkg - application/vnd.macports.portpkg - - - pot - application/vnd.ms-powerpoint - - - potm - application/vnd.ms-powerpoint.template.macroenabled.12 - - - potx - application/vnd.openxmlformats-officedocument.presentationml.template - - - ppam - application/vnd.ms-powerpoint.addin.macroenabled.12 - - - ppd - application/vnd.cups-ppd - - - ppm - image/x-portable-pixmap - - - pps - application/vnd.ms-powerpoint - - - ppsm - application/vnd.ms-powerpoint.slideshow.macroenabled.12 - - - ppsx - application/vnd.openxmlformats-officedocument.presentationml.slideshow - - - ppt - application/vnd.ms-powerpoint - - - pptm - application/vnd.ms-powerpoint.presentation.macroenabled.12 - - - pptx - application/vnd.openxmlformats-officedocument.presentationml.presentation - - - pqa - application/vnd.palm - - - prc - application/x-mobipocket-ebook - - - pre - application/vnd.lotus-freelance - - - prf - application/pics-rules - - - ps - application/postscript - - - psb - application/vnd.3gpp.pic-bw-small - - - psd - image/vnd.adobe.photoshop - - - psf - application/x-font-linux-psf - - - pskcxml - application/pskc+xml - - - ptid - application/vnd.pvi.ptid1 - - - pub - application/x-mspublisher - - - pvb - application/vnd.3gpp.pic-bw-var - - - pwn - application/vnd.3m.post-it-notes - - - pya - audio/vnd.ms-playready.media.pya - - - pyv - video/vnd.ms-playready.media.pyv - - - qam - application/vnd.epson.quickanime - - - qbo - application/vnd.intu.qbo - - - qfx - application/vnd.intu.qfx - - - qps - application/vnd.publishare-delta-tree - - - qt - video/quicktime - - - qti - image/x-quicktime - - - qtif - image/x-quicktime - - - qwd - application/vnd.quark.quarkxpress - - - qwt - application/vnd.quark.quarkxpress - - - qxb - application/vnd.quark.quarkxpress - - - qxd - application/vnd.quark.quarkxpress - - - qxl - application/vnd.quark.quarkxpress - - - qxt - application/vnd.quark.quarkxpress - - - ra - audio/x-pn-realaudio - - - ram - audio/x-pn-realaudio - - - rar - application/x-rar-compressed - - - ras - image/x-cmu-raster - - - rcprofile - application/vnd.ipunplugged.rcprofile - - - rdf - application/rdf+xml - - - rdz - application/vnd.data-vision.rdz - - - rep - application/vnd.businessobjects - - - res - application/x-dtbresource+xml - - - rgb - image/x-rgb - - - rif - application/reginfo+xml - - - rip - audio/vnd.rip - - - rl - application/resource-lists+xml - - - rlc - image/vnd.fujixerox.edmics-rlc - - - rld - application/resource-lists-diff+xml - - - rm - application/vnd.rn-realmedia - - - rmi - audio/midi - - - rmp - audio/x-pn-realaudio-plugin - - - rms - application/vnd.jcp.javame.midlet-rms - - - rnc - application/relax-ng-compact-syntax - - - roa - application/rpki-roa - - - roff - text/troff - - - rp9 - application/vnd.cloanto.rp9 - - - rpss - application/vnd.nokia.radio-presets - - - rpst - application/vnd.nokia.radio-preset - - - rq - application/sparql-query - - - rs - application/rls-services+xml - - - rsd - application/rsd+xml - - - rss - application/rss+xml - - - rtf - application/rtf - - - rtx - text/richtext - - - s - text/x-asm - - - saf - application/vnd.yamaha.smaf-audio - - - sbml - application/sbml+xml - - - sc - application/vnd.ibm.secure-container - - - scd - application/x-msschedule - - - scm - application/vnd.lotus-screencam - - - scq - application/scvp-cv-request - - - scs - application/scvp-cv-response - - - scurl - text/vnd.curl.scurl - - - sda - application/vnd.stardivision.draw - - - sdc - application/vnd.stardivision.calc - - - sdd - application/vnd.stardivision.impress - - - sdkd - application/vnd.solent.sdkm+xml - - - sdkm - application/vnd.solent.sdkm+xml - - - sdp - application/sdp - - - sdw - application/vnd.stardivision.writer - - - see - application/vnd.seemail - - - seed - application/vnd.fdsn.seed - - - sema - application/vnd.sema - - - semd - application/vnd.semd - - - semf - application/vnd.semf - - - ser - application/java-serialized-object - - - setpay - application/set-payment-initiation - - - setreg - application/set-registration-initiation - - - sfd-hdstx - application/vnd.hydrostatix.sof-data - - - sfs - application/vnd.spotfire.sfs - - - sgl - application/vnd.stardivision.writer-global - - - sgm - text/sgml - - - sgml - text/sgml - - - sh - application/x-sh - - - shar - application/x-shar - - - shf - application/shf+xml - - - - sig - application/pgp-signature - - - silo - model/mesh - - - sis - application/vnd.symbian.install - - - sisx - application/vnd.symbian.install - - - sit - application/x-stuffit - - - sitx - application/x-stuffitx - - - skd - application/vnd.koan - - - skm - application/vnd.koan - - - skp - application/vnd.koan - - - skt - application/vnd.koan - - - sldm - application/vnd.ms-powerpoint.slide.macroenabled.12 - - - sldx - application/vnd.openxmlformats-officedocument.presentationml.slide - - - slt - application/vnd.epson.salt - - - sm - application/vnd.stepmania.stepchart - - - smf - application/vnd.stardivision.math - - - smi - application/smil+xml - - - smil - application/smil+xml - - - smzip - application/vnd.stepmania.package - - - snd - audio/basic - - - snf - application/x-font-snf - - - so - application/octet-stream - - - spc - application/x-pkcs7-certificates - - - spf - application/vnd.yamaha.smaf-phrase - - - spl - application/x-futuresplash - - - spot - text/vnd.in3d.spot - - - spp - application/scvp-vp-response - - - spq - application/scvp-vp-request - - - spx - audio/ogg - - - src - application/x-wais-source - - - sru - application/sru+xml - - - srx - application/sparql-results+xml - - - sse - application/vnd.kodak-descriptor - - - ssf - application/vnd.epson.ssf - - - ssml - application/ssml+xml - - - st - application/vnd.sailingtracker.track - - - stc - application/vnd.sun.xml.calc.template - - - std - application/vnd.sun.xml.draw.template - - - stf - application/vnd.wt.stf - - - sti - application/vnd.sun.xml.impress.template - - - stk - application/hyperstudio - - - stl - application/vnd.ms-pki.stl - - - str - application/vnd.pg.format - - - stw - application/vnd.sun.xml.writer.template - - - sub - text/vnd.dvb.subtitle - - - sus - application/vnd.sus-calendar - - - susp - application/vnd.sus-calendar - - - sv4cpio - application/x-sv4cpio - - - sv4crc - application/x-sv4crc - - - svc - application/vnd.dvb.service - - - svd - application/vnd.svd - - - svg - image/svg+xml - - - svgz - image/svg+xml - - - swa - application/x-director - - - swf - application/x-shockwave-flash - - - swi - application/vnd.aristanetworks.swi - - - sxc - application/vnd.sun.xml.calc - - - sxd - application/vnd.sun.xml.draw - - - sxg - application/vnd.sun.xml.writer.global - - - sxi - application/vnd.sun.xml.impress - - - sxm - application/vnd.sun.xml.math - - - sxw - application/vnd.sun.xml.writer - - - t - text/troff - - - taglet - application/vnd.mynfc - - - tao - application/vnd.tao.intent-module-archive - - - tar - application/x-tar - - - tcap - application/vnd.3gpp2.tcap - - - tcl - application/x-tcl - - - teacher - application/vnd.smart.teacher - - - tei - application/tei+xml - - - teicorpus - application/tei+xml - - - tex - application/x-tex - - - texi - application/x-texinfo - - - texinfo - application/x-texinfo - - - text - text/plain - - - tfi - application/thraud+xml - - - tfm - application/x-tex-tfm - - - thmx - application/vnd.ms-officetheme - - - tif - image/tiff - - - tiff - image/tiff - - - tmo - application/vnd.tmobile-livetv - - - torrent - application/x-bittorrent - - - tpl - application/vnd.groove-tool-template - - - tpt - application/vnd.trid.tpt - - - tr - text/troff - - - tra - application/vnd.trueapp - - - trm - application/x-msterminal - - - tsd - application/timestamped-data - - - tsv - text/tab-separated-values - - - ttc - application/x-font-ttf - - - ttf - application/x-font-ttf - - - ttl - text/turtle - - - twd - application/vnd.simtech-mindmapper - - - twds - application/vnd.simtech-mindmapper - - - txd - application/vnd.genomatix.tuxedo - - - txf - application/vnd.mobius.txf - - - txt - text/plain - - - u32 - application/x-authorware-bin - - - udeb - application/x-debian-package - - - ufd - application/vnd.ufdl - - - ufdl - application/vnd.ufdl - - - ulw - audio/basic - - - umj - application/vnd.umajin - - - unityweb - application/vnd.unity - - - uoml - application/vnd.uoml+xml - - - uri - text/uri-list - - - uris - text/uri-list - - - urls - text/uri-list - - - ustar - application/x-ustar - - - utz - application/vnd.uiq.theme - - - uu - text/x-uuencode - - - uva - audio/vnd.dece.audio - - - uvd - application/vnd.dece.data - - - uvf - application/vnd.dece.data - - - uvg - image/vnd.dece.graphic - - - uvh - video/vnd.dece.hd - - - uvi - image/vnd.dece.graphic - - - uvm - video/vnd.dece.mobile - - - uvp - video/vnd.dece.pd - - - uvs - video/vnd.dece.sd - - - uvt - application/vnd.dece.ttml+xml - - - uvu - video/vnd.uvvu.mp4 - - - uvv - video/vnd.dece.video - - - uvva - audio/vnd.dece.audio - - - uvvd - application/vnd.dece.data - - - uvvf - application/vnd.dece.data - - - uvvg - image/vnd.dece.graphic - - - uvvh - video/vnd.dece.hd - - - uvvi - image/vnd.dece.graphic - - - uvvm - video/vnd.dece.mobile - - - uvvp - video/vnd.dece.pd - - - uvvs - video/vnd.dece.sd - - - uvvt - application/vnd.dece.ttml+xml - - - uvvu - video/vnd.uvvu.mp4 - - - uvvv - video/vnd.dece.video - - - uvvx - application/vnd.dece.unspecified - - - uvvz - application/vnd.dece.zip - - - uvx - application/vnd.dece.unspecified - - - uvz - application/vnd.dece.zip - - - vcard - text/vcard - - - vcd - application/x-cdlink - - - vcf - text/x-vcard - - - vcg - application/vnd.groove-vcard - - - vcs - text/x-vcalendar - - - vcx - application/vnd.vcx - - - vis - application/vnd.visionary - - - viv - video/vnd.vivo - - - vor - application/vnd.stardivision.writer - - - vox - application/x-authorware-bin - - - vrml - model/vrml - - - vsd - application/vnd.visio - - - vsf - application/vnd.vsf - - - vss - application/vnd.visio - - - vst - application/vnd.visio - - - vsw - application/vnd.visio - - - vtu - model/vnd.vtu - - - vxml - application/voicexml+xml - - - w3d - application/x-director - - - wad - application/x-doom - - - wav - audio/x-wav - - - wax - audio/x-ms-wax - - - - wbmp - image/vnd.wap.wbmp - - - wbs - application/vnd.criticaltools.wbs+xml - - - wbxml - application/vnd.wap.wbxml - - - wcm - application/vnd.ms-works - - - wdb - application/vnd.ms-works - - - weba - audio/webm - - - webm - video/webm - - - webp - image/webp - - - wg - application/vnd.pmi.widget - - - wgt - application/widget - - - wks - application/vnd.ms-works - - - wm - video/x-ms-wm - - - wma - audio/x-ms-wma - - - wmd - application/x-ms-wmd - - - wmf - application/x-msmetafile - - - - wml - text/vnd.wap.wml - - - - wmlc - application/vnd.wap.wmlc - - - - wmls - text/vnd.wap.wmlscript - - - - wmlsc - application/vnd.wap.wmlscriptc - - - wmv - video/x-ms-wmv - - - wmx - video/x-ms-wmx - - - wmz - application/x-ms-wmz - - - woff - application/x-font-woff - - - wpd - application/vnd.wordperfect - - - wpl - application/vnd.ms-wpl - - - wps - application/vnd.ms-works - - - wqd - application/vnd.wqd - - - wri - application/x-mswrite - - - wrl - model/vrml - - - wsdl - application/wsdl+xml - - - wspolicy - application/wspolicy+xml - - - wtb - application/vnd.webturbo - - - wvx - video/x-ms-wvx - - - x32 - application/x-authorware-bin - - - x3d - application/vnd.hzn-3d-crossword - - - xap - application/x-silverlight-app - - - xar - application/vnd.xara - - - xbap - application/x-ms-xbap - - - xbd - application/vnd.fujixerox.docuworks.binder - - - xbm - image/x-xbitmap - - - xdf - application/xcap-diff+xml - - - xdm - application/vnd.syncml.dm+xml - - - xdp - application/vnd.adobe.xdp+xml - - - xdssc - application/dssc+xml - - - xdw - application/vnd.fujixerox.docuworks - - - xenc - application/xenc+xml - - - xer - application/patch-ops-error+xml - - - xfdf - application/vnd.adobe.xfdf - - - xfdl - application/vnd.xfdl - - - xht - application/xhtml+xml - - - xhtml - application/xhtml+xml - - - xhvml - application/xv+xml - - - xif - image/vnd.xiff - - - xla - application/vnd.ms-excel - - - xlam - application/vnd.ms-excel.addin.macroenabled.12 - - - xlc - application/vnd.ms-excel - - - xlm - application/vnd.ms-excel - - - xls - application/vnd.ms-excel - - - xlsb - application/vnd.ms-excel.sheet.binary.macroenabled.12 - - - xlsm - application/vnd.ms-excel.sheet.macroenabled.12 - - - xlsx - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - - - xlt - application/vnd.ms-excel - - - xltm - application/vnd.ms-excel.template.macroenabled.12 - - - xltx - application/vnd.openxmlformats-officedocument.spreadsheetml.template - - - xlw - application/vnd.ms-excel - - - xml - application/xml - - - xo - application/vnd.olpc-sugar - - - xop - application/xop+xml - - - xpi - application/x-xpinstall - - - xpm - image/x-xpixmap - - - xpr - application/vnd.is-xpr - - - xps - application/vnd.ms-xpsdocument - - - xpw - application/vnd.intercon.formnet - - - xpx - application/vnd.intercon.formnet - - - xsl - application/xml - - - xslt - application/xslt+xml - - - xsm - application/vnd.syncml+xml - - - xspf - application/xspf+xml - - - xul - application/vnd.mozilla.xul+xml - - - xvm - application/xv+xml - - - xvml - application/xv+xml - - - xwd - image/x-xwindowdump - - - xyz - chemical/x-xyz - - - yang - application/yang - - - yin - application/yin+xml - - - z - application/x-compress - - - Z - application/x-compress - - - zaz - application/vnd.zzazz.deck+xml - - - zip - application/zip - - - zir - application/vnd.zul - - - zirz - application/vnd.zul - - - zmm - application/vnd.handheld-entertainment+xml - - - - - - - - - - - - - - - - - - index.html - index.htm - index.jsp - - - diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/logs/access_log.2022-12-06" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/logs/access_log.2022-12-06" deleted file mode 100644 index 47ae6c7..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/logs/access_log.2022-12-06" +++ /dev/null @@ -1,21 +0,0 @@ -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:01:50 +0800] "GET /jstl_el HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:01:50 +0800] "GET /jstl_el/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:02:33 +0800] "GET /jstl_el/jstl-foreach.jsp HTTP/1.1" 404 999 http-bio-8080-exec-4 1 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:03:20 +0800] "GET /jstl_el/jstl-foreach.jsp HTTP/1.1" 404 999 http-bio-8080-exec-1 17 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:03:40 +0800] "GET /jstl_el/jstl-foreachjsp HTTP/1.1" 404 997 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:11:28 +0800] "GET /jstl_el HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:11:28 +0800] "GET /jstl_el/ HTTP/1.1" 404 967 http-bio-8080-exec-3 8 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:11:34 +0800] "GET /jstl_el/demo1 HTTP/1.1" 200 1877 http-bio-8080-exec-4 402 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:24:58 +0800] "GET /jstl_el HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:24:58 +0800] "GET /jstl_el/ HTTP/1.1" 404 967 http-bio-8080-exec-3 7 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:25:03 +0800] "GET /jstl_el/demo2 HTTP/1.1" 200 489 http-bio-8080-exec-4 433 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:26:09 +0800] "GET /jstl_el/demo2 HTTP/1.1" 500 3725 http-bio-8080-exec-1 57 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:26:14 +0800] "GET /jstl_el/demo2 HTTP/1.1" 500 3725 http-bio-8080-exec-2 3 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:26:16 +0800] "GET /jstl_el/demo2 HTTP/1.1" 500 3725 http-bio-8080-exec-3 4 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:26:23 +0800] "GET /jstl_el/demo2 HTTP/1.1" 500 3725 http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:28:39 +0800] "GET /jstl_el/demo2 HTTP/1.1" 500 4032 http-bio-8080-exec-1 516 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:31:43 +0800] "GET /jstl_el/demo2 HTTP/1.1" 200 1587 http-bio-8080-exec-1 506 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:43:37 +0800] "GET /jstl_el/demo2 HTTP/1.1" 200 1587 http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:43:37 +0800] "GET /jstl_el/demo2 HTTP/1.1" 200 1587 http-bio-8080-exec-6 2 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:45:15 +0800] "GET /jstl_el/ HTTP/1.1" 404 967 http-bio-8080-exec-1 17 -0:0:0:0:0:0:0:1 - - [06/Dec/2022:20:45:38 +0800] "GET /jstl_el/demo2 HTTP/1.1" 200 1566 http-bio-8080-exec-3 41 diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/logs/access_log.2022-12-07" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/logs/access_log.2022-12-07" deleted file mode 100644 index 5b92edc..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/target/tomcat/logs/access_log.2022-12-07" +++ /dev/null @@ -1,14 +0,0 @@ -0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:18:23 +0800] "GET /jstl_el HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:18:23 +0800] "GET /jstl_el/ HTTP/1.1" 404 967 http-bio-8080-exec-3 6 -0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:18:23 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:18:40 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 312 http-bio-8080-exec-5 271 -0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:21:06 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 709 http-bio-8080-exec-7 29 -0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:21:38 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 711 http-bio-8080-exec-9 25 -0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:23:22 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 739 http-bio-8080-exec-1 23 -0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:23:36 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 750 http-bio-8080-exec-1 23 -0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:23:48 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 751 http-bio-8080-exec-1 23 -0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:24:11 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 764 http-bio-8080-exec-1 23 -0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:25:13 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 764 http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:25:14 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 764 http-bio-8080-exec-7 0 -0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:25:42 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 779 http-bio-8080-exec-7 21 -0:0:0:0:0:0:0:1 - - [07/Dec/2022:17:26:23 +0800] "GET /jstl_el/test.jsp HTTP/1.1" 200 825 http-bio-8080-exec-7 20 diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/\347\254\254\344\270\203\347\253\240" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl_el/\347\254\254\344\270\203\347\253\240" deleted file mode 100644 index e69de29..0000000 -- Gitee From 52ca55933faa71647cba2e77986b1f467e56ae0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sat, 10 Dec 2022 08:53:01 +0000 Subject: [PATCH 172/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=BD=97?= =?UTF-8?q?=E9=91=AB/webWork?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webWork/.idea/compiler.xml" | 8 - .../webWork/.idea/jarRepositories.xml" | 20 - .../webWork/.idea/misc.xml" | 19 - .../webWork/.idea/webContexts.xml" | 10 - .../webWork/.idea/workspace.xml" | 101 - .../\347\275\227\351\221\253/webWork/pom.xml" | 80 - .../webWork/src/main/webapp/WEB-INF/web.xml" | 6 - .../webWork/src/main/webapp/step1.html" | 35 - .../webWork/src/main/webapp/step2.html" | 44 - .../webWork/src/main/webapp/step3.jsp" | 73 - .../classes/com/web/addressServlet.class" | Bin 1580 -> 0 bytes .../classes/com/web/shopcarServlet.class" | Bin 1623 -> 0 bytes .../target/tomcat/conf/logging.properties" | 64 - .../target/tomcat/conf/tomcat-users.xml" | 26 - .../webWork/target/tomcat/conf/web.xml" | 4283 ----------------- .../target/tomcat/logs/access_log.2022-10-29" | 20 - .../target/tomcat/logs/access_log.2022-10-31" | 50 - .../target/tomcat/logs/access_log.2022-11-01" | 6 - .../target/tomcat/logs/access_log.2022-11-03" | 63 - .../target/tomcat/logs/access_log.2022-11-06" | 87 - 20 files changed, 4995 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/compiler.xml" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/jarRepositories.xml" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/misc.xml" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/webContexts.xml" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/workspace.xml" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/pom.xml" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/WEB-INF/web.xml" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step1.html" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step2.html" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step3.jsp" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/classes/com/web/addressServlet.class" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/classes/com/web/shopcarServlet.class" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/logging.properties" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/tomcat-users.xml" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/web.xml" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-10-29" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-10-31" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-01" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-03" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-06" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/compiler.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/compiler.xml" deleted file mode 100644 index 6e5a203..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/compiler.xml" +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/jarRepositories.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/jarRepositories.xml" deleted file mode 100644 index a468a99..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/jarRepositories.xml" +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/misc.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/misc.xml" deleted file mode 100644 index 149f5ab..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/misc.xml" +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/webContexts.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/webContexts.xml" deleted file mode 100644 index 0c7b27c..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/webContexts.xml" +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/workspace.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/workspace.xml" deleted file mode 100644 index 1483d55..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/.idea/workspace.xml" +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1667038653869 - - - - - - \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/pom.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/pom.xml" deleted file mode 100644 index 6c3d706..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/pom.xml" +++ /dev/null @@ -1,80 +0,0 @@ - - - 4.0.0 - - org.example - webWork - 1.0-SNAPSHOT - - pom - - - 8 - 8 - - - - - - - org.mybatis - mybatis - 3.5.5 - - - - - mysql - mysql-connector-java - 8.0.30 - - - - - javax.servlet - javax.servlet-api - 3.1.0 - provided - - - - - - javax.servlet.jsp - jsp-api - 2.2 - provided - - - - - jstl - jstl - 1.2 - - - taglibs - standard - 1.1.2 - - - - - - - - - org.apache.tomcat.maven - tomcat7-maven-plugin - 2.2 - - true - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/WEB-INF/web.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/WEB-INF/web.xml" deleted file mode 100644 index d80081d..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/WEB-INF/web.xml" +++ /dev/null @@ -1,6 +0,0 @@ - - - \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step1.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step1.html" deleted file mode 100644 index f8f1376..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step1.html" +++ /dev/null @@ -1,35 +0,0 @@ - - - - - 购物车 - - -
- -

Step1:选择要购买的书籍

- - - - - - - - - - - - - - - - - - - - - -
书名购买
Java

Oraclecheck

Strutscheck

-
- - \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step2.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step2.html" deleted file mode 100644 index 2ab8b4e..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step2.html" +++ /dev/null @@ -1,44 +0,0 @@ - - - - - 订单信息 - - -

请输入寄送地址与信用卡信息

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
基本信息
姓名
寄送地址
信用卡信息
种类Master
Visa
卡号
-
- - \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step3.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step3.jsp" deleted file mode 100644 index bf53de8..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/src/main/webapp/step3.jsp" +++ /dev/null @@ -1,73 +0,0 @@ -<%-- - Created by IntelliJ IDEA. - User: ɶ - Date: 2022/10/31 - Time: 17:07 - To change this template use File | Settings | File Templates. ---%> -<%@ page language="java" pageEncoding="gb2312"%> -<%@ page contentType="text/html;charset=gb2312"%> -<%@ page import="java.net.URLEncoder" %> -<%@ page import="java.net.URLDecoder" %> - - - - ȷ - - -
- - - <% - request.setCharacterEncoding("utf-8"); - %> - - - <% -// response.setContentType("test/http;charset=UTF-8"); - HttpSession session1 = request.getSession(); - String name = String.valueOf(session1.getAttribute("name")); - String javacheck = (String) session1.getAttribute("javacheck"); - String Oraclecheck = (String) session1.getAttribute("Oraclecheck"); - String Strutscheck = (String) session1.getAttribute("Strutscheck"); - String address = String.valueOf(session1.getAttribute("address")); - String cardcheck = String.valueOf(session1.getAttribute("cardcheck")); - String cardnumber = String.valueOf(session1.getAttribute("cardnumber")); - - %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
˿<%out.write(name);%>
ַ<%URLDecoder.decode(address,"UTF-8");%> - <%out.print(address);%>
Ϣ
ÿ<%out.write(cardcheck);%>
<%out.write(cardnumber);%>
Ŀ
<%out.write(javacheck);%>
<%out.print(Oraclecheck);%>
<%out.print(Strutscheck);%>
-
- - diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/classes/com/web/addressServlet.class" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/classes/com/web/addressServlet.class" deleted file mode 100644 index 20a9e9433fb8d15794edbbfdf3fc78b48a3ec7b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1580 zcmah}*-{fh6g{17LNb5`L85G;tN}&^7Zw);7phW11q-Y6X)@`8fiM$hI>>MNqJ^1TssuW2>hE$?=ITfz*mylLDP(+mUaZ`&H?^Gplvp6w0n;*0)U0 z4$kpqO6}ObKyTS{_l-}oYM8Z}Cw+fYdWUtX76sBZ_q9|4mGSbfd1xLPe)MGQDAh3D zaEW~@@}MbwwRowU-*6pYE(Tzeo;(m3yEG)qOmf855V#ylT!RsgxgU}bz#Dbb*)}$n zXFJ=Zrp06h+APznSv%6&6UYU&6LyX+KAT~?j=<3QAVUx4%e_3ZWJA&2*YH@wJjJQG z8?MjxXUSJ~AVt^dF3$wm1d5fWqwIaTW&1W2T6P>)nPE18k$o+vK(6NG59o^^= z=s9~j1O_f1iT@m8pshZ!6`?M+YpkuGxE;ATZ#-%O`nFUXrbmgD^aMtu!8j%JMA*4g zS5$*>n}3uY9*=y^9PK~ap3gL%58an)S#h+gO+^95&VX_P$$E8HS}Obxj9$hynq`vp zrBkcOn(Z-Ep!U$SR;F|eO<+MQYK6q~F|tX} zN);Irndu^9A~RED5Y4GV+c9zp{Dn4yJWF<X=PYt4nypwhGC+} zF!DC;(08QOlr`o^@=cp8O?^TBFYp|l5hm#mK@CN2El^quloo?JSt5Z^MkfemoO=hs MPw+SS5yD65H_EwwYXATM diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/classes/com/web/shopcarServlet.class" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/classes/com/web/shopcarServlet.class" deleted file mode 100644 index 4e7e47818e4bd08a4fcdeaf380135e7b2a4961d5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1623 zcmai!*-{fh6o&uKHd#j0;1(6c1zCcO`vPu=2v(t3LF0v2lSvmDO=jYB2YD@TwD7_Q z@KJmS%YPOFXpoEaobLJiobN1?AHTkR2XGTBMI6FR9%o9pg4sMq@)!+GtAwk#7FyTy zxKX0=RuLv{8@OZOu0Za->$&=&KzeejE|6LDn^NHLs_V&@y-q_0ukA*gC*@V&vDMm%Ot7>T*iKs}k`m8*S|vL}Nu^xh6ByecF;aw%9N*J&OTV&pOQ5*4<;bq) zWo6)=fjNO}(_faXWO3c^1&(~?hHV+%Tk+YDP@q!ldD`vBx~p7vYr*q;ZAZ=o#{WXG z`!B7xva!>-?55rBg`@CSQ%wxvuz`6K_wm5QLp(C@*u(;!m{`P9B88Li)(<{dO3Uu` z*_Q6K4J?^>hGi4SaYEq4;CT@k{r`;oBS>)j#bWfRN3L%@U)yy${(ry8>FDUA7$VE!?pZpP@a##0$sJUa_#nSj5I8=7WU7wy{8u@|zak(F5zYwL zBivbh3O=*bUm-rzNZ}~gTy$7MnYI}VFpOi|Wx^SuD!lxY&hmWLtL4--(kZ;GmNStt zm#LPsv6ZcEBPTGItK`b5E88&App~gm7@OG&l{Bf#Q)kSS3)?8ButPJABBKnUKEyKnUaMIn8QUZ;Syf(VptJ*Bq!_63(o6(37R&lj eMjy&Zpmv8y;WBThn9wAjLxi8=Z~7gCLiIOaj*r~{ diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/logging.properties" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/logging.properties" deleted file mode 100644 index 76c9512..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/logging.properties" +++ /dev/null @@ -1,64 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler - -.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler - -############################################################ -# Handler specific properties. -# Describes specific configuration info for Handlers. -############################################################ - -1catalina.org.apache.juli.FileHandler.level = FINE -1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -1catalina.org.apache.juli.FileHandler.prefix = catalina. - -2localhost.org.apache.juli.FileHandler.level = FINE -2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -2localhost.org.apache.juli.FileHandler.prefix = localhost. - -3manager.org.apache.juli.FileHandler.level = FINE -3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -3manager.org.apache.juli.FileHandler.prefix = manager. - -4host-manager.org.apache.juli.FileHandler.level = FINE -4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -4host-manager.org.apache.juli.FileHandler.prefix = host-manager. - -java.util.logging.ConsoleHandler.level = FINE -java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter - - -############################################################ -# Facility specific properties. -# Provides extra control for each logger. -############################################################ - -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler - -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler - -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler - -# For example, set the org.apache.catalina.util.LifecycleBase logger to log -# each component that extends LifecycleBase changing state: -#org.apache.catalina.util.LifecycleBase.level = FINE - -# To see debug messages in TldLocationsCache, uncomment the following line: -#org.apache.jasper.compiler.TldLocationsCache.level = FINE diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/tomcat-users.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/tomcat-users.xml" deleted file mode 100644 index 7114f5d..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/tomcat-users.xml" +++ /dev/null @@ -1,26 +0,0 @@ - - - - - diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/web.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/web.xml" deleted file mode 100644 index cc8383c..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/conf/web.xml" +++ /dev/null @@ -1,4283 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - default - org.apache.catalina.servlets.DefaultServlet - - debug - 0 - - - listings - false - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jsp - org.apache.jasper.servlet.JspServlet - - fork - false - - - xpoweredBy - false - - 3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - default - / - - - - - jsp - *.jsp - *.jspx - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 30 - - - - - - - - - - - - 123 - application/vnd.lotus-1-2-3 - - - 3dml - text/vnd.in3d.3dml - - - 3g2 - video/3gpp2 - - - 3gp - video/3gpp - - - 7z - application/x-7z-compressed - - - aab - application/x-authorware-bin - - - aac - audio/x-aac - - - aam - application/x-authorware-map - - - aas - application/x-authorware-seg - - - abs - audio/x-mpeg - - - abw - application/x-abiword - - - ac - application/pkix-attr-cert - - - acc - application/vnd.americandynamics.acc - - - ace - application/x-ace-compressed - - - acu - application/vnd.acucobol - - - acutc - application/vnd.acucorp - - - adp - audio/adpcm - - - aep - application/vnd.audiograph - - - afm - application/x-font-type1 - - - afp - application/vnd.ibm.modcap - - - ahead - application/vnd.ahead.space - - - ai - application/postscript - - - aif - audio/x-aiff - - - aifc - audio/x-aiff - - - aiff - audio/x-aiff - - - aim - application/x-aim - - - air - application/vnd.adobe.air-application-installer-package+zip - - - ait - application/vnd.dvb.ait - - - ami - application/vnd.amiga.ami - - - anx - application/annodex - - - apk - application/vnd.android.package-archive - - - application - application/x-ms-application - - - apr - application/vnd.lotus-approach - - - art - image/x-jg - - - asc - application/pgp-signature - - - asf - video/x-ms-asf - - - asm - text/x-asm - - - aso - application/vnd.accpac.simply.aso - - - asx - video/x-ms-asf - - - atc - application/vnd.acucorp - - - atom - application/atom+xml - - - atomcat - application/atomcat+xml - - - atomsvc - application/atomsvc+xml - - - atx - application/vnd.antix.game-component - - - au - audio/basic - - - avi - video/x-msvideo - - - avx - video/x-rad-screenplay - - - aw - application/applixware - - - axa - audio/annodex - - - axv - video/annodex - - - azf - application/vnd.airzip.filesecure.azf - - - azs - application/vnd.airzip.filesecure.azs - - - azw - application/vnd.amazon.ebook - - - bat - application/x-msdownload - - - bcpio - application/x-bcpio - - - bdf - application/x-font-bdf - - - bdm - application/vnd.syncml.dm+wbxml - - - bed - application/vnd.realvnc.bed - - - bh2 - application/vnd.fujitsu.oasysprs - - - bin - application/octet-stream - - - bmi - application/vnd.bmi - - - bmp - image/bmp - - - body - text/html - - - book - application/vnd.framemaker - - - box - application/vnd.previewsystems.box - - - boz - application/x-bzip2 - - - bpk - application/octet-stream - - - btif - image/prs.btif - - - bz - application/x-bzip - - - bz2 - application/x-bzip2 - - - c - text/x-c - - - c11amc - application/vnd.cluetrust.cartomobile-config - - - c11amz - application/vnd.cluetrust.cartomobile-config-pkg - - - c4d - application/vnd.clonk.c4group - - - c4f - application/vnd.clonk.c4group - - - c4g - application/vnd.clonk.c4group - - - c4p - application/vnd.clonk.c4group - - - c4u - application/vnd.clonk.c4group - - - cab - application/vnd.ms-cab-compressed - - - cap - application/vnd.tcpdump.pcap - - - car - application/vnd.curl.car - - - cat - application/vnd.ms-pki.seccat - - - cc - text/x-c - - - cct - application/x-director - - - ccxml - application/ccxml+xml - - - cdbcmsg - application/vnd.contact.cmsg - - - cdf - application/x-cdf - - - cdkey - application/vnd.mediastation.cdkey - - - cdmia - application/cdmi-capability - - - cdmic - application/cdmi-container - - - cdmid - application/cdmi-domain - - - cdmio - application/cdmi-object - - - cdmiq - application/cdmi-queue - - - cdx - chemical/x-cdx - - - cdxml - application/vnd.chemdraw+xml - - - cdy - application/vnd.cinderella - - - cer - application/pkix-cert - - - cgm - image/cgm - - - chat - application/x-chat - - - chm - application/vnd.ms-htmlhelp - - - chrt - application/vnd.kde.kchart - - - cif - chemical/x-cif - - - cii - application/vnd.anser-web-certificate-issue-initiation - - - cil - application/vnd.ms-artgalry - - - cla - application/vnd.claymore - - - class - application/java - - - clkk - application/vnd.crick.clicker.keyboard - - - clkp - application/vnd.crick.clicker.palette - - - clkt - application/vnd.crick.clicker.template - - - clkw - application/vnd.crick.clicker.wordbank - - - clkx - application/vnd.crick.clicker - - - clp - application/x-msclip - - - cmc - application/vnd.cosmocaller - - - cmdf - chemical/x-cmdf - - - cml - chemical/x-cml - - - cmp - application/vnd.yellowriver-custom-menu - - - cmx - image/x-cmx - - - cod - application/vnd.rim.cod - - - com - application/x-msdownload - - - conf - text/plain - - - cpio - application/x-cpio - - - cpp - text/x-c - - - cpt - application/mac-compactpro - - - crd - application/x-mscardfile - - - crl - application/pkix-crl - - - crt - application/x-x509-ca-cert - - - cryptonote - application/vnd.rig.cryptonote - - - csh - application/x-csh - - - csml - chemical/x-csml - - - csp - application/vnd.commonspace - - - css - text/css - - - cst - application/x-director - - - csv - text/csv - - - cu - application/cu-seeme - - - curl - text/vnd.curl - - - cww - application/prs.cww - - - cxt - application/x-director - - - cxx - text/x-c - - - dae - model/vnd.collada+xml - - - daf - application/vnd.mobius.daf - - - dataless - application/vnd.fdsn.seed - - - davmount - application/davmount+xml - - - dcr - application/x-director - - - dcurl - text/vnd.curl.dcurl - - - dd2 - application/vnd.oma.dd2+xml - - - ddd - application/vnd.fujixerox.ddd - - - deb - application/x-debian-package - - - def - text/plain - - - deploy - application/octet-stream - - - der - application/x-x509-ca-cert - - - dfac - application/vnd.dreamfactory - - - dib - image/bmp - - - dic - text/x-c - - - dir - application/x-director - - - dis - application/vnd.mobius.dis - - - dist - application/octet-stream - - - distz - application/octet-stream - - - djv - image/vnd.djvu - - - djvu - image/vnd.djvu - - - dll - application/x-msdownload - - - dmg - application/octet-stream - - - dmp - application/vnd.tcpdump.pcap - - - dms - application/octet-stream - - - dna - application/vnd.dna - - - doc - application/msword - - - docm - application/vnd.ms-word.document.macroenabled.12 - - - docx - application/vnd.openxmlformats-officedocument.wordprocessingml.document - - - dot - application/msword - - - dotm - application/vnd.ms-word.template.macroenabled.12 - - - dotx - application/vnd.openxmlformats-officedocument.wordprocessingml.template - - - dp - application/vnd.osgi.dp - - - dpg - application/vnd.dpgraph - - - dra - audio/vnd.dra - - - dsc - text/prs.lines.tag - - - dssc - application/dssc+der - - - dtb - application/x-dtbook+xml - - - dtd - application/xml-dtd - - - dts - audio/vnd.dts - - - dtshd - audio/vnd.dts.hd - - - dump - application/octet-stream - - - dv - video/x-dv - - - dvb - video/vnd.dvb.file - - - dvi - application/x-dvi - - - dwf - model/vnd.dwf - - - dwg - image/vnd.dwg - - - dxf - image/vnd.dxf - - - dxp - application/vnd.spotfire.dxp - - - dxr - application/x-director - - - ecelp4800 - audio/vnd.nuera.ecelp4800 - - - ecelp7470 - audio/vnd.nuera.ecelp7470 - - - ecelp9600 - audio/vnd.nuera.ecelp9600 - - - ecma - application/ecmascript - - - edm - application/vnd.novadigm.edm - - - edx - application/vnd.novadigm.edx - - - efif - application/vnd.picsel - - - ei6 - application/vnd.pg.osasli - - - elc - application/octet-stream - - - eml - message/rfc822 - - - emma - application/emma+xml - - - eol - audio/vnd.digital-winds - - - eot - application/vnd.ms-fontobject - - - eps - application/postscript - - - epub - application/epub+zip - - - es3 - application/vnd.eszigno3+xml - - - esf - application/vnd.epson.esf - - - et3 - application/vnd.eszigno3+xml - - - etx - text/x-setext - - - exe - application/octet-stream - - - exi - application/exi - - - ext - application/vnd.novadigm.ext - - - ez - application/andrew-inset - - - ez2 - application/vnd.ezpix-album - - - ez3 - application/vnd.ezpix-package - - - f - text/x-fortran - - - f4v - video/x-f4v - - - f77 - text/x-fortran - - - f90 - text/x-fortran - - - fbs - image/vnd.fastbidsheet - - - fcs - application/vnd.isac.fcs - - - fdf - application/vnd.fdf - - - fe_launch - application/vnd.denovo.fcselayout-link - - - fg5 - application/vnd.fujitsu.oasysgp - - - fgd - application/x-director - - - fh - image/x-freehand - - - fh4 - image/x-freehand - - - fh5 - image/x-freehand - - - fh7 - image/x-freehand - - - fhc - image/x-freehand - - - fig - application/x-xfig - - - flac - audio/flac - - - fli - video/x-fli - - - flo - application/vnd.micrografx.flo - - - flv - video/x-flv - - - flw - application/vnd.kde.kivio - - - flx - text/vnd.fmi.flexstor - - - fly - text/vnd.fly - - - fm - application/vnd.framemaker - - - fnc - application/vnd.frogans.fnc - - - for - text/x-fortran - - - fpx - image/vnd.fpx - - - frame - application/vnd.framemaker - - - fsc - application/vnd.fsc.weblaunch - - - fst - image/vnd.fst - - - ftc - application/vnd.fluxtime.clip - - - fti - application/vnd.anser-web-funds-transfer-initiation - - - fvt - video/vnd.fvt - - - fxp - application/vnd.adobe.fxp - - - fxpl - application/vnd.adobe.fxp - - - fzs - application/vnd.fuzzysheet - - - g2w - application/vnd.geoplan - - - g3 - image/g3fax - - - g3w - application/vnd.geospace - - - gac - application/vnd.groove-account - - - gbr - application/rpki-ghostbusters - - - gdl - model/vnd.gdl - - - geo - application/vnd.dynageo - - - gex - application/vnd.geometry-explorer - - - ggb - application/vnd.geogebra.file - - - ggt - application/vnd.geogebra.tool - - - ghf - application/vnd.groove-help - - - gif - image/gif - - - gim - application/vnd.groove-identity-message - - - gmx - application/vnd.gmx - - - gnumeric - application/x-gnumeric - - - gph - application/vnd.flographit - - - gqf - application/vnd.grafeq - - - gqs - application/vnd.grafeq - - - gram - application/srgs - - - gre - application/vnd.geometry-explorer - - - grv - application/vnd.groove-injector - - - grxml - application/srgs+xml - - - gsf - application/x-font-ghostscript - - - gtar - application/x-gtar - - - gtm - application/vnd.groove-tool-message - - - gtw - model/vnd.gtw - - - gv - text/vnd.graphviz - - - gxt - application/vnd.geonext - - - gz - application/x-gzip - - - h - text/x-c - - - h261 - video/h261 - - - h263 - video/h263 - - - h264 - video/h264 - - - hal - application/vnd.hal+xml - - - hbci - application/vnd.hbci - - - hdf - application/x-hdf - - - hh - text/x-c - - - hlp - application/winhlp - - - hpgl - application/vnd.hp-hpgl - - - hpid - application/vnd.hp-hpid - - - hps - application/vnd.hp-hps - - - hqx - application/mac-binhex40 - - - htc - text/x-component - - - htke - application/vnd.kenameaapp - - - htm - text/html - - - html - text/html - - - hvd - application/vnd.yamaha.hv-dic - - - hvp - application/vnd.yamaha.hv-voice - - - hvs - application/vnd.yamaha.hv-script - - - i2g - application/vnd.intergeo - - - icc - application/vnd.iccprofile - - - ice - x-conference/x-cooltalk - - - icm - application/vnd.iccprofile - - - ico - image/x-icon - - - ics - text/calendar - - - ief - image/ief - - - ifb - text/calendar - - - ifm - application/vnd.shana.informed.formdata - - - iges - model/iges - - - igl - application/vnd.igloader - - - igm - application/vnd.insors.igm - - - igs - model/iges - - - igx - application/vnd.micrografx.igx - - - iif - application/vnd.shana.informed.interchange - - - imp - application/vnd.accpac.simply.imp - - - ims - application/vnd.ms-ims - - - in - text/plain - - - ink - application/inkml+xml - - - inkml - application/inkml+xml - - - iota - application/vnd.astraea-software.iota - - - ipfix - application/ipfix - - - ipk - application/vnd.shana.informed.package - - - irm - application/vnd.ibm.rights-management - - - irp - application/vnd.irepository.package+xml - - - iso - application/octet-stream - - - itp - application/vnd.shana.informed.formtemplate - - - ivp - application/vnd.immervision-ivp - - - ivu - application/vnd.immervision-ivu - - - jad - text/vnd.sun.j2me.app-descriptor - - - jam - application/vnd.jam - - - jar - application/java-archive - - - java - text/x-java-source - - - jisp - application/vnd.jisp - - - jlt - application/vnd.hp-jlyt - - - jnlp - application/x-java-jnlp-file - - - joda - application/vnd.joost.joda-archive - - - jpe - image/jpeg - - - jpeg - image/jpeg - - - jpg - image/jpeg - - - jpgm - video/jpm - - - jpgv - video/jpeg - - - jpm - video/jpm - - - js - application/javascript - - - jsf - text/plain - - - json - application/json - - - jspf - text/plain - - - kar - audio/midi - - - karbon - application/vnd.kde.karbon - - - kfo - application/vnd.kde.kformula - - - kia - application/vnd.kidspiration - - - kml - application/vnd.google-earth.kml+xml - - - kmz - application/vnd.google-earth.kmz - - - kne - application/vnd.kinar - - - knp - application/vnd.kinar - - - kon - application/vnd.kde.kontour - - - kpr - application/vnd.kde.kpresenter - - - kpt - application/vnd.kde.kpresenter - - - ksp - application/vnd.kde.kspread - - - ktr - application/vnd.kahootz - - - ktx - image/ktx - - - ktz - application/vnd.kahootz - - - kwd - application/vnd.kde.kword - - - kwt - application/vnd.kde.kword - - - lasxml - application/vnd.las.las+xml - - - latex - application/x-latex - - - lbd - application/vnd.llamagraphics.life-balance.desktop - - - lbe - application/vnd.llamagraphics.life-balance.exchange+xml - - - les - application/vnd.hhe.lesson-player - - - lha - application/octet-stream - - - link66 - application/vnd.route66.link66+xml - - - list - text/plain - - - list3820 - application/vnd.ibm.modcap - - - listafp - application/vnd.ibm.modcap - - - log - text/plain - - - lostxml - application/lost+xml - - - lrf - application/octet-stream - - - lrm - application/vnd.ms-lrm - - - ltf - application/vnd.frogans.ltf - - - lvp - audio/vnd.lucent.voice - - - lwp - application/vnd.lotus-wordpro - - - lzh - application/octet-stream - - - m13 - application/x-msmediaview - - - m14 - application/x-msmediaview - - - m1v - video/mpeg - - - m21 - application/mp21 - - - m2a - audio/mpeg - - - m2v - video/mpeg - - - m3a - audio/mpeg - - - m3u - audio/x-mpegurl - - - m3u8 - application/vnd.apple.mpegurl - - - m4a - audio/mp4 - - - m4b - audio/mp4 - - - m4r - audio/mp4 - - - m4u - video/vnd.mpegurl - - - m4v - video/mp4 - - - ma - application/mathematica - - - mac - image/x-macpaint - - - mads - application/mads+xml - - - mag - application/vnd.ecowin.chart - - - maker - application/vnd.framemaker - - - man - text/troff - - - mathml - application/mathml+xml - - - mb - application/mathematica - - - mbk - application/vnd.mobius.mbk - - - mbox - application/mbox - - - mc1 - application/vnd.medcalcdata - - - mcd - application/vnd.mcd - - - mcurl - text/vnd.curl.mcurl - - - mdb - application/x-msaccess - - - mdi - image/vnd.ms-modi - - - me - text/troff - - - mesh - model/mesh - - - meta4 - application/metalink4+xml - - - mets - application/mets+xml - - - mfm - application/vnd.mfmp - - - mft - application/rpki-manifest - - - mgp - application/vnd.osgeo.mapguide.package - - - mgz - application/vnd.proteus.magazine - - - mid - audio/midi - - - midi - audio/midi - - - mif - application/x-mif - - - mime - message/rfc822 - - - mj2 - video/mj2 - - - mjp2 - video/mj2 - - - mlp - application/vnd.dolby.mlp - - - mmd - application/vnd.chipnuts.karaoke-mmd - - - mmf - application/vnd.smaf - - - mmr - image/vnd.fujixerox.edmics-mmr - - - mny - application/x-msmoney - - - mobi - application/x-mobipocket-ebook - - - mods - application/mods+xml - - - mov - video/quicktime - - - movie - video/x-sgi-movie - - - mp1 - audio/mpeg - - - mp2 - audio/mpeg - - - mp21 - application/mp21 - - - mp2a - audio/mpeg - - - mp3 - audio/mpeg - - - mp4 - video/mp4 - - - mp4a - audio/mp4 - - - mp4s - application/mp4 - - - mp4v - video/mp4 - - - mpa - audio/mpeg - - - mpc - application/vnd.mophun.certificate - - - mpe - video/mpeg - - - mpeg - video/mpeg - - - mpega - audio/x-mpeg - - - mpg - video/mpeg - - - mpg4 - video/mp4 - - - mpga - audio/mpeg - - - mpkg - application/vnd.apple.installer+xml - - - mpm - application/vnd.blueice.multipass - - - mpn - application/vnd.mophun.application - - - mpp - application/vnd.ms-project - - - mpt - application/vnd.ms-project - - - mpv2 - video/mpeg2 - - - mpy - application/vnd.ibm.minipay - - - mqy - application/vnd.mobius.mqy - - - mrc - application/marc - - - mrcx - application/marcxml+xml - - - ms - text/troff - - - mscml - application/mediaservercontrol+xml - - - mseed - application/vnd.fdsn.mseed - - - mseq - application/vnd.mseq - - - msf - application/vnd.epson.msf - - - msh - model/mesh - - - msi - application/x-msdownload - - - msl - application/vnd.mobius.msl - - - msty - application/vnd.muvee.style - - - mts - model/vnd.mts - - - mus - application/vnd.musician - - - musicxml - application/vnd.recordare.musicxml+xml - - - mvb - application/x-msmediaview - - - mwf - application/vnd.mfer - - - mxf - application/mxf - - - mxl - application/vnd.recordare.musicxml - - - mxml - application/xv+xml - - - mxs - application/vnd.triscape.mxs - - - mxu - video/vnd.mpegurl - - - n-gage - application/vnd.nokia.n-gage.symbian.install - - - n3 - text/n3 - - - nb - application/mathematica - - - nbp - application/vnd.wolfram.player - - - nc - application/x-netcdf - - - ncx - application/x-dtbncx+xml - - - ngdat - application/vnd.nokia.n-gage.data - - - nlu - application/vnd.neurolanguage.nlu - - - nml - application/vnd.enliven - - - nnd - application/vnd.noblenet-directory - - - nns - application/vnd.noblenet-sealer - - - nnw - application/vnd.noblenet-web - - - npx - image/vnd.net-fpx - - - nsf - application/vnd.lotus-notes - - - oa2 - application/vnd.fujitsu.oasys2 - - - oa3 - application/vnd.fujitsu.oasys3 - - - oas - application/vnd.fujitsu.oasys - - - obd - application/x-msbinder - - - oda - application/oda - - - - odb - application/vnd.oasis.opendocument.database - - - - odc - application/vnd.oasis.opendocument.chart - - - - odf - application/vnd.oasis.opendocument.formula - - - odft - application/vnd.oasis.opendocument.formula-template - - - - odg - application/vnd.oasis.opendocument.graphics - - - - odi - application/vnd.oasis.opendocument.image - - - - odm - application/vnd.oasis.opendocument.text-master - - - - odp - application/vnd.oasis.opendocument.presentation - - - - ods - application/vnd.oasis.opendocument.spreadsheet - - - - odt - application/vnd.oasis.opendocument.text - - - oga - audio/ogg - - - ogg - audio/ogg - - - ogv - video/ogg - - - - ogx - application/ogg - - - onepkg - application/onenote - - - onetmp - application/onenote - - - onetoc - application/onenote - - - onetoc2 - application/onenote - - - opf - application/oebps-package+xml - - - oprc - application/vnd.palm - - - org - application/vnd.lotus-organizer - - - osf - application/vnd.yamaha.openscoreformat - - - osfpvg - application/vnd.yamaha.openscoreformat.osfpvg+xml - - - otc - application/vnd.oasis.opendocument.chart-template - - - otf - application/x-font-otf - - - - otg - application/vnd.oasis.opendocument.graphics-template - - - - oth - application/vnd.oasis.opendocument.text-web - - - oti - application/vnd.oasis.opendocument.image-template - - - - otp - application/vnd.oasis.opendocument.presentation-template - - - - ots - application/vnd.oasis.opendocument.spreadsheet-template - - - - ott - application/vnd.oasis.opendocument.text-template - - - oxps - application/oxps - - - oxt - application/vnd.openofficeorg.extension - - - p - text/x-pascal - - - p10 - application/pkcs10 - - - p12 - application/x-pkcs12 - - - p7b - application/x-pkcs7-certificates - - - p7c - application/pkcs7-mime - - - p7m - application/pkcs7-mime - - - p7r - application/x-pkcs7-certreqresp - - - p7s - application/pkcs7-signature - - - p8 - application/pkcs8 - - - pas - text/x-pascal - - - paw - application/vnd.pawaafile - - - pbd - application/vnd.powerbuilder6 - - - pbm - image/x-portable-bitmap - - - pcap - application/vnd.tcpdump.pcap - - - pcf - application/x-font-pcf - - - pcl - application/vnd.hp-pcl - - - pclxl - application/vnd.hp-pclxl - - - pct - image/pict - - - pcurl - application/vnd.curl.pcurl - - - pcx - image/x-pcx - - - pdb - application/vnd.palm - - - pdf - application/pdf - - - pfa - application/x-font-type1 - - - pfb - application/x-font-type1 - - - pfm - application/x-font-type1 - - - pfr - application/font-tdpfr - - - pfx - application/x-pkcs12 - - - pgm - image/x-portable-graymap - - - pgn - application/x-chess-pgn - - - pgp - application/pgp-encrypted - - - pic - image/pict - - - pict - image/pict - - - pkg - application/octet-stream - - - pki - application/pkixcmp - - - pkipath - application/pkix-pkipath - - - plb - application/vnd.3gpp.pic-bw-large - - - plc - application/vnd.mobius.plc - - - plf - application/vnd.pocketlearn - - - pls - audio/x-scpls - - - pml - application/vnd.ctc-posml - - - png - image/png - - - pnm - image/x-portable-anymap - - - pnt - image/x-macpaint - - - portpkg - application/vnd.macports.portpkg - - - pot - application/vnd.ms-powerpoint - - - potm - application/vnd.ms-powerpoint.template.macroenabled.12 - - - potx - application/vnd.openxmlformats-officedocument.presentationml.template - - - ppam - application/vnd.ms-powerpoint.addin.macroenabled.12 - - - ppd - application/vnd.cups-ppd - - - ppm - image/x-portable-pixmap - - - pps - application/vnd.ms-powerpoint - - - ppsm - application/vnd.ms-powerpoint.slideshow.macroenabled.12 - - - ppsx - application/vnd.openxmlformats-officedocument.presentationml.slideshow - - - ppt - application/vnd.ms-powerpoint - - - pptm - application/vnd.ms-powerpoint.presentation.macroenabled.12 - - - pptx - application/vnd.openxmlformats-officedocument.presentationml.presentation - - - pqa - application/vnd.palm - - - prc - application/x-mobipocket-ebook - - - pre - application/vnd.lotus-freelance - - - prf - application/pics-rules - - - ps - application/postscript - - - psb - application/vnd.3gpp.pic-bw-small - - - psd - image/vnd.adobe.photoshop - - - psf - application/x-font-linux-psf - - - pskcxml - application/pskc+xml - - - ptid - application/vnd.pvi.ptid1 - - - pub - application/x-mspublisher - - - pvb - application/vnd.3gpp.pic-bw-var - - - pwn - application/vnd.3m.post-it-notes - - - pya - audio/vnd.ms-playready.media.pya - - - pyv - video/vnd.ms-playready.media.pyv - - - qam - application/vnd.epson.quickanime - - - qbo - application/vnd.intu.qbo - - - qfx - application/vnd.intu.qfx - - - qps - application/vnd.publishare-delta-tree - - - qt - video/quicktime - - - qti - image/x-quicktime - - - qtif - image/x-quicktime - - - qwd - application/vnd.quark.quarkxpress - - - qwt - application/vnd.quark.quarkxpress - - - qxb - application/vnd.quark.quarkxpress - - - qxd - application/vnd.quark.quarkxpress - - - qxl - application/vnd.quark.quarkxpress - - - qxt - application/vnd.quark.quarkxpress - - - ra - audio/x-pn-realaudio - - - ram - audio/x-pn-realaudio - - - rar - application/x-rar-compressed - - - ras - image/x-cmu-raster - - - rcprofile - application/vnd.ipunplugged.rcprofile - - - rdf - application/rdf+xml - - - rdz - application/vnd.data-vision.rdz - - - rep - application/vnd.businessobjects - - - res - application/x-dtbresource+xml - - - rgb - image/x-rgb - - - rif - application/reginfo+xml - - - rip - audio/vnd.rip - - - rl - application/resource-lists+xml - - - rlc - image/vnd.fujixerox.edmics-rlc - - - rld - application/resource-lists-diff+xml - - - rm - application/vnd.rn-realmedia - - - rmi - audio/midi - - - rmp - audio/x-pn-realaudio-plugin - - - rms - application/vnd.jcp.javame.midlet-rms - - - rnc - application/relax-ng-compact-syntax - - - roa - application/rpki-roa - - - roff - text/troff - - - rp9 - application/vnd.cloanto.rp9 - - - rpss - application/vnd.nokia.radio-presets - - - rpst - application/vnd.nokia.radio-preset - - - rq - application/sparql-query - - - rs - application/rls-services+xml - - - rsd - application/rsd+xml - - - rss - application/rss+xml - - - rtf - application/rtf - - - rtx - text/richtext - - - s - text/x-asm - - - saf - application/vnd.yamaha.smaf-audio - - - sbml - application/sbml+xml - - - sc - application/vnd.ibm.secure-container - - - scd - application/x-msschedule - - - scm - application/vnd.lotus-screencam - - - scq - application/scvp-cv-request - - - scs - application/scvp-cv-response - - - scurl - text/vnd.curl.scurl - - - sda - application/vnd.stardivision.draw - - - sdc - application/vnd.stardivision.calc - - - sdd - application/vnd.stardivision.impress - - - sdkd - application/vnd.solent.sdkm+xml - - - sdkm - application/vnd.solent.sdkm+xml - - - sdp - application/sdp - - - sdw - application/vnd.stardivision.writer - - - see - application/vnd.seemail - - - seed - application/vnd.fdsn.seed - - - sema - application/vnd.sema - - - semd - application/vnd.semd - - - semf - application/vnd.semf - - - ser - application/java-serialized-object - - - setpay - application/set-payment-initiation - - - setreg - application/set-registration-initiation - - - sfd-hdstx - application/vnd.hydrostatix.sof-data - - - sfs - application/vnd.spotfire.sfs - - - sgl - application/vnd.stardivision.writer-global - - - sgm - text/sgml - - - sgml - text/sgml - - - sh - application/x-sh - - - shar - application/x-shar - - - shf - application/shf+xml - - - - sig - application/pgp-signature - - - silo - model/mesh - - - sis - application/vnd.symbian.install - - - sisx - application/vnd.symbian.install - - - sit - application/x-stuffit - - - sitx - application/x-stuffitx - - - skd - application/vnd.koan - - - skm - application/vnd.koan - - - skp - application/vnd.koan - - - skt - application/vnd.koan - - - sldm - application/vnd.ms-powerpoint.slide.macroenabled.12 - - - sldx - application/vnd.openxmlformats-officedocument.presentationml.slide - - - slt - application/vnd.epson.salt - - - sm - application/vnd.stepmania.stepchart - - - smf - application/vnd.stardivision.math - - - smi - application/smil+xml - - - smil - application/smil+xml - - - smzip - application/vnd.stepmania.package - - - snd - audio/basic - - - snf - application/x-font-snf - - - so - application/octet-stream - - - spc - application/x-pkcs7-certificates - - - spf - application/vnd.yamaha.smaf-phrase - - - spl - application/x-futuresplash - - - spot - text/vnd.in3d.spot - - - spp - application/scvp-vp-response - - - spq - application/scvp-vp-request - - - spx - audio/ogg - - - src - application/x-wais-source - - - sru - application/sru+xml - - - srx - application/sparql-results+xml - - - sse - application/vnd.kodak-descriptor - - - ssf - application/vnd.epson.ssf - - - ssml - application/ssml+xml - - - st - application/vnd.sailingtracker.track - - - stc - application/vnd.sun.xml.calc.template - - - std - application/vnd.sun.xml.draw.template - - - stf - application/vnd.wt.stf - - - sti - application/vnd.sun.xml.impress.template - - - stk - application/hyperstudio - - - stl - application/vnd.ms-pki.stl - - - str - application/vnd.pg.format - - - stw - application/vnd.sun.xml.writer.template - - - sub - text/vnd.dvb.subtitle - - - sus - application/vnd.sus-calendar - - - susp - application/vnd.sus-calendar - - - sv4cpio - application/x-sv4cpio - - - sv4crc - application/x-sv4crc - - - svc - application/vnd.dvb.service - - - svd - application/vnd.svd - - - svg - image/svg+xml - - - svgz - image/svg+xml - - - swa - application/x-director - - - swf - application/x-shockwave-flash - - - swi - application/vnd.aristanetworks.swi - - - sxc - application/vnd.sun.xml.calc - - - sxd - application/vnd.sun.xml.draw - - - sxg - application/vnd.sun.xml.writer.global - - - sxi - application/vnd.sun.xml.impress - - - sxm - application/vnd.sun.xml.math - - - sxw - application/vnd.sun.xml.writer - - - t - text/troff - - - taglet - application/vnd.mynfc - - - tao - application/vnd.tao.intent-module-archive - - - tar - application/x-tar - - - tcap - application/vnd.3gpp2.tcap - - - tcl - application/x-tcl - - - teacher - application/vnd.smart.teacher - - - tei - application/tei+xml - - - teicorpus - application/tei+xml - - - tex - application/x-tex - - - texi - application/x-texinfo - - - texinfo - application/x-texinfo - - - text - text/plain - - - tfi - application/thraud+xml - - - tfm - application/x-tex-tfm - - - thmx - application/vnd.ms-officetheme - - - tif - image/tiff - - - tiff - image/tiff - - - tmo - application/vnd.tmobile-livetv - - - torrent - application/x-bittorrent - - - tpl - application/vnd.groove-tool-template - - - tpt - application/vnd.trid.tpt - - - tr - text/troff - - - tra - application/vnd.trueapp - - - trm - application/x-msterminal - - - tsd - application/timestamped-data - - - tsv - text/tab-separated-values - - - ttc - application/x-font-ttf - - - ttf - application/x-font-ttf - - - ttl - text/turtle - - - twd - application/vnd.simtech-mindmapper - - - twds - application/vnd.simtech-mindmapper - - - txd - application/vnd.genomatix.tuxedo - - - txf - application/vnd.mobius.txf - - - txt - text/plain - - - u32 - application/x-authorware-bin - - - udeb - application/x-debian-package - - - ufd - application/vnd.ufdl - - - ufdl - application/vnd.ufdl - - - ulw - audio/basic - - - umj - application/vnd.umajin - - - unityweb - application/vnd.unity - - - uoml - application/vnd.uoml+xml - - - uri - text/uri-list - - - uris - text/uri-list - - - urls - text/uri-list - - - ustar - application/x-ustar - - - utz - application/vnd.uiq.theme - - - uu - text/x-uuencode - - - uva - audio/vnd.dece.audio - - - uvd - application/vnd.dece.data - - - uvf - application/vnd.dece.data - - - uvg - image/vnd.dece.graphic - - - uvh - video/vnd.dece.hd - - - uvi - image/vnd.dece.graphic - - - uvm - video/vnd.dece.mobile - - - uvp - video/vnd.dece.pd - - - uvs - video/vnd.dece.sd - - - uvt - application/vnd.dece.ttml+xml - - - uvu - video/vnd.uvvu.mp4 - - - uvv - video/vnd.dece.video - - - uvva - audio/vnd.dece.audio - - - uvvd - application/vnd.dece.data - - - uvvf - application/vnd.dece.data - - - uvvg - image/vnd.dece.graphic - - - uvvh - video/vnd.dece.hd - - - uvvi - image/vnd.dece.graphic - - - uvvm - video/vnd.dece.mobile - - - uvvp - video/vnd.dece.pd - - - uvvs - video/vnd.dece.sd - - - uvvt - application/vnd.dece.ttml+xml - - - uvvu - video/vnd.uvvu.mp4 - - - uvvv - video/vnd.dece.video - - - uvvx - application/vnd.dece.unspecified - - - uvvz - application/vnd.dece.zip - - - uvx - application/vnd.dece.unspecified - - - uvz - application/vnd.dece.zip - - - vcard - text/vcard - - - vcd - application/x-cdlink - - - vcf - text/x-vcard - - - vcg - application/vnd.groove-vcard - - - vcs - text/x-vcalendar - - - vcx - application/vnd.vcx - - - vis - application/vnd.visionary - - - viv - video/vnd.vivo - - - vor - application/vnd.stardivision.writer - - - vox - application/x-authorware-bin - - - vrml - model/vrml - - - vsd - application/vnd.visio - - - vsf - application/vnd.vsf - - - vss - application/vnd.visio - - - vst - application/vnd.visio - - - vsw - application/vnd.visio - - - vtu - model/vnd.vtu - - - vxml - application/voicexml+xml - - - w3d - application/x-director - - - wad - application/x-doom - - - wav - audio/x-wav - - - wax - audio/x-ms-wax - - - - wbmp - image/vnd.wap.wbmp - - - wbs - application/vnd.criticaltools.wbs+xml - - - wbxml - application/vnd.wap.wbxml - - - wcm - application/vnd.ms-works - - - wdb - application/vnd.ms-works - - - weba - audio/webm - - - webm - video/webm - - - webp - image/webp - - - wg - application/vnd.pmi.widget - - - wgt - application/widget - - - wks - application/vnd.ms-works - - - wm - video/x-ms-wm - - - wma - audio/x-ms-wma - - - wmd - application/x-ms-wmd - - - wmf - application/x-msmetafile - - - - wml - text/vnd.wap.wml - - - - wmlc - application/vnd.wap.wmlc - - - - wmls - text/vnd.wap.wmlscript - - - - wmlsc - application/vnd.wap.wmlscriptc - - - wmv - video/x-ms-wmv - - - wmx - video/x-ms-wmx - - - wmz - application/x-ms-wmz - - - woff - application/x-font-woff - - - wpd - application/vnd.wordperfect - - - wpl - application/vnd.ms-wpl - - - wps - application/vnd.ms-works - - - wqd - application/vnd.wqd - - - wri - application/x-mswrite - - - wrl - model/vrml - - - wsdl - application/wsdl+xml - - - wspolicy - application/wspolicy+xml - - - wtb - application/vnd.webturbo - - - wvx - video/x-ms-wvx - - - x32 - application/x-authorware-bin - - - x3d - application/vnd.hzn-3d-crossword - - - xap - application/x-silverlight-app - - - xar - application/vnd.xara - - - xbap - application/x-ms-xbap - - - xbd - application/vnd.fujixerox.docuworks.binder - - - xbm - image/x-xbitmap - - - xdf - application/xcap-diff+xml - - - xdm - application/vnd.syncml.dm+xml - - - xdp - application/vnd.adobe.xdp+xml - - - xdssc - application/dssc+xml - - - xdw - application/vnd.fujixerox.docuworks - - - xenc - application/xenc+xml - - - xer - application/patch-ops-error+xml - - - xfdf - application/vnd.adobe.xfdf - - - xfdl - application/vnd.xfdl - - - xht - application/xhtml+xml - - - xhtml - application/xhtml+xml - - - xhvml - application/xv+xml - - - xif - image/vnd.xiff - - - xla - application/vnd.ms-excel - - - xlam - application/vnd.ms-excel.addin.macroenabled.12 - - - xlc - application/vnd.ms-excel - - - xlm - application/vnd.ms-excel - - - xls - application/vnd.ms-excel - - - xlsb - application/vnd.ms-excel.sheet.binary.macroenabled.12 - - - xlsm - application/vnd.ms-excel.sheet.macroenabled.12 - - - xlsx - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - - - xlt - application/vnd.ms-excel - - - xltm - application/vnd.ms-excel.template.macroenabled.12 - - - xltx - application/vnd.openxmlformats-officedocument.spreadsheetml.template - - - xlw - application/vnd.ms-excel - - - xml - application/xml - - - xo - application/vnd.olpc-sugar - - - xop - application/xop+xml - - - xpi - application/x-xpinstall - - - xpm - image/x-xpixmap - - - xpr - application/vnd.is-xpr - - - xps - application/vnd.ms-xpsdocument - - - xpw - application/vnd.intercon.formnet - - - xpx - application/vnd.intercon.formnet - - - xsl - application/xml - - - xslt - application/xslt+xml - - - xsm - application/vnd.syncml+xml - - - xspf - application/xspf+xml - - - xul - application/vnd.mozilla.xul+xml - - - xvm - application/xv+xml - - - xvml - application/xv+xml - - - xwd - image/x-xwindowdump - - - xyz - chemical/x-xyz - - - yang - application/yang - - - yin - application/yin+xml - - - z - application/x-compress - - - Z - application/x-compress - - - zaz - application/vnd.zzazz.deck+xml - - - zip - application/zip - - - zir - application/vnd.zul - - - zirz - application/vnd.zul - - - zmm - application/vnd.handheld-entertainment+xml - - - - - - - - - - - - - - - - - - index.html - index.htm - index.jsp - - - diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-10-29" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-10-29" deleted file mode 100644 index 5f3a7d0..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-10-29" +++ /dev/null @@ -1,20 +0,0 @@ -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:54:08 +0800] "GET /brand-demo HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:30 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:30 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 7 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:55 +0800] "GET /webWork/step1.html HTTP/1.1" 200 994 http-bio-8080-exec-4 1 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:54 +0800] "GET /webWork/step1.html HTTP/1.1" 200 994 http-bio-8080-exec-5 5 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:55 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:57 +0800] "POST /src/main/webapp HTTP/1.1" 404 - http-bio-8080-exec-8 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:00:13 +0800] "POST /src/main/webapp HTTP/1.1" 404 - http-bio-8080-exec-9 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:19 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:19 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 7 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:30 +0800] "GET /webWork/step1.html HTTP/1.1" 200 975 http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:55 +0800] "GET /webWork/step1.html HTTP/1.1" 200 975 http-bio-8080-exec-5 1 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:58 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-6 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:41 +0800] "GET /login-test/loginServlet HTTP/1.1" 404 - http-bio-8080-exec-7 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:47 +0800] "GET /webWork/step1.html HTTP/1.1" 200 988 http-bio-8080-exec-9 2 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:52 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-10 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:39 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:39 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:45 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:48 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-5 0 diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-10-31" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-10-31" deleted file mode 100644 index 5c1dc1b..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-10-31" +++ /dev/null @@ -1,50 +0,0 @@ -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 14 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:37:04 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 5 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:37:08 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-6 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:15 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-5 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:58:57 +0800] "GET /webWork/step1.html HTTP/1.1" 200 1010 http-bio-8080-exec-1 26 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:59:00 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-3 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:29 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:29 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:35 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 4 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:10:24 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-6 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:10:26 +0800] "GET /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 15 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:58 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:02 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-6 5 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:56 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:57 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 19 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:05 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:14 +0800] "GET /webWork/step2.heml HTTP/1.1" 404 987 http-bio-8080-exec-5 1 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:19 +0800] "GET /webWork/step2.html HTTP/1.1" 200 1191 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:33:18 +0800] "GET /webWork/step1.heml HTTP/1.1" 404 987 http-bio-8080-exec-1 30 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:33:25 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-3 4 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:36:41 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:36:41 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 20 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:37:16 +0800] "GET /webWork/step1.html HTTP/1.1" 200 1000 http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:37:19 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 4 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:40 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:40 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:46 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:48 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:22 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:22 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 14 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:31 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:33 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:08 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:08 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:22 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 5 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:22 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:05 +0800] "GET /webWork/step3.html HTTP/1.1" 404 987 http-bio-8080-exec-7 2 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:10 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 993 http-bio-8080-exec-9 418 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 993 http-bio-8080-exec-10 35 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:29:55 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1057 http-bio-8080-exec-3 26 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:31:26 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1069 http-bio-8080-exec-2 24 diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-01" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-01" deleted file mode 100644 index 9fc8f49..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-01" +++ /dev/null @@ -1,6 +0,0 @@ -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:04 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-2 0 -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:04 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:05 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1208 http-bio-8080-exec-5 464 -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:54 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1230 http-bio-8080-exec-6 42 -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:53:28 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1230 http-bio-8080-exec-7 43 diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-03" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-03" deleted file mode 100644 index d350f0a..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-03" +++ /dev/null @@ -1,63 +0,0 @@ -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:46 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 10 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:49 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-6 8 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:49 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-7 7 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:27:59 +0800] "GET /webWork/step2.html HTTP/1.1" 200 1191 http-bio-8080-exec-9 3 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:07 +0800] "POST /webWork/addressServlet HTTP/1.1" 200 - http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:21 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:21 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 12 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:28 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 7 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:28 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:33 +0800] "POST /webWork/addressServlet HTTP/1.1" 200 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:15 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:15 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 12 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:21 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 7 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:21 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:25 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:26 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1209 http-bio-8080-exec-7 412 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:35 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-9 3 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-9 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:38 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:43 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:43 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1175 http-bio-8080-exec-9 73 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:55:44 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 64 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:55:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:12 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:12 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 3 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:32 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:32 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 70 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:19 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1106 http-bio-8080-exec-10 64 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:21 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1106 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:40 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-10 66 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:41 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:59:54 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-5 47 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:59:56 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-5 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:00 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 38 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:00 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:02 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:36 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:36 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 9 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:44 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 4 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:44 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 2 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:48 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-7 13 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 264 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:08 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:08 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:04:19 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1192 http-bio-8080-exec-8 48 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:05:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1179 http-bio-8080-exec-8 43 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:05:22 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1179 http-bio-8080-exec-8 42 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:30 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-1 326 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:30 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:36 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 2 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:38 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:43 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:43 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-8 1 diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-06" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-06" deleted file mode 100644 index 96549aa..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/webWork/target/tomcat/logs/access_log.2022-11-06" +++ /dev/null @@ -1,87 +0,0 @@ -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:22 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:39 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-6 7 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:39 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-7 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:45 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-8 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-9 21 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:14:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1147 http-bio-8080-exec-1 429 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:15:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-3 46 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:35 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:35 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 11 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:43 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 6 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:43 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:48 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-7 21 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:18:33 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-8 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:18:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-9 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:19:23 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:22 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-10 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:22 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-10 358 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:25 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-4 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-4 45 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:34 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-6 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:01 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:01 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:04 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-4 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:15 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 5 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:15 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 3 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:19 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:20 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-8 368 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:46 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1224 http-bio-8080-exec-2 55 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:22:27 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1242 http-bio-8080-exec-10 41 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:42 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 38 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:44 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-1 49 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:17 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-2 4 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:19 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:20 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:20 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:24 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:24 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-8 3 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:35 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-3 3 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-9 340 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-10 5 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-1 4 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:21 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-2 43 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 39 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:37 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:37 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:38 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:38 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:39 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:12 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 41 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:14 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:36:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1226 http-bio-8080-exec-9 41 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:36:49 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1226 http-bio-8080-exec-9 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:39:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-4 37 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 32 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:52 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:49:03 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1364 http-bio-8080-exec-6 34 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:14 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 27 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:42 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 31 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1269 http-bio-8080-exec-10 31 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 32 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:06 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:52:59 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-1 28 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:00 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-3 8 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:00 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:04 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-5 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2370 http-bio-8080-exec-6 25 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:28 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2804 http-bio-8080-exec-2 344 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1199 http-bio-8080-exec-7 49 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:54:40 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:54:40 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1113 http-bio-8080-exec-10 40 -- Gitee From d37ba78ccff0d0ad3c03b873efccc3986bd2f4de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sat, 10 Dec 2022 08:53:13 +0000 Subject: [PATCH 173/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/l=E7=BD=97?= =?UTF-8?q?=E9=91=AB/brand-demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.idea/artifacts/brand_demo_war.xml" | 14 -- .../artifacts/brand_demo_war_exploded.xml" | 30 ---- .../brand-demo/.idea/compiler.xml" | 17 --- .../brand-demo/.idea/jarRepositories.xml" | 20 --- ..._google_protobuf_protobuf_java_3_19_4.xml" | 13 -- ...javax_servlet_javax_servlet_api_3_1_0.xml" | 13 -- .../Maven__javax_servlet_jsp_jsp_api_2_2.xml" | 13 -- .../.idea/libraries/Maven__jstl_jstl_1_2.xml" | 13 -- ...en__mysql_mysql_connector_java_8_0_30.xml" | 13 -- .../Maven__org_mybatis_mybatis_3_5_5.xml" | 13 -- .../Maven__taglibs_standard_1_1_2.xml" | 13 -- .../brand-demo/.idea/misc.xml" | 14 -- .../brand-demo/.idea/modules.xml" | 8 - .../brand-demo/.idea/uiDesigner.xml" | 124 --------------- .../brand-demo/.idea/workspace.xml" | 143 ------------------ .../brand-demo/brand-demo.iml" | 38 ----- .../brand-demo/pom.xml" | 77 ---------- .../src/main/resources/mybatis-config.xml" | 26 ---- .../brand-demo/src/main/webapp/addBrand.jsp" | 23 --- .../target/classes/mybatis-config.xml" | 26 ---- 20 files changed, 651 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/artifacts/brand_demo_war.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/artifacts/brand_demo_war_exploded.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/compiler.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/jarRepositories.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_19_4.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__javax_servlet_jsp_jsp_api_2_2.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__jstl_jstl_1_2.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_30.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__org_mybatis_mybatis_3_5_5.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__taglibs_standard_1_1_2.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/misc.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/modules.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/uiDesigner.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/workspace.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/brand-demo.iml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/pom.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/src/main/resources/mybatis-config.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/src/main/webapp/addBrand.jsp" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/target/classes/mybatis-config.xml" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/artifacts/brand_demo_war.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/artifacts/brand_demo_war.xml" deleted file mode 100644 index 86d7720..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/artifacts/brand_demo_war.xml" +++ /dev/null @@ -1,14 +0,0 @@ - - - $PROJECT_DIR$/target - - - brand-demo - war - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/artifacts/brand_demo_war_exploded.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/artifacts/brand_demo_war_exploded.xml" deleted file mode 100644 index ef946c5..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/artifacts/brand_demo_war_exploded.xml" +++ /dev/null @@ -1,30 +0,0 @@ - - - $PROJECT_DIR$/target/brand-demo-1.0-SNAPSHOT - - - true - brand-demo - war - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/compiler.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/compiler.xml" deleted file mode 100644 index 40e3148..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/compiler.xml" +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/jarRepositories.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/jarRepositories.xml" deleted file mode 100644 index a468a99..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/jarRepositories.xml" +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_19_4.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_19_4.xml" deleted file mode 100644 index 25c2133..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_19_4.xml" +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml" deleted file mode 100644 index 9796815..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml" +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__javax_servlet_jsp_jsp_api_2_2.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__javax_servlet_jsp_jsp_api_2_2.xml" deleted file mode 100644 index b6ec6cb..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__javax_servlet_jsp_jsp_api_2_2.xml" +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__jstl_jstl_1_2.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__jstl_jstl_1_2.xml" deleted file mode 100644 index 95eb220..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__jstl_jstl_1_2.xml" +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_30.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_30.xml" deleted file mode 100644 index b90366d..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_30.xml" +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__org_mybatis_mybatis_3_5_5.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__org_mybatis_mybatis_3_5_5.xml" deleted file mode 100644 index e8422ab..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__org_mybatis_mybatis_3_5_5.xml" +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__taglibs_standard_1_1_2.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__taglibs_standard_1_1_2.xml" deleted file mode 100644 index a4e2b16..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/libraries/Maven__taglibs_standard_1_1_2.xml" +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/misc.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/misc.xml" deleted file mode 100644 index e08d341..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/misc.xml" +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/modules.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/modules.xml" deleted file mode 100644 index 848fbc6..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/modules.xml" +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/uiDesigner.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/uiDesigner.xml" deleted file mode 100644 index b93ac08..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/uiDesigner.xml" +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/workspace.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/workspace.xml" deleted file mode 100644 index c8d2bd2..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/.idea/workspace.xml" +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1666491312223 - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/brand-demo.iml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/brand-demo.iml" deleted file mode 100644 index 28b0334..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/brand-demo.iml" +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/pom.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/pom.xml" deleted file mode 100644 index beeba12..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/pom.xml" +++ /dev/null @@ -1,77 +0,0 @@ - - - 4.0.0 - - org.example - brand-demo - 1.0-SNAPSHOT - - war - - - 8 - 8 - - - - - - - org.mybatis - mybatis - 3.5.5 - - - - - mysql - mysql-connector-java - 8.0.30 - - - - - javax.servlet - javax.servlet-api - 3.1.0 - provided - - - - - - javax.servlet.jsp - jsp-api - 2.2 - provided - - - - - jstl - jstl - 1.2 - - - taglibs - standard - 1.1.2 - - - - - - - - - org.apache.tomcat.maven - tomcat7-maven-plugin - 2.2 - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/src/main/resources/mybatis-config.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/src/main/resources/mybatis-config.xml" deleted file mode 100644 index 0430486..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/src/main/resources/mybatis-config.xml" +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/src/main/webapp/addBrand.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/src/main/webapp/addBrand.jsp" deleted file mode 100644 index 99f19c7..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/src/main/webapp/addBrand.jsp" +++ /dev/null @@ -1,23 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - - - - - - 添加品牌 - - -

添加品牌

-
- 品牌名称:
- 企业名称:
- 排序:
- 描述信息:
- 状态: - 禁用 - 启用
- - -
- - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/target/classes/mybatis-config.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/target/classes/mybatis-config.xml" deleted file mode 100644 index 0430486..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/brand-demo/target/classes/mybatis-config.xml" +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file -- Gitee From ed642f4cb8608c8ba504a44eae4c9382a6d955ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sat, 10 Dec 2022 08:53:20 +0000 Subject: [PATCH 174/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/webWork?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webWork/.idea/compiler.xml" | 8 - .../webWork/.idea/jarRepositories.xml" | 20 - .../webWork/.idea/misc.xml" | 19 - .../webWork/.idea/webContexts.xml" | 10 - .../webWork/.idea/workspace.xml" | 101 - .../webWork/pom.xml" | 80 - .../webWork/src/main/webapp/WEB-INF/web.xml" | 6 - .../webWork/src/main/webapp/step1.html" | 35 - .../webWork/src/main/webapp/step2.html" | 44 - .../webWork/src/main/webapp/step3.jsp" | 73 - .../classes/com/web/addressServlet.class" | Bin 1580 -> 0 bytes .../classes/com/web/shopcarServlet.class" | Bin 1623 -> 0 bytes .../target/tomcat/conf/logging.properties" | 64 - .../target/tomcat/conf/tomcat-users.xml" | 26 - .../webWork/target/tomcat/conf/web.xml" | 4283 ----------------- .../target/tomcat/logs/access_log.2022-10-29" | 20 - .../target/tomcat/logs/access_log.2022-10-31" | 50 - .../target/tomcat/logs/access_log.2022-11-01" | 6 - .../target/tomcat/logs/access_log.2022-11-03" | 63 - .../target/tomcat/logs/access_log.2022-11-06" | 87 - 20 files changed, 4995 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/compiler.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/jarRepositories.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/misc.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/webContexts.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/workspace.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/pom.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/WEB-INF/web.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step1.html" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step2.html" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step3.jsp" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/addressServlet.class" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/shopcarServlet.class" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/logging.properties" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/tomcat-users.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/web.xml" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-29" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-31" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-01" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-03" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-06" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/compiler.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/compiler.xml" deleted file mode 100644 index 6e5a203..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/compiler.xml" +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/jarRepositories.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/jarRepositories.xml" deleted file mode 100644 index a468a99..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/jarRepositories.xml" +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/misc.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/misc.xml" deleted file mode 100644 index 149f5ab..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/misc.xml" +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/webContexts.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/webContexts.xml" deleted file mode 100644 index 0c7b27c..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/webContexts.xml" +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/workspace.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/workspace.xml" deleted file mode 100644 index 1483d55..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/.idea/workspace.xml" +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1667038653869 - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/pom.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/pom.xml" deleted file mode 100644 index 6c3d706..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/pom.xml" +++ /dev/null @@ -1,80 +0,0 @@ - - - 4.0.0 - - org.example - webWork - 1.0-SNAPSHOT - - pom - - - 8 - 8 - - - - - - - org.mybatis - mybatis - 3.5.5 - - - - - mysql - mysql-connector-java - 8.0.30 - - - - - javax.servlet - javax.servlet-api - 3.1.0 - provided - - - - - - javax.servlet.jsp - jsp-api - 2.2 - provided - - - - - jstl - jstl - 1.2 - - - taglibs - standard - 1.1.2 - - - - - - - - - org.apache.tomcat.maven - tomcat7-maven-plugin - 2.2 - - true - - - - - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/WEB-INF/web.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/WEB-INF/web.xml" deleted file mode 100644 index d80081d..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/WEB-INF/web.xml" +++ /dev/null @@ -1,6 +0,0 @@ - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step1.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step1.html" deleted file mode 100644 index f8f1376..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step1.html" +++ /dev/null @@ -1,35 +0,0 @@ - - - - - 购物车 - - -
- -

Step1:选择要购买的书籍

- - - - - - - - - - - - - - - - - - - - - -
书名购买
Java

Oraclecheck

Strutscheck

-
- - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step2.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step2.html" deleted file mode 100644 index 2ab8b4e..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step2.html" +++ /dev/null @@ -1,44 +0,0 @@ - - - - - 订单信息 - - -

请输入寄送地址与信用卡信息

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
基本信息
姓名
寄送地址
信用卡信息
种类Master
Visa
卡号
-
- - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step3.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step3.jsp" deleted file mode 100644 index bf53de8..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/src/main/webapp/step3.jsp" +++ /dev/null @@ -1,73 +0,0 @@ -<%-- - Created by IntelliJ IDEA. - User: ɶ - Date: 2022/10/31 - Time: 17:07 - To change this template use File | Settings | File Templates. ---%> -<%@ page language="java" pageEncoding="gb2312"%> -<%@ page contentType="text/html;charset=gb2312"%> -<%@ page import="java.net.URLEncoder" %> -<%@ page import="java.net.URLDecoder" %> - - - - ȷ - - -
- - - <% - request.setCharacterEncoding("utf-8"); - %> - - - <% -// response.setContentType("test/http;charset=UTF-8"); - HttpSession session1 = request.getSession(); - String name = String.valueOf(session1.getAttribute("name")); - String javacheck = (String) session1.getAttribute("javacheck"); - String Oraclecheck = (String) session1.getAttribute("Oraclecheck"); - String Strutscheck = (String) session1.getAttribute("Strutscheck"); - String address = String.valueOf(session1.getAttribute("address")); - String cardcheck = String.valueOf(session1.getAttribute("cardcheck")); - String cardnumber = String.valueOf(session1.getAttribute("cardnumber")); - - %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
˿<%out.write(name);%>
ַ<%URLDecoder.decode(address,"UTF-8");%> - <%out.print(address);%>
Ϣ
ÿ<%out.write(cardcheck);%>
<%out.write(cardnumber);%>
Ŀ
<%out.write(javacheck);%>
<%out.print(Oraclecheck);%>
<%out.print(Strutscheck);%>
-
- - diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/addressServlet.class" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/addressServlet.class" deleted file mode 100644 index 20a9e9433fb8d15794edbbfdf3fc78b48a3ec7b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1580 zcmah}*-{fh6g{17LNb5`L85G;tN}&^7Zw);7phW11q-Y6X)@`8fiM$hI>>MNqJ^1TssuW2>hE$?=ITfz*mylLDP(+mUaZ`&H?^Gplvp6w0n;*0)U0 z4$kpqO6}ObKyTS{_l-}oYM8Z}Cw+fYdWUtX76sBZ_q9|4mGSbfd1xLPe)MGQDAh3D zaEW~@@}MbwwRowU-*6pYE(Tzeo;(m3yEG)qOmf855V#ylT!RsgxgU}bz#Dbb*)}$n zXFJ=Zrp06h+APznSv%6&6UYU&6LyX+KAT~?j=<3QAVUx4%e_3ZWJA&2*YH@wJjJQG z8?MjxXUSJ~AVt^dF3$wm1d5fWqwIaTW&1W2T6P>)nPE18k$o+vK(6NG59o^^= z=s9~j1O_f1iT@m8pshZ!6`?M+YpkuGxE;ATZ#-%O`nFUXrbmgD^aMtu!8j%JMA*4g zS5$*>n}3uY9*=y^9PK~ap3gL%58an)S#h+gO+^95&VX_P$$E8HS}Obxj9$hynq`vp zrBkcOn(Z-Ep!U$SR;F|eO<+MQYK6q~F|tX} zN);Irndu^9A~RED5Y4GV+c9zp{Dn4yJWF<X=PYt4nypwhGC+} zF!DC;(08QOlr`o^@=cp8O?^TBFYp|l5hm#mK@CN2El^quloo?JSt5Z^MkfemoO=hs MPw+SS5yD65H_EwwYXATM diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/shopcarServlet.class" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/classes/com/web/shopcarServlet.class" deleted file mode 100644 index 4e7e47818e4bd08a4fcdeaf380135e7b2a4961d5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1623 zcmai!*-{fh6o&uKHd#j0;1(6c1zCcO`vPu=2v(t3LF0v2lSvmDO=jYB2YD@TwD7_Q z@KJmS%YPOFXpoEaobLJiobN1?AHTkR2XGTBMI6FR9%o9pg4sMq@)!+GtAwk#7FyTy zxKX0=RuLv{8@OZOu0Za->$&=&KzeejE|6LDn^NHLs_V&@y-q_0ukA*gC*@V&vDMm%Ot7>T*iKs}k`m8*S|vL}Nu^xh6ByecF;aw%9N*J&OTV&pOQ5*4<;bq) zWo6)=fjNO}(_faXWO3c^1&(~?hHV+%Tk+YDP@q!ldD`vBx~p7vYr*q;ZAZ=o#{WXG z`!B7xva!>-?55rBg`@CSQ%wxvuz`6K_wm5QLp(C@*u(;!m{`P9B88Li)(<{dO3Uu` z*_Q6K4J?^>hGi4SaYEq4;CT@k{r`;oBS>)j#bWfRN3L%@U)yy${(ry8>FDUA7$VE!?pZpP@a##0$sJUa_#nSj5I8=7WU7wy{8u@|zak(F5zYwL zBivbh3O=*bUm-rzNZ}~gTy$7MnYI}VFpOi|Wx^SuD!lxY&hmWLtL4--(kZ;GmNStt zm#LPsv6ZcEBPTGItK`b5E88&App~gm7@OG&l{Bf#Q)kSS3)?8ButPJABBKnUKEyKnUaMIn8QUZ;Syf(VptJ*Bq!_63(o6(37R&lj eMjy&Zpmv8y;WBThn9wAjLxi8=Z~7gCLiIOaj*r~{ diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/logging.properties" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/logging.properties" deleted file mode 100644 index 76c9512..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/logging.properties" +++ /dev/null @@ -1,64 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler - -.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler - -############################################################ -# Handler specific properties. -# Describes specific configuration info for Handlers. -############################################################ - -1catalina.org.apache.juli.FileHandler.level = FINE -1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -1catalina.org.apache.juli.FileHandler.prefix = catalina. - -2localhost.org.apache.juli.FileHandler.level = FINE -2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -2localhost.org.apache.juli.FileHandler.prefix = localhost. - -3manager.org.apache.juli.FileHandler.level = FINE -3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -3manager.org.apache.juli.FileHandler.prefix = manager. - -4host-manager.org.apache.juli.FileHandler.level = FINE -4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs -4host-manager.org.apache.juli.FileHandler.prefix = host-manager. - -java.util.logging.ConsoleHandler.level = FINE -java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter - - -############################################################ -# Facility specific properties. -# Provides extra control for each logger. -############################################################ - -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler - -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler - -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO -org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler - -# For example, set the org.apache.catalina.util.LifecycleBase logger to log -# each component that extends LifecycleBase changing state: -#org.apache.catalina.util.LifecycleBase.level = FINE - -# To see debug messages in TldLocationsCache, uncomment the following line: -#org.apache.jasper.compiler.TldLocationsCache.level = FINE diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/tomcat-users.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/tomcat-users.xml" deleted file mode 100644 index 7114f5d..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/tomcat-users.xml" +++ /dev/null @@ -1,26 +0,0 @@ - - - - - diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/web.xml" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/web.xml" deleted file mode 100644 index cc8383c..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/conf/web.xml" +++ /dev/null @@ -1,4283 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - default - org.apache.catalina.servlets.DefaultServlet - - debug - 0 - - - listings - false - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jsp - org.apache.jasper.servlet.JspServlet - - fork - false - - - xpoweredBy - false - - 3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - default - / - - - - - jsp - *.jsp - *.jspx - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 30 - - - - - - - - - - - - 123 - application/vnd.lotus-1-2-3 - - - 3dml - text/vnd.in3d.3dml - - - 3g2 - video/3gpp2 - - - 3gp - video/3gpp - - - 7z - application/x-7z-compressed - - - aab - application/x-authorware-bin - - - aac - audio/x-aac - - - aam - application/x-authorware-map - - - aas - application/x-authorware-seg - - - abs - audio/x-mpeg - - - abw - application/x-abiword - - - ac - application/pkix-attr-cert - - - acc - application/vnd.americandynamics.acc - - - ace - application/x-ace-compressed - - - acu - application/vnd.acucobol - - - acutc - application/vnd.acucorp - - - adp - audio/adpcm - - - aep - application/vnd.audiograph - - - afm - application/x-font-type1 - - - afp - application/vnd.ibm.modcap - - - ahead - application/vnd.ahead.space - - - ai - application/postscript - - - aif - audio/x-aiff - - - aifc - audio/x-aiff - - - aiff - audio/x-aiff - - - aim - application/x-aim - - - air - application/vnd.adobe.air-application-installer-package+zip - - - ait - application/vnd.dvb.ait - - - ami - application/vnd.amiga.ami - - - anx - application/annodex - - - apk - application/vnd.android.package-archive - - - application - application/x-ms-application - - - apr - application/vnd.lotus-approach - - - art - image/x-jg - - - asc - application/pgp-signature - - - asf - video/x-ms-asf - - - asm - text/x-asm - - - aso - application/vnd.accpac.simply.aso - - - asx - video/x-ms-asf - - - atc - application/vnd.acucorp - - - atom - application/atom+xml - - - atomcat - application/atomcat+xml - - - atomsvc - application/atomsvc+xml - - - atx - application/vnd.antix.game-component - - - au - audio/basic - - - avi - video/x-msvideo - - - avx - video/x-rad-screenplay - - - aw - application/applixware - - - axa - audio/annodex - - - axv - video/annodex - - - azf - application/vnd.airzip.filesecure.azf - - - azs - application/vnd.airzip.filesecure.azs - - - azw - application/vnd.amazon.ebook - - - bat - application/x-msdownload - - - bcpio - application/x-bcpio - - - bdf - application/x-font-bdf - - - bdm - application/vnd.syncml.dm+wbxml - - - bed - application/vnd.realvnc.bed - - - bh2 - application/vnd.fujitsu.oasysprs - - - bin - application/octet-stream - - - bmi - application/vnd.bmi - - - bmp - image/bmp - - - body - text/html - - - book - application/vnd.framemaker - - - box - application/vnd.previewsystems.box - - - boz - application/x-bzip2 - - - bpk - application/octet-stream - - - btif - image/prs.btif - - - bz - application/x-bzip - - - bz2 - application/x-bzip2 - - - c - text/x-c - - - c11amc - application/vnd.cluetrust.cartomobile-config - - - c11amz - application/vnd.cluetrust.cartomobile-config-pkg - - - c4d - application/vnd.clonk.c4group - - - c4f - application/vnd.clonk.c4group - - - c4g - application/vnd.clonk.c4group - - - c4p - application/vnd.clonk.c4group - - - c4u - application/vnd.clonk.c4group - - - cab - application/vnd.ms-cab-compressed - - - cap - application/vnd.tcpdump.pcap - - - car - application/vnd.curl.car - - - cat - application/vnd.ms-pki.seccat - - - cc - text/x-c - - - cct - application/x-director - - - ccxml - application/ccxml+xml - - - cdbcmsg - application/vnd.contact.cmsg - - - cdf - application/x-cdf - - - cdkey - application/vnd.mediastation.cdkey - - - cdmia - application/cdmi-capability - - - cdmic - application/cdmi-container - - - cdmid - application/cdmi-domain - - - cdmio - application/cdmi-object - - - cdmiq - application/cdmi-queue - - - cdx - chemical/x-cdx - - - cdxml - application/vnd.chemdraw+xml - - - cdy - application/vnd.cinderella - - - cer - application/pkix-cert - - - cgm - image/cgm - - - chat - application/x-chat - - - chm - application/vnd.ms-htmlhelp - - - chrt - application/vnd.kde.kchart - - - cif - chemical/x-cif - - - cii - application/vnd.anser-web-certificate-issue-initiation - - - cil - application/vnd.ms-artgalry - - - cla - application/vnd.claymore - - - class - application/java - - - clkk - application/vnd.crick.clicker.keyboard - - - clkp - application/vnd.crick.clicker.palette - - - clkt - application/vnd.crick.clicker.template - - - clkw - application/vnd.crick.clicker.wordbank - - - clkx - application/vnd.crick.clicker - - - clp - application/x-msclip - - - cmc - application/vnd.cosmocaller - - - cmdf - chemical/x-cmdf - - - cml - chemical/x-cml - - - cmp - application/vnd.yellowriver-custom-menu - - - cmx - image/x-cmx - - - cod - application/vnd.rim.cod - - - com - application/x-msdownload - - - conf - text/plain - - - cpio - application/x-cpio - - - cpp - text/x-c - - - cpt - application/mac-compactpro - - - crd - application/x-mscardfile - - - crl - application/pkix-crl - - - crt - application/x-x509-ca-cert - - - cryptonote - application/vnd.rig.cryptonote - - - csh - application/x-csh - - - csml - chemical/x-csml - - - csp - application/vnd.commonspace - - - css - text/css - - - cst - application/x-director - - - csv - text/csv - - - cu - application/cu-seeme - - - curl - text/vnd.curl - - - cww - application/prs.cww - - - cxt - application/x-director - - - cxx - text/x-c - - - dae - model/vnd.collada+xml - - - daf - application/vnd.mobius.daf - - - dataless - application/vnd.fdsn.seed - - - davmount - application/davmount+xml - - - dcr - application/x-director - - - dcurl - text/vnd.curl.dcurl - - - dd2 - application/vnd.oma.dd2+xml - - - ddd - application/vnd.fujixerox.ddd - - - deb - application/x-debian-package - - - def - text/plain - - - deploy - application/octet-stream - - - der - application/x-x509-ca-cert - - - dfac - application/vnd.dreamfactory - - - dib - image/bmp - - - dic - text/x-c - - - dir - application/x-director - - - dis - application/vnd.mobius.dis - - - dist - application/octet-stream - - - distz - application/octet-stream - - - djv - image/vnd.djvu - - - djvu - image/vnd.djvu - - - dll - application/x-msdownload - - - dmg - application/octet-stream - - - dmp - application/vnd.tcpdump.pcap - - - dms - application/octet-stream - - - dna - application/vnd.dna - - - doc - application/msword - - - docm - application/vnd.ms-word.document.macroenabled.12 - - - docx - application/vnd.openxmlformats-officedocument.wordprocessingml.document - - - dot - application/msword - - - dotm - application/vnd.ms-word.template.macroenabled.12 - - - dotx - application/vnd.openxmlformats-officedocument.wordprocessingml.template - - - dp - application/vnd.osgi.dp - - - dpg - application/vnd.dpgraph - - - dra - audio/vnd.dra - - - dsc - text/prs.lines.tag - - - dssc - application/dssc+der - - - dtb - application/x-dtbook+xml - - - dtd - application/xml-dtd - - - dts - audio/vnd.dts - - - dtshd - audio/vnd.dts.hd - - - dump - application/octet-stream - - - dv - video/x-dv - - - dvb - video/vnd.dvb.file - - - dvi - application/x-dvi - - - dwf - model/vnd.dwf - - - dwg - image/vnd.dwg - - - dxf - image/vnd.dxf - - - dxp - application/vnd.spotfire.dxp - - - dxr - application/x-director - - - ecelp4800 - audio/vnd.nuera.ecelp4800 - - - ecelp7470 - audio/vnd.nuera.ecelp7470 - - - ecelp9600 - audio/vnd.nuera.ecelp9600 - - - ecma - application/ecmascript - - - edm - application/vnd.novadigm.edm - - - edx - application/vnd.novadigm.edx - - - efif - application/vnd.picsel - - - ei6 - application/vnd.pg.osasli - - - elc - application/octet-stream - - - eml - message/rfc822 - - - emma - application/emma+xml - - - eol - audio/vnd.digital-winds - - - eot - application/vnd.ms-fontobject - - - eps - application/postscript - - - epub - application/epub+zip - - - es3 - application/vnd.eszigno3+xml - - - esf - application/vnd.epson.esf - - - et3 - application/vnd.eszigno3+xml - - - etx - text/x-setext - - - exe - application/octet-stream - - - exi - application/exi - - - ext - application/vnd.novadigm.ext - - - ez - application/andrew-inset - - - ez2 - application/vnd.ezpix-album - - - ez3 - application/vnd.ezpix-package - - - f - text/x-fortran - - - f4v - video/x-f4v - - - f77 - text/x-fortran - - - f90 - text/x-fortran - - - fbs - image/vnd.fastbidsheet - - - fcs - application/vnd.isac.fcs - - - fdf - application/vnd.fdf - - - fe_launch - application/vnd.denovo.fcselayout-link - - - fg5 - application/vnd.fujitsu.oasysgp - - - fgd - application/x-director - - - fh - image/x-freehand - - - fh4 - image/x-freehand - - - fh5 - image/x-freehand - - - fh7 - image/x-freehand - - - fhc - image/x-freehand - - - fig - application/x-xfig - - - flac - audio/flac - - - fli - video/x-fli - - - flo - application/vnd.micrografx.flo - - - flv - video/x-flv - - - flw - application/vnd.kde.kivio - - - flx - text/vnd.fmi.flexstor - - - fly - text/vnd.fly - - - fm - application/vnd.framemaker - - - fnc - application/vnd.frogans.fnc - - - for - text/x-fortran - - - fpx - image/vnd.fpx - - - frame - application/vnd.framemaker - - - fsc - application/vnd.fsc.weblaunch - - - fst - image/vnd.fst - - - ftc - application/vnd.fluxtime.clip - - - fti - application/vnd.anser-web-funds-transfer-initiation - - - fvt - video/vnd.fvt - - - fxp - application/vnd.adobe.fxp - - - fxpl - application/vnd.adobe.fxp - - - fzs - application/vnd.fuzzysheet - - - g2w - application/vnd.geoplan - - - g3 - image/g3fax - - - g3w - application/vnd.geospace - - - gac - application/vnd.groove-account - - - gbr - application/rpki-ghostbusters - - - gdl - model/vnd.gdl - - - geo - application/vnd.dynageo - - - gex - application/vnd.geometry-explorer - - - ggb - application/vnd.geogebra.file - - - ggt - application/vnd.geogebra.tool - - - ghf - application/vnd.groove-help - - - gif - image/gif - - - gim - application/vnd.groove-identity-message - - - gmx - application/vnd.gmx - - - gnumeric - application/x-gnumeric - - - gph - application/vnd.flographit - - - gqf - application/vnd.grafeq - - - gqs - application/vnd.grafeq - - - gram - application/srgs - - - gre - application/vnd.geometry-explorer - - - grv - application/vnd.groove-injector - - - grxml - application/srgs+xml - - - gsf - application/x-font-ghostscript - - - gtar - application/x-gtar - - - gtm - application/vnd.groove-tool-message - - - gtw - model/vnd.gtw - - - gv - text/vnd.graphviz - - - gxt - application/vnd.geonext - - - gz - application/x-gzip - - - h - text/x-c - - - h261 - video/h261 - - - h263 - video/h263 - - - h264 - video/h264 - - - hal - application/vnd.hal+xml - - - hbci - application/vnd.hbci - - - hdf - application/x-hdf - - - hh - text/x-c - - - hlp - application/winhlp - - - hpgl - application/vnd.hp-hpgl - - - hpid - application/vnd.hp-hpid - - - hps - application/vnd.hp-hps - - - hqx - application/mac-binhex40 - - - htc - text/x-component - - - htke - application/vnd.kenameaapp - - - htm - text/html - - - html - text/html - - - hvd - application/vnd.yamaha.hv-dic - - - hvp - application/vnd.yamaha.hv-voice - - - hvs - application/vnd.yamaha.hv-script - - - i2g - application/vnd.intergeo - - - icc - application/vnd.iccprofile - - - ice - x-conference/x-cooltalk - - - icm - application/vnd.iccprofile - - - ico - image/x-icon - - - ics - text/calendar - - - ief - image/ief - - - ifb - text/calendar - - - ifm - application/vnd.shana.informed.formdata - - - iges - model/iges - - - igl - application/vnd.igloader - - - igm - application/vnd.insors.igm - - - igs - model/iges - - - igx - application/vnd.micrografx.igx - - - iif - application/vnd.shana.informed.interchange - - - imp - application/vnd.accpac.simply.imp - - - ims - application/vnd.ms-ims - - - in - text/plain - - - ink - application/inkml+xml - - - inkml - application/inkml+xml - - - iota - application/vnd.astraea-software.iota - - - ipfix - application/ipfix - - - ipk - application/vnd.shana.informed.package - - - irm - application/vnd.ibm.rights-management - - - irp - application/vnd.irepository.package+xml - - - iso - application/octet-stream - - - itp - application/vnd.shana.informed.formtemplate - - - ivp - application/vnd.immervision-ivp - - - ivu - application/vnd.immervision-ivu - - - jad - text/vnd.sun.j2me.app-descriptor - - - jam - application/vnd.jam - - - jar - application/java-archive - - - java - text/x-java-source - - - jisp - application/vnd.jisp - - - jlt - application/vnd.hp-jlyt - - - jnlp - application/x-java-jnlp-file - - - joda - application/vnd.joost.joda-archive - - - jpe - image/jpeg - - - jpeg - image/jpeg - - - jpg - image/jpeg - - - jpgm - video/jpm - - - jpgv - video/jpeg - - - jpm - video/jpm - - - js - application/javascript - - - jsf - text/plain - - - json - application/json - - - jspf - text/plain - - - kar - audio/midi - - - karbon - application/vnd.kde.karbon - - - kfo - application/vnd.kde.kformula - - - kia - application/vnd.kidspiration - - - kml - application/vnd.google-earth.kml+xml - - - kmz - application/vnd.google-earth.kmz - - - kne - application/vnd.kinar - - - knp - application/vnd.kinar - - - kon - application/vnd.kde.kontour - - - kpr - application/vnd.kde.kpresenter - - - kpt - application/vnd.kde.kpresenter - - - ksp - application/vnd.kde.kspread - - - ktr - application/vnd.kahootz - - - ktx - image/ktx - - - ktz - application/vnd.kahootz - - - kwd - application/vnd.kde.kword - - - kwt - application/vnd.kde.kword - - - lasxml - application/vnd.las.las+xml - - - latex - application/x-latex - - - lbd - application/vnd.llamagraphics.life-balance.desktop - - - lbe - application/vnd.llamagraphics.life-balance.exchange+xml - - - les - application/vnd.hhe.lesson-player - - - lha - application/octet-stream - - - link66 - application/vnd.route66.link66+xml - - - list - text/plain - - - list3820 - application/vnd.ibm.modcap - - - listafp - application/vnd.ibm.modcap - - - log - text/plain - - - lostxml - application/lost+xml - - - lrf - application/octet-stream - - - lrm - application/vnd.ms-lrm - - - ltf - application/vnd.frogans.ltf - - - lvp - audio/vnd.lucent.voice - - - lwp - application/vnd.lotus-wordpro - - - lzh - application/octet-stream - - - m13 - application/x-msmediaview - - - m14 - application/x-msmediaview - - - m1v - video/mpeg - - - m21 - application/mp21 - - - m2a - audio/mpeg - - - m2v - video/mpeg - - - m3a - audio/mpeg - - - m3u - audio/x-mpegurl - - - m3u8 - application/vnd.apple.mpegurl - - - m4a - audio/mp4 - - - m4b - audio/mp4 - - - m4r - audio/mp4 - - - m4u - video/vnd.mpegurl - - - m4v - video/mp4 - - - ma - application/mathematica - - - mac - image/x-macpaint - - - mads - application/mads+xml - - - mag - application/vnd.ecowin.chart - - - maker - application/vnd.framemaker - - - man - text/troff - - - mathml - application/mathml+xml - - - mb - application/mathematica - - - mbk - application/vnd.mobius.mbk - - - mbox - application/mbox - - - mc1 - application/vnd.medcalcdata - - - mcd - application/vnd.mcd - - - mcurl - text/vnd.curl.mcurl - - - mdb - application/x-msaccess - - - mdi - image/vnd.ms-modi - - - me - text/troff - - - mesh - model/mesh - - - meta4 - application/metalink4+xml - - - mets - application/mets+xml - - - mfm - application/vnd.mfmp - - - mft - application/rpki-manifest - - - mgp - application/vnd.osgeo.mapguide.package - - - mgz - application/vnd.proteus.magazine - - - mid - audio/midi - - - midi - audio/midi - - - mif - application/x-mif - - - mime - message/rfc822 - - - mj2 - video/mj2 - - - mjp2 - video/mj2 - - - mlp - application/vnd.dolby.mlp - - - mmd - application/vnd.chipnuts.karaoke-mmd - - - mmf - application/vnd.smaf - - - mmr - image/vnd.fujixerox.edmics-mmr - - - mny - application/x-msmoney - - - mobi - application/x-mobipocket-ebook - - - mods - application/mods+xml - - - mov - video/quicktime - - - movie - video/x-sgi-movie - - - mp1 - audio/mpeg - - - mp2 - audio/mpeg - - - mp21 - application/mp21 - - - mp2a - audio/mpeg - - - mp3 - audio/mpeg - - - mp4 - video/mp4 - - - mp4a - audio/mp4 - - - mp4s - application/mp4 - - - mp4v - video/mp4 - - - mpa - audio/mpeg - - - mpc - application/vnd.mophun.certificate - - - mpe - video/mpeg - - - mpeg - video/mpeg - - - mpega - audio/x-mpeg - - - mpg - video/mpeg - - - mpg4 - video/mp4 - - - mpga - audio/mpeg - - - mpkg - application/vnd.apple.installer+xml - - - mpm - application/vnd.blueice.multipass - - - mpn - application/vnd.mophun.application - - - mpp - application/vnd.ms-project - - - mpt - application/vnd.ms-project - - - mpv2 - video/mpeg2 - - - mpy - application/vnd.ibm.minipay - - - mqy - application/vnd.mobius.mqy - - - mrc - application/marc - - - mrcx - application/marcxml+xml - - - ms - text/troff - - - mscml - application/mediaservercontrol+xml - - - mseed - application/vnd.fdsn.mseed - - - mseq - application/vnd.mseq - - - msf - application/vnd.epson.msf - - - msh - model/mesh - - - msi - application/x-msdownload - - - msl - application/vnd.mobius.msl - - - msty - application/vnd.muvee.style - - - mts - model/vnd.mts - - - mus - application/vnd.musician - - - musicxml - application/vnd.recordare.musicxml+xml - - - mvb - application/x-msmediaview - - - mwf - application/vnd.mfer - - - mxf - application/mxf - - - mxl - application/vnd.recordare.musicxml - - - mxml - application/xv+xml - - - mxs - application/vnd.triscape.mxs - - - mxu - video/vnd.mpegurl - - - n-gage - application/vnd.nokia.n-gage.symbian.install - - - n3 - text/n3 - - - nb - application/mathematica - - - nbp - application/vnd.wolfram.player - - - nc - application/x-netcdf - - - ncx - application/x-dtbncx+xml - - - ngdat - application/vnd.nokia.n-gage.data - - - nlu - application/vnd.neurolanguage.nlu - - - nml - application/vnd.enliven - - - nnd - application/vnd.noblenet-directory - - - nns - application/vnd.noblenet-sealer - - - nnw - application/vnd.noblenet-web - - - npx - image/vnd.net-fpx - - - nsf - application/vnd.lotus-notes - - - oa2 - application/vnd.fujitsu.oasys2 - - - oa3 - application/vnd.fujitsu.oasys3 - - - oas - application/vnd.fujitsu.oasys - - - obd - application/x-msbinder - - - oda - application/oda - - - - odb - application/vnd.oasis.opendocument.database - - - - odc - application/vnd.oasis.opendocument.chart - - - - odf - application/vnd.oasis.opendocument.formula - - - odft - application/vnd.oasis.opendocument.formula-template - - - - odg - application/vnd.oasis.opendocument.graphics - - - - odi - application/vnd.oasis.opendocument.image - - - - odm - application/vnd.oasis.opendocument.text-master - - - - odp - application/vnd.oasis.opendocument.presentation - - - - ods - application/vnd.oasis.opendocument.spreadsheet - - - - odt - application/vnd.oasis.opendocument.text - - - oga - audio/ogg - - - ogg - audio/ogg - - - ogv - video/ogg - - - - ogx - application/ogg - - - onepkg - application/onenote - - - onetmp - application/onenote - - - onetoc - application/onenote - - - onetoc2 - application/onenote - - - opf - application/oebps-package+xml - - - oprc - application/vnd.palm - - - org - application/vnd.lotus-organizer - - - osf - application/vnd.yamaha.openscoreformat - - - osfpvg - application/vnd.yamaha.openscoreformat.osfpvg+xml - - - otc - application/vnd.oasis.opendocument.chart-template - - - otf - application/x-font-otf - - - - otg - application/vnd.oasis.opendocument.graphics-template - - - - oth - application/vnd.oasis.opendocument.text-web - - - oti - application/vnd.oasis.opendocument.image-template - - - - otp - application/vnd.oasis.opendocument.presentation-template - - - - ots - application/vnd.oasis.opendocument.spreadsheet-template - - - - ott - application/vnd.oasis.opendocument.text-template - - - oxps - application/oxps - - - oxt - application/vnd.openofficeorg.extension - - - p - text/x-pascal - - - p10 - application/pkcs10 - - - p12 - application/x-pkcs12 - - - p7b - application/x-pkcs7-certificates - - - p7c - application/pkcs7-mime - - - p7m - application/pkcs7-mime - - - p7r - application/x-pkcs7-certreqresp - - - p7s - application/pkcs7-signature - - - p8 - application/pkcs8 - - - pas - text/x-pascal - - - paw - application/vnd.pawaafile - - - pbd - application/vnd.powerbuilder6 - - - pbm - image/x-portable-bitmap - - - pcap - application/vnd.tcpdump.pcap - - - pcf - application/x-font-pcf - - - pcl - application/vnd.hp-pcl - - - pclxl - application/vnd.hp-pclxl - - - pct - image/pict - - - pcurl - application/vnd.curl.pcurl - - - pcx - image/x-pcx - - - pdb - application/vnd.palm - - - pdf - application/pdf - - - pfa - application/x-font-type1 - - - pfb - application/x-font-type1 - - - pfm - application/x-font-type1 - - - pfr - application/font-tdpfr - - - pfx - application/x-pkcs12 - - - pgm - image/x-portable-graymap - - - pgn - application/x-chess-pgn - - - pgp - application/pgp-encrypted - - - pic - image/pict - - - pict - image/pict - - - pkg - application/octet-stream - - - pki - application/pkixcmp - - - pkipath - application/pkix-pkipath - - - plb - application/vnd.3gpp.pic-bw-large - - - plc - application/vnd.mobius.plc - - - plf - application/vnd.pocketlearn - - - pls - audio/x-scpls - - - pml - application/vnd.ctc-posml - - - png - image/png - - - pnm - image/x-portable-anymap - - - pnt - image/x-macpaint - - - portpkg - application/vnd.macports.portpkg - - - pot - application/vnd.ms-powerpoint - - - potm - application/vnd.ms-powerpoint.template.macroenabled.12 - - - potx - application/vnd.openxmlformats-officedocument.presentationml.template - - - ppam - application/vnd.ms-powerpoint.addin.macroenabled.12 - - - ppd - application/vnd.cups-ppd - - - ppm - image/x-portable-pixmap - - - pps - application/vnd.ms-powerpoint - - - ppsm - application/vnd.ms-powerpoint.slideshow.macroenabled.12 - - - ppsx - application/vnd.openxmlformats-officedocument.presentationml.slideshow - - - ppt - application/vnd.ms-powerpoint - - - pptm - application/vnd.ms-powerpoint.presentation.macroenabled.12 - - - pptx - application/vnd.openxmlformats-officedocument.presentationml.presentation - - - pqa - application/vnd.palm - - - prc - application/x-mobipocket-ebook - - - pre - application/vnd.lotus-freelance - - - prf - application/pics-rules - - - ps - application/postscript - - - psb - application/vnd.3gpp.pic-bw-small - - - psd - image/vnd.adobe.photoshop - - - psf - application/x-font-linux-psf - - - pskcxml - application/pskc+xml - - - ptid - application/vnd.pvi.ptid1 - - - pub - application/x-mspublisher - - - pvb - application/vnd.3gpp.pic-bw-var - - - pwn - application/vnd.3m.post-it-notes - - - pya - audio/vnd.ms-playready.media.pya - - - pyv - video/vnd.ms-playready.media.pyv - - - qam - application/vnd.epson.quickanime - - - qbo - application/vnd.intu.qbo - - - qfx - application/vnd.intu.qfx - - - qps - application/vnd.publishare-delta-tree - - - qt - video/quicktime - - - qti - image/x-quicktime - - - qtif - image/x-quicktime - - - qwd - application/vnd.quark.quarkxpress - - - qwt - application/vnd.quark.quarkxpress - - - qxb - application/vnd.quark.quarkxpress - - - qxd - application/vnd.quark.quarkxpress - - - qxl - application/vnd.quark.quarkxpress - - - qxt - application/vnd.quark.quarkxpress - - - ra - audio/x-pn-realaudio - - - ram - audio/x-pn-realaudio - - - rar - application/x-rar-compressed - - - ras - image/x-cmu-raster - - - rcprofile - application/vnd.ipunplugged.rcprofile - - - rdf - application/rdf+xml - - - rdz - application/vnd.data-vision.rdz - - - rep - application/vnd.businessobjects - - - res - application/x-dtbresource+xml - - - rgb - image/x-rgb - - - rif - application/reginfo+xml - - - rip - audio/vnd.rip - - - rl - application/resource-lists+xml - - - rlc - image/vnd.fujixerox.edmics-rlc - - - rld - application/resource-lists-diff+xml - - - rm - application/vnd.rn-realmedia - - - rmi - audio/midi - - - rmp - audio/x-pn-realaudio-plugin - - - rms - application/vnd.jcp.javame.midlet-rms - - - rnc - application/relax-ng-compact-syntax - - - roa - application/rpki-roa - - - roff - text/troff - - - rp9 - application/vnd.cloanto.rp9 - - - rpss - application/vnd.nokia.radio-presets - - - rpst - application/vnd.nokia.radio-preset - - - rq - application/sparql-query - - - rs - application/rls-services+xml - - - rsd - application/rsd+xml - - - rss - application/rss+xml - - - rtf - application/rtf - - - rtx - text/richtext - - - s - text/x-asm - - - saf - application/vnd.yamaha.smaf-audio - - - sbml - application/sbml+xml - - - sc - application/vnd.ibm.secure-container - - - scd - application/x-msschedule - - - scm - application/vnd.lotus-screencam - - - scq - application/scvp-cv-request - - - scs - application/scvp-cv-response - - - scurl - text/vnd.curl.scurl - - - sda - application/vnd.stardivision.draw - - - sdc - application/vnd.stardivision.calc - - - sdd - application/vnd.stardivision.impress - - - sdkd - application/vnd.solent.sdkm+xml - - - sdkm - application/vnd.solent.sdkm+xml - - - sdp - application/sdp - - - sdw - application/vnd.stardivision.writer - - - see - application/vnd.seemail - - - seed - application/vnd.fdsn.seed - - - sema - application/vnd.sema - - - semd - application/vnd.semd - - - semf - application/vnd.semf - - - ser - application/java-serialized-object - - - setpay - application/set-payment-initiation - - - setreg - application/set-registration-initiation - - - sfd-hdstx - application/vnd.hydrostatix.sof-data - - - sfs - application/vnd.spotfire.sfs - - - sgl - application/vnd.stardivision.writer-global - - - sgm - text/sgml - - - sgml - text/sgml - - - sh - application/x-sh - - - shar - application/x-shar - - - shf - application/shf+xml - - - - sig - application/pgp-signature - - - silo - model/mesh - - - sis - application/vnd.symbian.install - - - sisx - application/vnd.symbian.install - - - sit - application/x-stuffit - - - sitx - application/x-stuffitx - - - skd - application/vnd.koan - - - skm - application/vnd.koan - - - skp - application/vnd.koan - - - skt - application/vnd.koan - - - sldm - application/vnd.ms-powerpoint.slide.macroenabled.12 - - - sldx - application/vnd.openxmlformats-officedocument.presentationml.slide - - - slt - application/vnd.epson.salt - - - sm - application/vnd.stepmania.stepchart - - - smf - application/vnd.stardivision.math - - - smi - application/smil+xml - - - smil - application/smil+xml - - - smzip - application/vnd.stepmania.package - - - snd - audio/basic - - - snf - application/x-font-snf - - - so - application/octet-stream - - - spc - application/x-pkcs7-certificates - - - spf - application/vnd.yamaha.smaf-phrase - - - spl - application/x-futuresplash - - - spot - text/vnd.in3d.spot - - - spp - application/scvp-vp-response - - - spq - application/scvp-vp-request - - - spx - audio/ogg - - - src - application/x-wais-source - - - sru - application/sru+xml - - - srx - application/sparql-results+xml - - - sse - application/vnd.kodak-descriptor - - - ssf - application/vnd.epson.ssf - - - ssml - application/ssml+xml - - - st - application/vnd.sailingtracker.track - - - stc - application/vnd.sun.xml.calc.template - - - std - application/vnd.sun.xml.draw.template - - - stf - application/vnd.wt.stf - - - sti - application/vnd.sun.xml.impress.template - - - stk - application/hyperstudio - - - stl - application/vnd.ms-pki.stl - - - str - application/vnd.pg.format - - - stw - application/vnd.sun.xml.writer.template - - - sub - text/vnd.dvb.subtitle - - - sus - application/vnd.sus-calendar - - - susp - application/vnd.sus-calendar - - - sv4cpio - application/x-sv4cpio - - - sv4crc - application/x-sv4crc - - - svc - application/vnd.dvb.service - - - svd - application/vnd.svd - - - svg - image/svg+xml - - - svgz - image/svg+xml - - - swa - application/x-director - - - swf - application/x-shockwave-flash - - - swi - application/vnd.aristanetworks.swi - - - sxc - application/vnd.sun.xml.calc - - - sxd - application/vnd.sun.xml.draw - - - sxg - application/vnd.sun.xml.writer.global - - - sxi - application/vnd.sun.xml.impress - - - sxm - application/vnd.sun.xml.math - - - sxw - application/vnd.sun.xml.writer - - - t - text/troff - - - taglet - application/vnd.mynfc - - - tao - application/vnd.tao.intent-module-archive - - - tar - application/x-tar - - - tcap - application/vnd.3gpp2.tcap - - - tcl - application/x-tcl - - - teacher - application/vnd.smart.teacher - - - tei - application/tei+xml - - - teicorpus - application/tei+xml - - - tex - application/x-tex - - - texi - application/x-texinfo - - - texinfo - application/x-texinfo - - - text - text/plain - - - tfi - application/thraud+xml - - - tfm - application/x-tex-tfm - - - thmx - application/vnd.ms-officetheme - - - tif - image/tiff - - - tiff - image/tiff - - - tmo - application/vnd.tmobile-livetv - - - torrent - application/x-bittorrent - - - tpl - application/vnd.groove-tool-template - - - tpt - application/vnd.trid.tpt - - - tr - text/troff - - - tra - application/vnd.trueapp - - - trm - application/x-msterminal - - - tsd - application/timestamped-data - - - tsv - text/tab-separated-values - - - ttc - application/x-font-ttf - - - ttf - application/x-font-ttf - - - ttl - text/turtle - - - twd - application/vnd.simtech-mindmapper - - - twds - application/vnd.simtech-mindmapper - - - txd - application/vnd.genomatix.tuxedo - - - txf - application/vnd.mobius.txf - - - txt - text/plain - - - u32 - application/x-authorware-bin - - - udeb - application/x-debian-package - - - ufd - application/vnd.ufdl - - - ufdl - application/vnd.ufdl - - - ulw - audio/basic - - - umj - application/vnd.umajin - - - unityweb - application/vnd.unity - - - uoml - application/vnd.uoml+xml - - - uri - text/uri-list - - - uris - text/uri-list - - - urls - text/uri-list - - - ustar - application/x-ustar - - - utz - application/vnd.uiq.theme - - - uu - text/x-uuencode - - - uva - audio/vnd.dece.audio - - - uvd - application/vnd.dece.data - - - uvf - application/vnd.dece.data - - - uvg - image/vnd.dece.graphic - - - uvh - video/vnd.dece.hd - - - uvi - image/vnd.dece.graphic - - - uvm - video/vnd.dece.mobile - - - uvp - video/vnd.dece.pd - - - uvs - video/vnd.dece.sd - - - uvt - application/vnd.dece.ttml+xml - - - uvu - video/vnd.uvvu.mp4 - - - uvv - video/vnd.dece.video - - - uvva - audio/vnd.dece.audio - - - uvvd - application/vnd.dece.data - - - uvvf - application/vnd.dece.data - - - uvvg - image/vnd.dece.graphic - - - uvvh - video/vnd.dece.hd - - - uvvi - image/vnd.dece.graphic - - - uvvm - video/vnd.dece.mobile - - - uvvp - video/vnd.dece.pd - - - uvvs - video/vnd.dece.sd - - - uvvt - application/vnd.dece.ttml+xml - - - uvvu - video/vnd.uvvu.mp4 - - - uvvv - video/vnd.dece.video - - - uvvx - application/vnd.dece.unspecified - - - uvvz - application/vnd.dece.zip - - - uvx - application/vnd.dece.unspecified - - - uvz - application/vnd.dece.zip - - - vcard - text/vcard - - - vcd - application/x-cdlink - - - vcf - text/x-vcard - - - vcg - application/vnd.groove-vcard - - - vcs - text/x-vcalendar - - - vcx - application/vnd.vcx - - - vis - application/vnd.visionary - - - viv - video/vnd.vivo - - - vor - application/vnd.stardivision.writer - - - vox - application/x-authorware-bin - - - vrml - model/vrml - - - vsd - application/vnd.visio - - - vsf - application/vnd.vsf - - - vss - application/vnd.visio - - - vst - application/vnd.visio - - - vsw - application/vnd.visio - - - vtu - model/vnd.vtu - - - vxml - application/voicexml+xml - - - w3d - application/x-director - - - wad - application/x-doom - - - wav - audio/x-wav - - - wax - audio/x-ms-wax - - - - wbmp - image/vnd.wap.wbmp - - - wbs - application/vnd.criticaltools.wbs+xml - - - wbxml - application/vnd.wap.wbxml - - - wcm - application/vnd.ms-works - - - wdb - application/vnd.ms-works - - - weba - audio/webm - - - webm - video/webm - - - webp - image/webp - - - wg - application/vnd.pmi.widget - - - wgt - application/widget - - - wks - application/vnd.ms-works - - - wm - video/x-ms-wm - - - wma - audio/x-ms-wma - - - wmd - application/x-ms-wmd - - - wmf - application/x-msmetafile - - - - wml - text/vnd.wap.wml - - - - wmlc - application/vnd.wap.wmlc - - - - wmls - text/vnd.wap.wmlscript - - - - wmlsc - application/vnd.wap.wmlscriptc - - - wmv - video/x-ms-wmv - - - wmx - video/x-ms-wmx - - - wmz - application/x-ms-wmz - - - woff - application/x-font-woff - - - wpd - application/vnd.wordperfect - - - wpl - application/vnd.ms-wpl - - - wps - application/vnd.ms-works - - - wqd - application/vnd.wqd - - - wri - application/x-mswrite - - - wrl - model/vrml - - - wsdl - application/wsdl+xml - - - wspolicy - application/wspolicy+xml - - - wtb - application/vnd.webturbo - - - wvx - video/x-ms-wvx - - - x32 - application/x-authorware-bin - - - x3d - application/vnd.hzn-3d-crossword - - - xap - application/x-silverlight-app - - - xar - application/vnd.xara - - - xbap - application/x-ms-xbap - - - xbd - application/vnd.fujixerox.docuworks.binder - - - xbm - image/x-xbitmap - - - xdf - application/xcap-diff+xml - - - xdm - application/vnd.syncml.dm+xml - - - xdp - application/vnd.adobe.xdp+xml - - - xdssc - application/dssc+xml - - - xdw - application/vnd.fujixerox.docuworks - - - xenc - application/xenc+xml - - - xer - application/patch-ops-error+xml - - - xfdf - application/vnd.adobe.xfdf - - - xfdl - application/vnd.xfdl - - - xht - application/xhtml+xml - - - xhtml - application/xhtml+xml - - - xhvml - application/xv+xml - - - xif - image/vnd.xiff - - - xla - application/vnd.ms-excel - - - xlam - application/vnd.ms-excel.addin.macroenabled.12 - - - xlc - application/vnd.ms-excel - - - xlm - application/vnd.ms-excel - - - xls - application/vnd.ms-excel - - - xlsb - application/vnd.ms-excel.sheet.binary.macroenabled.12 - - - xlsm - application/vnd.ms-excel.sheet.macroenabled.12 - - - xlsx - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - - - xlt - application/vnd.ms-excel - - - xltm - application/vnd.ms-excel.template.macroenabled.12 - - - xltx - application/vnd.openxmlformats-officedocument.spreadsheetml.template - - - xlw - application/vnd.ms-excel - - - xml - application/xml - - - xo - application/vnd.olpc-sugar - - - xop - application/xop+xml - - - xpi - application/x-xpinstall - - - xpm - image/x-xpixmap - - - xpr - application/vnd.is-xpr - - - xps - application/vnd.ms-xpsdocument - - - xpw - application/vnd.intercon.formnet - - - xpx - application/vnd.intercon.formnet - - - xsl - application/xml - - - xslt - application/xslt+xml - - - xsm - application/vnd.syncml+xml - - - xspf - application/xspf+xml - - - xul - application/vnd.mozilla.xul+xml - - - xvm - application/xv+xml - - - xvml - application/xv+xml - - - xwd - image/x-xwindowdump - - - xyz - chemical/x-xyz - - - yang - application/yang - - - yin - application/yin+xml - - - z - application/x-compress - - - Z - application/x-compress - - - zaz - application/vnd.zzazz.deck+xml - - - zip - application/zip - - - zir - application/vnd.zul - - - zirz - application/vnd.zul - - - zmm - application/vnd.handheld-entertainment+xml - - - - - - - - - - - - - - - - - - index.html - index.htm - index.jsp - - - diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-29" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-29" deleted file mode 100644 index 5f3a7d0..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-29" +++ /dev/null @@ -1,20 +0,0 @@ -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:54:08 +0800] "GET /brand-demo HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:30 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:30 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 7 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:58:55 +0800] "GET /webWork/step1.html HTTP/1.1" 200 994 http-bio-8080-exec-4 1 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:54 +0800] "GET /webWork/step1.html HTTP/1.1" 200 994 http-bio-8080-exec-5 5 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:55 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:19:59:57 +0800] "POST /src/main/webapp HTTP/1.1" 404 - http-bio-8080-exec-8 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:00:13 +0800] "POST /src/main/webapp HTTP/1.1" 404 - http-bio-8080-exec-9 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:19 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:19 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 7 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:30 +0800] "GET /webWork/step1.html HTTP/1.1" 200 975 http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:55 +0800] "GET /webWork/step1.html HTTP/1.1" 200 975 http-bio-8080-exec-5 1 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:27:58 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-6 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:41 +0800] "GET /login-test/loginServlet HTTP/1.1" 404 - http-bio-8080-exec-7 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:47 +0800] "GET /webWork/step1.html HTTP/1.1" 200 988 http-bio-8080-exec-9 2 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:28:52 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-10 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:39 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:39 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:45 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 -0:0:0:0:0:0:0:1 - - [29/Oct/2022:20:31:48 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-5 0 diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-31" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-31" deleted file mode 100644 index 5c1dc1b..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-10-31" +++ /dev/null @@ -1,50 +0,0 @@ -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 14 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:36:59 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:37:04 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 5 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:37:08 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-6 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:07 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:51:15 +0800] "POST / HTTP/1.1" 404 - http-bio-8080-exec-5 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:58:57 +0800] "GET /webWork/step1.html HTTP/1.1" 200 1010 http-bio-8080-exec-1 26 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:15:59:00 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-3 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:29 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:29 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:35 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:09:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 4 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:10:24 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-6 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:10:26 +0800] "GET /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 15 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:48 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:30:58 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:02 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-6 5 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:56 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:31:57 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 19 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:05 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:14 +0800] "GET /webWork/step2.heml HTTP/1.1" 404 987 http-bio-8080-exec-5 1 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:32:19 +0800] "GET /webWork/step2.html HTTP/1.1" 200 1191 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:33:18 +0800] "GET /webWork/step1.heml HTTP/1.1" 404 987 http-bio-8080-exec-1 30 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:33:25 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-3 4 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:36:41 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:36:41 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 20 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:37:16 +0800] "GET /webWork/step1.html HTTP/1.1" 200 1000 http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:37:19 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 4 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:40 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:40 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:46 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:16:47:48 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:22 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:22 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 14 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:31 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:02:33 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 200 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:08 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:08 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:22 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 5 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:04:22 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:05 +0800] "GET /webWork/step3.html HTTP/1.1" 404 987 http-bio-8080-exec-7 2 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:10 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 993 http-bio-8080-exec-9 418 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:20:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 993 http-bio-8080-exec-10 35 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:29:55 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1057 http-bio-8080-exec-3 26 -0:0:0:0:0:0:0:1 - - [31/Oct/2022:17:31:26 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1069 http-bio-8080-exec-2 24 diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-01" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-01" deleted file mode 100644 index 9fc8f49..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-01" +++ /dev/null @@ -1,6 +0,0 @@ -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:04 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-2 0 -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:04 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:05 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1208 http-bio-8080-exec-5 464 -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:52:54 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1230 http-bio-8080-exec-6 42 -0:0:0:0:0:0:0:1 - - [01/Nov/2022:21:53:28 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1230 http-bio-8080-exec-7 43 diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-03" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-03" deleted file mode 100644 index d350f0a..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-03" +++ /dev/null @@ -1,63 +0,0 @@ -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 16 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:39 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:46 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 10 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:49 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-6 8 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:26:49 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-7 7 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:27:59 +0800] "GET /webWork/step2.html HTTP/1.1" 200 1191 http-bio-8080-exec-9 3 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:07 +0800] "POST /webWork/addressServlet HTTP/1.1" 200 - http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:21 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:21 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 12 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:28 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 7 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:28 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:28:33 +0800] "POST /webWork/addressServlet HTTP/1.1" 200 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:15 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:15 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 12 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:21 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 7 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:21 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:25 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:30:26 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1209 http-bio-8080-exec-7 412 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:35 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-9 3 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-9 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:38 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:43 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:43:43 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1175 http-bio-8080-exec-9 73 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:55:44 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 64 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:55:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:12 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:12 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 3 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:32 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:56:32 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1174 http-bio-8080-exec-7 70 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:19 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1106 http-bio-8080-exec-10 64 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:21 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1106 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:40 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-10 66 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:58:41 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:59:54 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-5 47 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:15:59:56 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-5 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:00 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 38 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:00 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:02 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-8 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:36 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:36 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 9 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:44 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 4 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:44 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 2 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:48 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:01:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1108 http-bio-8080-exec-7 13 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 264 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:08 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:03:08 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1177 http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:04:19 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1192 http-bio-8080-exec-8 48 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:05:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1179 http-bio-8080-exec-8 43 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:05:22 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1179 http-bio-8080-exec-8 42 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:30 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-1 326 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:30 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:36 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 3 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:38 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 2 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:38 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:43 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [03/Nov/2022:16:11:43 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-8 1 diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-06" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-06" deleted file mode 100644 index 96549aa..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/webWork/target/tomcat/logs/access_log.2022-11-06" +++ /dev/null @@ -1,87 +0,0 @@ -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 13 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:16 +0800] "GET /favicon.ico HTTP/1.1" 404 - http-bio-8080-exec-4 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:22 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-5 4 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:39 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-6 7 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:39 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-7 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:45 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-8 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:04:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-9 21 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:14:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1147 http-bio-8080-exec-1 429 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:15:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1149 http-bio-8080-exec-3 46 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:35 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:35 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 11 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:43 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-4 6 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:43 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:48 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-6 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:17:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-7 21 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:18:33 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-8 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:18:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-9 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:19:23 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:22 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-10 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:22 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-10 358 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:25 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-4 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-4 45 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:20:34 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1178 http-bio-8080-exec-6 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:01 +0800] "GET /webWork HTTP/1.1" 302 - http-bio-8080-exec-1 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:01 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-3 10 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:04 +0800] "GET /webWork/ HTTP/1.1" 404 967 http-bio-8080-exec-4 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:15 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 5 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:15 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 3 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:19 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:20 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 4022 http-bio-8080-exec-8 368 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:21:46 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1224 http-bio-8080-exec-2 55 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:22:27 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1242 http-bio-8080-exec-10 41 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:42 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 38 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:44 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:24:45 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1252 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-1 49 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:17 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-2 4 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:19 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:20 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-5 3 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:20 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:24 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-7 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:24 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-8 3 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:31:35 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2379 http-bio-8080-exec-3 3 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-9 340 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-10 5 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:01 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2889 http-bio-8080-exec-1 4 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:32:21 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-2 43 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:36 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 39 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:37 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:37 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:38 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:38 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:33:39 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:12 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 41 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:13 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:34:14 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-6 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:36:48 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1226 http-bio-8080-exec-9 41 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:36:49 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1226 http-bio-8080-exec-9 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:39:33 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1256 http-bio-8080-exec-4 37 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 32 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:41:52 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1270 http-bio-8080-exec-3 0 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:49:03 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1364 http-bio-8080-exec-6 34 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:14 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 27 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:15 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:42 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1363 http-bio-8080-exec-10 31 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:50:50 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1269 http-bio-8080-exec-10 31 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 32 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:05 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:51:06 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1267 http-bio-8080-exec-10 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:52:59 +0800] "GET /webWork/step1.html HTTP/1.1" 304 - http-bio-8080-exec-1 28 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:00 +0800] "POST /webWork/shopcarServlet HTTP/1.1" 302 - http-bio-8080-exec-3 8 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:00 +0800] "GET /webWork/step2.html HTTP/1.1" 304 - http-bio-8080-exec-4 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:04 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-5 2 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:04 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2370 http-bio-8080-exec-6 25 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:28 +0800] "GET /webWork/step3.jsp HTTP/1.1" 500 2804 http-bio-8080-exec-2 344 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:53:51 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1199 http-bio-8080-exec-7 49 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:54:40 +0800] "POST /webWork/addressServlet HTTP/1.1" 302 - http-bio-8080-exec-9 1 -0:0:0:0:0:0:0:1 - - [06/Nov/2022:09:54:40 +0800] "GET /webWork/step3.jsp HTTP/1.1" 200 1113 http-bio-8080-exec-10 40 -- Gitee From 60bd6c6dfff0f10f33cff8d956867a0418b011da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sat, 10 Dec 2022 08:54:06 +0000 Subject: [PATCH 175/688] =?UTF-8?q?=E9=92=A2=E8=9B=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗鑫lxxx666 <10602820+jason666NB@user.noreply.gitee.com> --- .../Brand.java" | 101 ++++++++++++++++++ .../ServletDemo1.java" | 39 +++++++ .../ServletDemo2.java" | 37 +++++++ .../User.java" | 76 +++++++++++++ .../jstl-foreach.jsp" | 60 +++++++++++ .../jstl.jsp" | 67 ++++++++++++ .../test.jsp" | 44 ++++++++ 7 files changed, 424 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl-foreach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Brand.java" new file mode 100644 index 0000000..6ae9f9e --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Brand.java" @@ -0,0 +1,101 @@ +package com.ittest.pojo; + +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo1.java" new file mode 100644 index 0000000..379d06f --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo1.java" @@ -0,0 +1,39 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo2.java" new file mode 100644 index 0000000..0edc5d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo2.java" @@ -0,0 +1,37 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; +import com.ittest.pojo.User; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/User.java" new file mode 100644 index 0000000..8ea795d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/User.java" @@ -0,0 +1,76 @@ +package com.ittest.pojo; + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl-foreach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl-foreach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl-foreach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl.jsp" new file mode 100644 index 0000000..9e324af --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/6 + Time: 20:20 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/test.jsp" new file mode 100644 index 0000000..7795ee3 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From f82fcedafc457dda5133442618ce9978b61744b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sat, 10 Dec 2022 08:54:32 +0000 Subject: [PATCH 176/688] =?UTF-8?q?=E9=92=A2=E8=9B=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗鑫lxxx666 <10602820+jason666NB@user.noreply.gitee.com> --- .../l\347\275\227\351\221\253/filter.java" | 35 +++++++++++++++++++ .../filterServelet.java" | 26 ++++++++++++++ .../l\347\275\227\351\221\253/filterweb.html" | 12 +++++++ .../l\347\275\227\351\221\253/filterweb.jsp" | 24 +++++++++++++ .../l\347\275\227\351\221\253/webtest.jsp" | 20 +++++++++++ 5 files changed, 117 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filter.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterServelet.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterweb.html" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterweb.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/webtest.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filter.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filter.java" new file mode 100644 index 0000000..2c82a03 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filter.java" @@ -0,0 +1,35 @@ +import javax.servlet.*; +import javax.servlet.annotation.WebFilter; +import java.io.IOException; + +//配置Filter拦截路径 +@WebFilter("/test") +public class filter implements Filter { + @Override + public void init(FilterConfig filterConfig) throws ServletException { + + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { + request.setCharacterEncoding("utf-8"); + String[] str = new String[]{"sb","lz","2货"}; + String name = request.getParameter("name"); +// name = name.replaceAll("sb","**"); +// name = name.replaceAll("lz","**"); + for (int i = 0; i < str.length; i++) { + String index = str[i]; + name = name.replaceAll(index,"**"); + } + System.out.print("过滤后输出:"); + System.out.println(name); + request.setAttribute("name",name); + + + chain.doFilter(request,response); + } + @Override + public void destroy() { + + } +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterServelet.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterServelet.java" new file mode 100644 index 0000000..bb346d1 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterServelet.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/test") +public class filterServelet extends HttpServlet { + @Override + public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + String name = request.getParameter("name"); + System.out.print("原输入:"); + System.out.println(name); + + + } + + + @Override + public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request,response); + + } + +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterweb.html" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterweb.html" new file mode 100644 index 0000000..3b56155 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterweb.html" @@ -0,0 +1,12 @@ + + + + + Title + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterweb.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterweb.jsp" new file mode 100644 index 0000000..e6945eb --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/filterweb.jsp" @@ -0,0 +1,24 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/4 + Time: 15:49 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + + 过滤器应用---敏感词过滤 + + + +

过滤器应用---敏感词过滤

+
+ + +
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/webtest.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/webtest.jsp" new file mode 100644 index 0000000..55f167c --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/webtest.jsp" @@ -0,0 +1,20 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/5 + Time: 14:53 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 过滤器应用---敏感词过滤 + + +

过滤器应用---敏感词过滤

+
+ + +
+ + -- Gitee From a519f04e562dc41ba0a1689dc3187d4f3780c2bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sat, 10 Dec 2022 08:55:01 +0000 Subject: [PATCH 177/688] ggii --- .../CheckCodeServlet.java" | 30 ++++++++++ .../l\347\275\227\351\221\253/register.html" | 48 +++++++++++++++ .../l\347\275\227\351\221\253/register.jsp" | 60 +++++++++++++++++++ 3 files changed, 138 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/CheckCodeServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/register.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/register.jsp" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/CheckCodeServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/CheckCodeServlet.java" new file mode 100644 index 0000000..f4f75d7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/CheckCodeServlet.java" @@ -0,0 +1,30 @@ +package com.itheima.web; + +import com.itheima.util.CheckCodeUtil; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStream; +@WebServlet("/CheckCodeServlet") +public class CheckCodeServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + ServletOutputStream os = resp.getOutputStream(); + String checkcode = CheckCodeUtil.outputVerifyImage(80, 40, os, 4); + //存入Sessio + HttpSession session = req.getSession(); + session.setAttribute("checkCodeGen",checkcode); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doGet(req,resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/register.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/register.html" new file mode 100644 index 0000000..a2bf762 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/register.html" @@ -0,0 +1,48 @@ + + + + + 欢迎注册 + + + + +
+
+

欢迎注册

+ 已有帐号? 登录 +
+
+ + + + + + + + + + + + + + +
用户名 + +
+ +
密码 + +
+ +
+ +
+ +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/register.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/register.jsp" new file mode 100644 index 0000000..b6394c8 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/register.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + + + 欢迎注册 + + + + +
+
+

欢迎注册

+ 已有帐号? 登录 +
+
+ + + + + + + + + + + + + + + + + +
用户名 + +
+ +
密码 + +
+ +
验证码 + + + 看不清 +
+ +
+ +
+
+
+
+ + + -- Gitee From 70bbee4cc05b0c3bb53515db1d608f7ac51ea816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sat, 10 Dec 2022 08:55:18 +0000 Subject: [PATCH 178/688] 55 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗鑫lxxx666 <10602820+jason666NB@user.noreply.gitee.com> --- .../addressServlet.java" | 34 +++++++++ .../shopcarServlet.java" | 46 ++++++++++++ .../\347\275\227\351\221\253/step1.html" | 35 +++++++++ .../\347\275\227\351\221\253/step2.html" | 44 +++++++++++ .../\347\275\227\351\221\253/step3.jsp" | 73 +++++++++++++++++++ 5 files changed, 232 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/addressServlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/shopcarServlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/step1.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/step2.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/step3.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/addressServlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/addressServlet.java" new file mode 100644 index 0000000..3760bde --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/addressServlet.java" @@ -0,0 +1,34 @@ +package com.web; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.net.URLEncoder; + +@WebServlet("/addressServlet") +public class addressServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("UTF-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = new String(req.getParameter("address").getBytes("ISO-8859-1"),"UTF-8"); + String cardcheck = req.getParameter("cardcheck"); + String cardnumber = req.getParameter("cardnumber"); + HttpSession session = req.getSession(); + session.setAttribute("name",name); + session.setAttribute("address",address); + session.setAttribute("cardcheck",cardcheck); + session.setAttribute("cardnumber",cardnumber); + resp.sendRedirect("/webWork/step3.jsp"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doGet(req,resp); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/shopcarServlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/shopcarServlet.java" new file mode 100644 index 0000000..5a47470 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/shopcarServlet.java" @@ -0,0 +1,46 @@ +package com.web; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/shopcarServlet") +public class shopcarServlet extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=UTF-8"); + String javacheck = req.getParameter("javacheck"); + String Oraclecheck = req.getParameter("Oraclecheck"); + String Strutscheck = req.getParameter("Strutscheck"); +// if ("java".equals(javacheck)){ +// Cookie check1 = new Cookie("check1", javacheck); +// check1.setMaxAge(60*60*24*7); +// resp.addCookie(check1); +// } +// if ("Oracle".equals(Oraclecheck)){ +// Cookie check2 = new Cookie("check2", Oraclecheck); +// check2.setMaxAge(60*60*24*7); +// resp.addCookie(check2); +// } +// if ("Struts".equals(Strutscheck)){ +// Cookie check3 = new Cookie("check3", Strutscheck); +// check3.setMaxAge(60*60*24*7); +// resp.addCookie(check3); +// } + HttpSession session = req.getSession(); + session.setAttribute("javacheck",javacheck); + session.setAttribute("Oraclecheck",Oraclecheck); + session.setAttribute("Strutscheck",Strutscheck); + String contextPath = req.getContextPath(); + resp.sendRedirect("/webWork/step2.html"); +// req.getRequestDispatcher("/step2.html").forward(req,resp); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/step1.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/step1.html" new file mode 100644 index 0000000..f8f1376 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/step1.html" @@ -0,0 +1,35 @@ + + + + + 购物车 + + +
+ +

Step1:选择要购买的书籍

+ + + + + + + + + + + + + + + + + + + + + +
书名购买
Java

Oraclecheck

Strutscheck

+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/step2.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/step2.html" new file mode 100644 index 0000000..2ab8b4e --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/step2.html" @@ -0,0 +1,44 @@ + + + + + 订单信息 + + +

请输入寄送地址与信用卡信息

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
信用卡信息
种类Master
Visa
卡号
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/step3.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/step3.jsp" new file mode 100644 index 0000000..bf53de8 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/step3.jsp" @@ -0,0 +1,73 @@ +<%-- + Created by IntelliJ IDEA. + User: ɶ + Date: 2022/10/31 + Time: 17:07 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" pageEncoding="gb2312"%> +<%@ page contentType="text/html;charset=gb2312"%> +<%@ page import="java.net.URLEncoder" %> +<%@ page import="java.net.URLDecoder" %> + + + + ȷ + + +
+ + + <% + request.setCharacterEncoding("utf-8"); + %> + + + <% +// response.setContentType("test/http;charset=UTF-8"); + HttpSession session1 = request.getSession(); + String name = String.valueOf(session1.getAttribute("name")); + String javacheck = (String) session1.getAttribute("javacheck"); + String Oraclecheck = (String) session1.getAttribute("Oraclecheck"); + String Strutscheck = (String) session1.getAttribute("Strutscheck"); + String address = String.valueOf(session1.getAttribute("address")); + String cardcheck = String.valueOf(session1.getAttribute("cardcheck")); + String cardnumber = String.valueOf(session1.getAttribute("cardnumber")); + + %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
˿<%out.write(name);%>
ַ<%URLDecoder.decode(address,"UTF-8");%> + <%out.print(address);%>
Ϣ
ÿ<%out.write(cardcheck);%>
<%out.write(cardnumber);%>
Ŀ
<%out.write(javacheck);%>
<%out.print(Oraclecheck);%>
<%out.print(Strutscheck);%>
+
+ + -- Gitee From f3135845d6a124a3df01d6ffdd093393d5a67198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sat, 10 Dec 2022 08:55:33 +0000 Subject: [PATCH 179/688] 55 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗鑫lxxx666 <10602820+jason666NB@user.noreply.gitee.com> --- .../l\347\275\227\351\221\253/test.jsp" | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/test.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/test.jsp" new file mode 100644 index 0000000..7795ee3 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/l\347\275\227\351\221\253/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From 4a70bf9719d54fe2047eeeb1650d397941259039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sat, 10 Dec 2022 11:16:31 +0000 Subject: [PATCH 180/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=BD=97=E9=91=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\275\227\351\221\253/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 30c774c42646722dcad3569ef19040e86be9f802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sat, 10 Dec 2022 11:17:02 +0000 Subject: [PATCH 181/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Brand.java" | 101 ------------------ .../ServletDemo1.java" | 39 ------- .../ServletDemo2.java" | 37 ------- .../User.java" | 76 ------------- .../jstl-foreach.jsp" | 60 ----------- .../jstl.jsp" | 67 ------------ .../test.jsp" | 44 -------- .../\347\275\227\351\221\253/.keep" | 0 8 files changed, 424 deletions(-) delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Brand.java" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo1.java" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo2.java" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/User.java" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl-foreach.jsp" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl.jsp" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/test.jsp" delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Brand.java" deleted file mode 100644 index 6ae9f9e..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Brand.java" +++ /dev/null @@ -1,101 +0,0 @@ -package com.ittest.pojo; - -/** - * 品牌实体类 - */ - -public class Brand { - // id 主键 - private Integer id; - // 品牌名称 - private String brandName; - // 企业名称 - private String companyName; - // 排序字段 - private Integer ordered; - // 描述信息 - private String description; - // 状态:0:禁用 1:启用 - private Integer status; - - - public Brand() { - } - - public Brand(Integer id, String brandName, String companyName, String description) { - this.id = id; - this.brandName = brandName; - this.companyName = companyName; - this.description = description; - } - - public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { - this.id = id; - this.brandName = brandName; - this.companyName = companyName; - this.ordered = ordered; - this.description = description; - this.status = status; - } - // getId ${brand.id} Id getId - public Integer getId() { - System.out.println("getId方法被调用了..."); - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getBrandName() { - return brandName; - } - - public void setBrandName(String brandName) { - this.brandName = brandName; - } - - public String getCompanyName() { - return companyName; - } - - public void setCompanyName(String companyName) { - this.companyName = companyName; - } - - public Integer getOrdered() { - return ordered; - } - - public void setOrdered(Integer ordered) { - this.ordered = ordered; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } - - @Override - public String toString() { - return "Brand{" + - "id=" + id + - ", brandName='" + brandName + '\'' + - ", companyName='" + companyName + '\'' + - ", ordered=" + ordered + - ", description='" + description + '\'' + - ", status=" + status + - '}'; - } -} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo1.java" deleted file mode 100644 index 379d06f..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo1.java" +++ /dev/null @@ -1,39 +0,0 @@ -package com.ittest.web; - -import com.ittest.pojo.Brand; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -@WebServlet("/demo1") -public class ServletDemo1 extends HttpServlet { - @Override - protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { - //1. 准备数据 - List brands = new ArrayList(); - brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); - brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); - brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); - - - //2. 存储到request域中 - request.setAttribute("brands",brands); - request.setAttribute("status",1); - - //3. 转发到 el-demo.jsp - //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); - //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); - request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); - } - - @Override - protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { - this.doGet(request, response); - } -} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo2.java" deleted file mode 100644 index 0edc5d5..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo2.java" +++ /dev/null @@ -1,37 +0,0 @@ -package com.ittest.web; - -import com.ittest.pojo.Brand; -import com.ittest.pojo.User; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -@WebServlet("/demo2") -public class ServletDemo2 extends HttpServlet { - @Override - protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { - //1. 准备数据 - List users = new ArrayList(); - users.add(new User(1,"加维","男",20,"斗牛士军团",1)); - users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); - users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); - - - //2. 存储到request域中 - request.setAttribute("users",users); - request.setAttribute("status",1); - - //3. 转发到 jstl.jsp - request.getRequestDispatcher("/jstl.jsp").forward(request,response); - } - - @Override - protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { - this.doGet(request, response); - } -} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/User.java" deleted file mode 100644 index 8ea795d..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/User.java" +++ /dev/null @@ -1,76 +0,0 @@ -package com.ittest.pojo; - -public class User { - // id 主键 - private Integer id; - // 名称 - private String UserName; - // 性别 - private String sex; - // 年龄 - private Integer old; - // 描述信息 - private String description; - // 状态:0:禁用 1:启用 - private Integer status; - - public User() { - } - - public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { - this.id = id; - this.UserName = userName; - this.sex = sex; - this.old = old; - this.description = description; - this.status = status; - } - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getUserName() { - return UserName; - } - - public void setUserName(String userName) { - this.UserName = userName; - } - - public String getSex() { - return sex; - } - - public void setSex(String sex) { - this.sex = sex; - } - - public Integer getOld() { - return old; - } - - public void setOld(Integer old) { - this.old = old; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } -} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl-foreach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl-foreach.jsp" deleted file mode 100644 index 20a8e34..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl-foreach.jsp" +++ /dev/null @@ -1,60 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - - - - - - Title - - -
-
- - - - - - - - - - - - - - - - <%----%> - - - - - - - - - - - - - - - - - - - - -
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
- - -
- -<%----%> -<%-- ${i}--%> -<%----%> - - - - \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl.jsp" deleted file mode 100644 index 9e324af..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl.jsp" +++ /dev/null @@ -1,67 +0,0 @@ -<%-- - Created by IntelliJ IDEA. - User: 啥 - Date: 2022/12/6 - Time: 20:20 - To change this template use File | Settings | File Templates. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - - - - - - User - - -
-
- - - - - - - - - - - - - - - - <%----%> - - - - - - - - - - - - - - - - - - - - -
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
- - -
- -<%----%> -<%-- ${i}--%> -<%----%> - - - - diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/test.jsp" deleted file mode 100644 index 7795ee3..0000000 --- "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/test.jsp" +++ /dev/null @@ -1,44 +0,0 @@ -<%-- - Created by IntelliJ IDEA. - User: 啥 - Date: 2022/12/7 - Time: 17:18 - To change this template use File | Settings | File Templates. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ page language="java" %> -<% - String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; -%> - - - - - Java 二维数组示例 - - -

Java 二维数组内容

- - - - - - - <% - for (int i = 0; i < array.length; i++) { - %> - - <% - for (int j = 0; j < array[i].length; j++) { - %> - - <% - } - %> - - <% - } - %> -
第一列第二列第三列
<%= array[i][j] %>
- - diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 49be782bb98490b1bd3c6856a6975ca315c022fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E9=91=ABlxxx666?= <10602820+jason666NB@user.noreply.gitee.com> Date: Sat, 10 Dec 2022 11:17:44 +0000 Subject: [PATCH 182/688] =?UTF-8?q?=E9=92=A2=E8=9B=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 罗鑫lxxx666 <10602820+jason666NB@user.noreply.gitee.com> --- .../\347\275\227\351\221\253/Brand.java" | 101 ++++++++++++++++++ .../ServletDemo1.java" | 39 +++++++ .../ServletDemo2.java" | 37 +++++++ .../\347\275\227\351\221\253/User.java" | 76 +++++++++++++ .../jstl-foreach.jsp" | 60 +++++++++++ .../\347\275\227\351\221\253/jstl.jsp" | 67 ++++++++++++ .../\347\275\227\351\221\253/test.jsp" | 44 ++++++++ 7 files changed, 424 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/ServletDemo1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/ServletDemo2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl-foreach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/Brand.java" new file mode 100644 index 0000000..6ae9f9e --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/Brand.java" @@ -0,0 +1,101 @@ +package com.ittest.pojo; + +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/ServletDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/ServletDemo1.java" new file mode 100644 index 0000000..379d06f --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/ServletDemo1.java" @@ -0,0 +1,39 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/ServletDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/ServletDemo2.java" new file mode 100644 index 0000000..0edc5d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/ServletDemo2.java" @@ -0,0 +1,37 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; +import com.ittest.pojo.User; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/User.java" new file mode 100644 index 0000000..8ea795d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/User.java" @@ -0,0 +1,76 @@ +package com.ittest.pojo; + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl-foreach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl-foreach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl-foreach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl.jsp" new file mode 100644 index 0000000..9e324af --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/jstl.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/6 + Time: 20:20 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/test.jsp" new file mode 100644 index 0000000..7795ee3 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\275\227\351\221\253/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From bd7e5272f39f0970f7b86f3efe521d37fda0cd4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 07:48:02 +0000 Subject: [PATCH 183/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=92=9F=E6=80=9D?= =?UTF-8?q?=E7=90=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\222\237\346\200\235\347\220\246/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From bd5678bec1f5de704f9e691a46e8911e0a0134bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 07:49:05 +0000 Subject: [PATCH 184/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=200317?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\222\237\346\200\235\347\220\246/0317/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/0317/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/0317/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/0317/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 1a13c5aa86ecd9afdaf39d4d2bca9e59af21f817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 07:52:25 +0000 Subject: [PATCH 185/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=92=9F=E6=80=9D?= =?UTF-8?q?=E7=90=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\222\237\346\200\235\347\220\246/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From d350c6c2e8b724d0c6e928ced767caebf445cb82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 07:53:56 +0000 Subject: [PATCH 186/688] =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6=E7=AC=AC2?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 钟思琦 <2739149192@qq.com> --- .../2022.9.24/Login.java" | 51 +++++++++++ .../2022.9.24/Register.java" | 87 +++++++++++++++++++ .../2022.9.24/login.html" | 15 ++++ .../2022.9.24/register.html" | 17 ++++ 4 files changed, 170 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/2022.9.24/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/2022.9.24/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/2022.9.24/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/2022.9.24/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/2022.9.24/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/2022.9.24/Login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/2022.9.24/Login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/2022.9.24/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/2022.9.24/Register.java" new file mode 100644 index 0000000..8b8b781 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/2022.9.24/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/2022.9.24/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/2022.9.24/login.html" new file mode 100644 index 0000000..7993a7f --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/2022.9.24/login.html" @@ -0,0 +1,15 @@ + + + + + 用户登入 + + + +
+
+
+ + + + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/2022.9.24/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/2022.9.24/register.html" new file mode 100644 index 0000000..f5eeff4 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/2022.9.24/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+ + 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file -- Gitee From 917610ba1506ae7901014cf7d0a91a7957b16f07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 07:54:46 +0000 Subject: [PATCH 187/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=92=9F=E6=80=9D?= =?UTF-8?q?=E7=90=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\222\237\346\200\235\347\220\246/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From aa35900e1743ef4e3f3e21a522b65c0c7ab54f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 07:55:36 +0000 Subject: [PATCH 188/688] =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 钟思琦 <2739149192@qq.com> --- .../2022.9.25/FailServlet.java" | 21 ++++++++++ .../2022.9.25/LoginServlet.java" | 40 +++++++++++++++++++ .../2022.9.25/SuccessServlet.java" | 21 ++++++++++ .../2022.9.25/loginservlet.html" | 14 +++++++ .../2022.9.30/fail.java" | 17 ++++++++ .../2022.9.30/login.html" | 17 ++++++++ .../2022.9.30/login.java" | 34 ++++++++++++++++ .../2022.9.30/success.java" | 34 ++++++++++++++++ 8 files changed, 198 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/loginservlet.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/success.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/FailServlet.java" new file mode 100644 index 0000000..4b76b8e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/FailServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/LoginServlet.java" new file mode 100644 index 0000000..74f00ac --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/LoginServlet.java" @@ -0,0 +1,40 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/SuccessServlet.java" new file mode 100644 index 0000000..cfaf017 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/SuccessServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/loginservlet.html" new file mode 100644 index 0000000..d4da7fc --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/fail.java" new file mode 100644 index 0000000..03420ec --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/fail.java" @@ -0,0 +1,17 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Fail") +public class fail extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.html" new file mode 100644 index 0000000..70f8f2b --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.html" @@ -0,0 +1,17 @@ + + + + + 用户登录 + + +
+
+ 姓名:
+ 密码:
+ + +
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.java" new file mode 100644 index 0000000..6d83de9 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.java" @@ -0,0 +1,34 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/success.java" new file mode 100644 index 0000000..6d83de9 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/success.java" @@ -0,0 +1,34 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file -- Gitee From cc029dbff7e415df0d3fea4179d19ad4e99b6dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 07:57:02 +0000 Subject: [PATCH 189/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=92=9F=E6=80=9D?= =?UTF-8?q?=E7=90=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2022.9.25/FailServlet.java" | 21 ---------- .../2022.9.25/LoginServlet.java" | 40 ------------------- .../2022.9.25/SuccessServlet.java" | 21 ---------- .../2022.9.25/loginservlet.html" | 14 ------- .../2022.9.30/fail.java" | 17 -------- .../2022.9.30/login.html" | 17 -------- .../2022.9.30/login.java" | 34 ---------------- .../2022.9.30/success.java" | 34 ---------------- 8 files changed, 198 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/FailServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/LoginServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/SuccessServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/loginservlet.html" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/fail.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.html" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/success.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/FailServlet.java" deleted file mode 100644 index 4b76b8e..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/FailServlet.java" +++ /dev/null @@ -1,21 +0,0 @@ -package com.example.homework; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/FailServlet") -public class FailServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.getWriter().write("登录失败,用户名或密码错误!"); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/LoginServlet.java" deleted file mode 100644 index 74f00ac..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/LoginServlet.java" +++ /dev/null @@ -1,40 +0,0 @@ -package com.example.homework; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; - -@WebServlet("/loginservlet") -public class LoginServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.setCharacterEncoding("utf-8"); - BufferedReader reader = req.getReader(); - String line; - while ((line = reader.readLine()) != null) { - System.out.println(line); - String[] paramsArr = line.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - - if ("admin".equals(username) && "admin".equals(password)) { - System.out.println("登录成功!"); - req.getRequestDispatcher("/SuccessServlet").forward(req,resp); - } else { - System.out.println("登录失败!"); - req.getRequestDispatcher("/FailServlet").forward(req,resp); - } - } - } - - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/SuccessServlet.java" deleted file mode 100644 index cfaf017..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/SuccessServlet.java" +++ /dev/null @@ -1,21 +0,0 @@ -package com.example.homework; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/SuccessServlet") -public class SuccessServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.getWriter().write("登录成功! admin欢迎您!"); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/loginservlet.html" deleted file mode 100644 index d4da7fc..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/loginservlet.html" +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Title - - -
-
-
- -
- - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/fail.java" deleted file mode 100644 index 03420ec..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/fail.java" +++ /dev/null @@ -1,17 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -@WebServlet("/Fail") -public class fail extends HttpServlet { - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.getWriter().write("登录失败,用户名或密码错误!"); - } -} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.html" deleted file mode 100644 index 70f8f2b..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.html" +++ /dev/null @@ -1,17 +0,0 @@ - - - - - 用户登录 - - -
-
- 姓名:
- 密码:
- - -
-
- - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.java" deleted file mode 100644 index 6d83de9..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.java" +++ /dev/null @@ -1,34 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; - -@WebServlet("/login") -public class login extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.setCharacterEncoding("utf-8"); - BufferedReader reader = req.getReader(); - String line; - while ((line = reader.readLine()) != null) { - System.out.println(line); - String[] paramsArr = line.split("&"); - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - if ("admin".equals(username) && "admin".equals(password)) { - System.out.println("登录成功!"); - req.getRequestDispatcher("/Success").forward(req,resp); - } else { - System.out.println("登录失败!"); - req.getRequestDispatcher("/Fail").forward(req,resp); - } - } - } - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/success.java" deleted file mode 100644 index 6d83de9..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/success.java" +++ /dev/null @@ -1,34 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; - -@WebServlet("/login") -public class login extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.setCharacterEncoding("utf-8"); - BufferedReader reader = req.getReader(); - String line; - while ((line = reader.readLine()) != null) { - System.out.println(line); - String[] paramsArr = line.split("&"); - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - if ("admin".equals(username) && "admin".equals(password)) { - System.out.println("登录成功!"); - req.getRequestDispatcher("/Success").forward(req,resp); - } else { - System.out.println("登录失败!"); - req.getRequestDispatcher("/Fail").forward(req,resp); - } - } - } - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} \ No newline at end of file -- Gitee From 3085ea482e0b459f7a9cb5d792056172533cf5fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Sun, 11 Dec 2022 07:57:14 +0000 Subject: [PATCH 190/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴建锋 <10602847+Wuih-0809@user.noreply.gitee.com> --- .../Login.java" | 46 ++++++++++++++ .../Register.java" | 61 +++++++++++++++++++ .../login.html" | 26 ++++++++ .../register.html" | 34 +++++++++++ 4 files changed, 167 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Login.java" new file mode 100644 index 0000000..b50557c --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Login.java" @@ -0,0 +1,46 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get。。。。。"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post。。。。"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Register.java" new file mode 100644 index 0000000..8be1732 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Register.java" @@ -0,0 +1,61 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; + + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("servlet.........get........."); + req.setCharacterEncoding("utf-8"); + String parameterString = req.getQueryString(); + System.out.println(parameterString); + String[] parametersArr = parameterString.split("&"); + String username = parametersArr[0].split("=")[1]; + String password = parametersArr[1].split("=")[1]; + String gander = parametersArr[2].split("=")[1]; + String[] hobbies = req.getParameterValues("hobby"); + + System.out.println(username); + System.out.println(password); + System.out.println(gander); + System.out.println(Arrays.toString(hobbies)); + + // for (int i = 0; i + + + + Title + + +

登录页面

+
+ + + + + + + + + + + + + +
用户名:
密码:
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/register.html" new file mode 100644 index 0000000..7ef38ab --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/register.html" @@ -0,0 +1,34 @@ + + + + + Title + + +

注册页面

+
+ + + + + + + + + + + + + + + + + + + + + +
用户名:
密码:
性别:
爱好:打游戏读书运动
+
+ + \ No newline at end of file -- Gitee From d94a3217365d25311bf92b689caf61f8569cfe01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 07:57:18 +0000 Subject: [PATCH 191/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 1ae33b2aac72e5fcb9436a1631e6c446a914285e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 07:58:03 +0000 Subject: [PATCH 192/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 钟思琦 <2739149192@qq.com> --- .../2022.9.25/FailServlet.java" | 21 ++++++++++ .../2022.9.25/LoginServlet.java" | 40 +++++++++++++++++++ .../2022.9.25/SuccessServlet.java" | 21 ++++++++++ .../2022.9.25/loginservlet.html" | 14 +++++++ .../2022.9.30/fail.java" | 17 ++++++++ .../2022.9.30/login.html" | 17 ++++++++ .../2022.9.30/login.java" | 34 ++++++++++++++++ .../2022.9.30/success.java" | 34 ++++++++++++++++ 8 files changed, 198 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/loginservlet.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/success.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/FailServlet.java" new file mode 100644 index 0000000..4b76b8e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/FailServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/LoginServlet.java" new file mode 100644 index 0000000..74f00ac --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/LoginServlet.java" @@ -0,0 +1,40 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/SuccessServlet.java" new file mode 100644 index 0000000..cfaf017 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/SuccessServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/loginservlet.html" new file mode 100644 index 0000000..d4da7fc --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.25/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/fail.java" new file mode 100644 index 0000000..03420ec --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/fail.java" @@ -0,0 +1,17 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Fail") +public class fail extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.html" new file mode 100644 index 0000000..70f8f2b --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.html" @@ -0,0 +1,17 @@ + + + + + 用户登录 + + +
+
+ 姓名:
+ 密码:
+ + +
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.java" new file mode 100644 index 0000000..6d83de9 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/login.java" @@ -0,0 +1,34 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/success.java" new file mode 100644 index 0000000..6d83de9 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/2022.9.30/success.java" @@ -0,0 +1,34 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file -- Gitee From d3a08562daa234c48f0327e7bfdf4bff16f83090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 07:58:55 +0000 Subject: [PATCH 193/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=92=9F=E6=80=9D?= =?UTF-8?q?=E7=90=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\222\237\346\200\235\347\220\246/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From e74d7940f7fb707a92132f356e050835d07fee13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 07:59:13 +0000 Subject: [PATCH 194/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E5=9B=9B?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 5e4d19d50294d8bae94cba6d68563596212efaec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Sun, 11 Dec 2022 07:59:45 +0000 Subject: [PATCH 195/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴建锋 <10602847+Wuih-0809@user.noreply.gitee.com> --- .../FailServlet.java" | 21 +++++++++++++++ .../LoginServlet.java" | 27 +++++++++++++++++++ .../SuccessServlet.java" | 21 +++++++++++++++ .../loginservlet.html" | 14 ++++++++++ 4 files changed, 83 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/loginservlet.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/FailServlet.java" new file mode 100644 index 0000000..3014aad --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/FailServlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("fail...................."); + Object username = req.getAttribute("username"); + System.out.println("登录失败,"+username+"或密码错误!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/LoginServlet.java" new file mode 100644 index 0000000..b6d304e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/LoginServlet.java" @@ -0,0 +1,27 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username = req.getParameter("username"); + String password = req.getParameter("password"); + req.setAttribute("username",username); + if("admin".equals(username)&&"admin".equals(password)){ + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + }else { + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/SuccessServlet.java" new file mode 100644 index 0000000..be26602 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/SuccessServlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("success...................."); + Object username = req.getAttribute("username"); + System.out.println("登录成功,"+username+"欢迎您!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/loginservlet.html" new file mode 100644 index 0000000..4a93bd7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file -- Gitee From 7b05c155852061394f3566ea4a61a193a9b5228b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Sun, 11 Dec 2022 08:00:31 +0000 Subject: [PATCH 196/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=90=B4=E5=BB=BA?= =?UTF-8?q?=E9=94=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\220\264\345\273\272\351\224\213/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From d2e25495a4d7db5360f8145dcc0406337d5b7482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 08:00:42 +0000 Subject: [PATCH 197/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\2321/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2321/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2321/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2321/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 00840aefd2df2e6d0363fcb0e450dd106f2486a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 08:01:45 +0000 Subject: [PATCH 198/688] 111 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 钟思琦 <2739149192@qq.com> --- .../CookieDemo1.java" | 27 +++++++ .../CookieDemo2.java" | 31 ++++++++ .../CookieTest.java" | 70 +++++++++++++++++++ 3 files changed, 128 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2321/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2321/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2321/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieTest.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2321/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2321/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo1.java" new file mode 100644 index 0000000..6522565 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2321/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo1.java" @@ -0,0 +1,27 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2321/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2321/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo2.java" new file mode 100644 index 0000000..d21becb --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2321/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo2.java" @@ -0,0 +1,31 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo2") +public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2321/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2321/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieTest.java" new file mode 100644 index 0000000..360125e --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2321/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieTest.java" @@ -0,0 +1,70 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} -- Gitee From 23e7c28aab5d89fb00aae10e2775a0fb9533dc78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 08:02:20 +0000 Subject: [PATCH 199/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\2322/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 204897731cf66c75d8a7fcd19ada4d4f8a9b9bc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 08:03:00 +0000 Subject: [PATCH 200/688] 222 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 钟思琦 <2739149192@qq.com> --- .../Books.html" | 48 +++++++++++++++++++ .../Comfirn.html" | 48 +++++++++++++++++++ .../Step1.java" | 27 +++++++++++ .../Step2.java" | 36 ++++++++++++++ .../address.html" | 48 +++++++++++++++++++ 5 files changed, 207 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Comfirn.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/address.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Books.html" new file mode 100644 index 0000000..4674751 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Books.html" @@ -0,0 +1,48 @@ + + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Comfirn.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Comfirn.html" new file mode 100644 index 0000000..4674751 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Comfirn.html" @@ -0,0 +1,48 @@ + + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step1.java" new file mode 100644 index 0000000..3b2b9bb --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step1.java" @@ -0,0 +1,27 @@ +package JavaWeb.Demo42; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step2.java" new file mode 100644 index 0000000..b750afd --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step2.java" @@ -0,0 +1,36 @@ +package JavaWeb.Demo42; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/address.html" new file mode 100644 index 0000000..4674751 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\344\275\234\344\270\2322/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/address.html" @@ -0,0 +1,48 @@ + + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + -- Gitee From 36be4b2232e748c0f9b5014482345994fdb3c281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 08:04:25 +0000 Subject: [PATCH 201/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=92=9F=E6=80=9D?= =?UTF-8?q?=E7=90=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\222\237\346\200\235\347\220\246/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From f736a27e9cd48b8702d43ab7a5432e90abfd1fc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 08:04:43 +0000 Subject: [PATCH 202/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E5=85=AD?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From bec609aa8fdf307d43186786398a68315905b249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 08:05:26 +0000 Subject: [PATCH 203/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 钟思琦 <2739149192@qq.com> --- .../jstlwork1.jsp" | 34 +++++++++++++++++++ .../fewg" | 0 2 files changed, 34 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/Java\347\254\254\345\205\255\347\253\240\344\275\234\344\270\2321/jstlwork1.jsp" create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/fewg" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/Java\347\254\254\345\205\255\347\253\240\344\275\234\344\270\2321/jstlwork1.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/Java\347\254\254\345\205\255\347\253\240\344\275\234\344\270\2321/jstlwork1.jsp" new file mode 100644 index 0000000..38fd3d2 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/Java\347\254\254\345\205\255\347\253\240\344\275\234\344\270\2321/jstlwork1.jsp" @@ -0,0 +1,34 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/12 + Time: 21:27 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("陈恒辉"); + user.add("邹晓民"); + user.add("细狗"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/fewg" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/fewg" new file mode 100644 index 0000000..e69de29 -- Gitee From 83c10cb560198a2b07ac9f2225c98b4b25916654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 08:05:48 +0000 Subject: [PATCH 204/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=92=9F=E6=80=9D?= =?UTF-8?q?=E7=90=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\222\237\346\200\235\347\220\246/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 7c9dd01eb9797fb6c03ee0b7dd6135ccc19a8c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E6=80=9D=E7=90=A6?= <2739149192@qq.com> Date: Sun, 11 Dec 2022 08:07:02 +0000 Subject: [PATCH 205/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E6=AC=A1=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 钟思琦 <2739149192@qq.com> --- .../User.java" | 41 ++++++++++++++++ .../test.jsp" | 47 +++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/User.java" new file mode 100644 index 0000000..6adff56 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/User.java" @@ -0,0 +1,41 @@ +package week12; + +public class User { + private String name; + private int age; + private String address; + + public User() { + } + + public User(String name, int age, String address) { + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } +} + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/test.jsp" new file mode 100644 index 0000000..a766931 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\222\237\346\200\235\347\220\246/\351\222\237\346\200\235\347\220\246/test.jsp" @@ -0,0 +1,47 @@ +<%@ page import="week12.User" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %> +<%-- + Created by IntelliJ IDEA. + week12.User: WX1927910504 + Date: 2022/11/16 + Time: 20:09 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new User("张三",22,"福建")); + list.add(new User("李四",23,"江西")); + list.add(new User("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.address} + +
+ + + -- Gitee From 518850dca2e50a283f7b17c5a0918017bb1e1df1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Sun, 11 Dec 2022 08:10:00 +0000 Subject: [PATCH 206/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴建锋 <10602847+Wuih-0809@user.noreply.gitee.com> --- .../Step1Servlet.java" | 21 +++++++++ .../Step2Servlet.java" | 25 ++++++++++ .../address.html" | 36 ++++++++++++++ .../books.html" | 41 ++++++++++++++++ .../confirm.jsp" | 47 +++++++++++++++++++ 5 files changed, 170 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Step1Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Step2Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/confirm.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Step1Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Step1Servlet.java" new file mode 100644 index 0000000..55cc198 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Step1Servlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/step1") +public class Step1Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[]books = req.getParameterValues("books"); + req.getSession().setAttribute("books",books); + resp.sendRedirect("/c4/address.html"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Step2Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Step2Servlet.java" new file mode 100644 index 0000000..6ce9f6d --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Step2Servlet.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/step2") +public class Step2Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String name = req.getParameter("name"); + String address = req.getParameter("address"); + HttpSession session = req.getSession(); + session.setAttribute("name",name); + session.setAttribute("address",address); + resp.sendRedirect("/c4/confirm.jsp"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/address.html" new file mode 100644 index 0000000..3725556 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/address.html" @@ -0,0 +1,36 @@ + + + + + Title + + + +

Step2:请输入寄送地址与信用卡信息

+
+ + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/books.html" new file mode 100644 index 0000000..b23035a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/books.html" @@ -0,0 +1,41 @@ + + + + + Title + + + +

Step1:选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/confirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/confirm.jsp" new file mode 100644 index 0000000..dac52fe --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/confirm.jsp" @@ -0,0 +1,47 @@ +<%@ page import="java.io.PrintWriter" %> +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/10/31 + Time: 20:42 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + HttpSession session1 = request.getSession(); + String[] books = (String[])session1.getAttribute("books"); + String name = (String)session1.getAttribute("name"); + String address = (String)session1.getAttribute("address"); + PrintWriter printWriter = response.getWriter(); +%> + + + Title + + + +
+ <%printWriter.print("

Step3:订单确认

");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("
顾客姓名"+name+"
地址"+address+"
订货项目"+ Arrays.toString(books) +"");%> + <%printWriter.print("
");%> + + + -- Gitee From 24abfb617e697ad26422a6889b27db17eba9dd57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Sun, 11 Dec 2022 13:13:53 +0000 Subject: [PATCH 207/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=8E=8B=E6=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 33b823676a60df7abe15b7f64e08bf451eae3111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Sun, 11 Dec 2022 13:14:38 +0000 Subject: [PATCH 208/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王旭 <10602891+wx1927910504@user.noreply.gitee.com> --- ...0\347\273\204\346\211\223\345\215\260.jsp" | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\344\272\214\347\273\264\346\225\260\347\273\204\346\211\223\345\215\260.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\344\272\214\347\273\264\346\225\260\347\273\204\346\211\223\345\215\260.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\344\272\214\347\273\264\346\225\260\347\273\204\346\211\223\345\215\260.jsp" new file mode 100644 index 0000000..d72e5b9 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/\344\272\214\347\273\264\346\225\260\347\273\204\346\211\223\345\215\260.jsp" @@ -0,0 +1,41 @@ +<%-- + Created by IntelliJ IDEA. + User: WX1927910504 + Date: 2022/12/11 + Time: 20:42 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][]array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + Title + + +

二维数组

+
+ + + + + + <% + for (int i = 0; i + + <% + for (int j = 0; j + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%=array[i][j]%>
+ + -- Gitee From d88fd056656604818c0485241a313667a478120d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Sun, 11 Dec 2022 13:14:44 +0000 Subject: [PATCH 209/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=8E=8B?= =?UTF-8?q?=E6=97=AD/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 248beae13f7bcbb724c8153dc31a27f6f27c747c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Sun, 11 Dec 2022 13:16:18 +0000 Subject: [PATCH 210/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=8E=8B=E6=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From a436049126cebb4c1b27e40485fcd163731b2def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Sun, 11 Dec 2022 13:18:10 +0000 Subject: [PATCH 211/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=8E=8B=E6=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 654fbc3ce101b10998b9e52008e71db0f132cee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Sun, 11 Dec 2022 13:30:46 +0000 Subject: [PATCH 212/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王旭 <10602891+wx1927910504@user.noreply.gitee.com> --- .../\347\216\213\346\227\255/test.jsp" | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/test.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/test.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/test.jsp" new file mode 100644 index 0000000..8e080c1 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/test.jsp" @@ -0,0 +1,36 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %><%-- +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: WX1927910504 + Date: 2022/11/12 + Time: 21:27 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("张三"); + user.add("李四"); + user.add("王五"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From 79b4c72bde14aea7bf096fb165d08541851841df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Sun, 11 Dec 2022 13:30:52 +0000 Subject: [PATCH 213/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=8E=8B?= =?UTF-8?q?=E6=97=AD/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 95edf9d46c220cb0fbf06d65455554aae2254c63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A9=E6=88=90?= <1911560341@qq.com> Date: Sun, 11 Dec 2022 15:13:16 +0000 Subject: [PATCH 214/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=A4=8F=E5=A4=A9?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\244\217\345\244\251\346\210\220/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From c501cfb19d4cf9bf319ef344b6af34167e69a707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A9=E6=88=90?= <1911560341@qq.com> Date: Sun, 11 Dec 2022 15:24:11 +0000 Subject: [PATCH 215/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=A4=8F=E5=A4=A9?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\244\217\345\244\251\346\210\220/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From a1c3e873b8049dbe96b746d95f6d47908bd00cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A9=E6=88=90?= <1911560341@qq.com> Date: Sun, 11 Dec 2022 15:26:15 +0000 Subject: [PATCH 216/688] =?UTF-8?q?=E5=A4=8F=E5=A4=A9=E6=88=90/=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 夏天成 <1911560341@qq.com> --- .../login.java" | 51 +++++++++++ .../servelet.java" | 87 +++++++++++++++++++ 2 files changed, 138 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/servelet.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/login.java" new file mode 100644 index 0000000..1874eb7 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/servelet.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/servelet.java" new file mode 100644 index 0000000..0de6ef5 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/servelet.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} -- Gitee From 965540488521199f48afe296d3c3c7f60c696d26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A9=E6=88=90?= <1911560341@qq.com> Date: Sun, 11 Dec 2022 15:42:37 +0000 Subject: [PATCH 217/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=A4=8F=E5=A4=A9?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\244\217\345\244\251\346\210\220/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 44bbbbf3de48e91f292185ea0cc1454990c55b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A9=E6=88=90?= <1911560341@qq.com> Date: Sun, 11 Dec 2022 15:43:37 +0000 Subject: [PATCH 218/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 夏天成 <1911560341@qq.com> --- .../FailServlet.java" | 21 +++++++++++++++ .../LoginServlet.java" | 27 +++++++++++++++++++ .../SuccessServlet.java" | 21 +++++++++++++++ .../loginservlet.html" | 14 ++++++++++ 4 files changed, 83 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/loginservlet.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/FailServlet.java" new file mode 100644 index 0000000..3014aad --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/FailServlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("fail...................."); + Object username = req.getAttribute("username"); + System.out.println("登录失败,"+username+"或密码错误!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/LoginServlet.java" new file mode 100644 index 0000000..b6d304e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/LoginServlet.java" @@ -0,0 +1,27 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username = req.getParameter("username"); + String password = req.getParameter("password"); + req.setAttribute("username",username); + if("admin".equals(username)&&"admin".equals(password)){ + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + }else { + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/SuccessServlet.java" new file mode 100644 index 0000000..be26602 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/SuccessServlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("success...................."); + Object username = req.getAttribute("username"); + System.out.println("登录成功,"+username+"欢迎您!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/loginservlet.html" new file mode 100644 index 0000000..4a93bd7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file -- Gitee From 48131f6d43a76873544cc57c26934c5592c09036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A9=E6=88=90?= <1911560341@qq.com> Date: Mon, 12 Dec 2022 04:30:03 +0000 Subject: [PATCH 219/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=A4=8F=E5=A4=A9?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\244\217\345\244\251\346\210\220/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 629166c588afa184ed7b6a430c67578b97af50a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A9=E6=88=90?= <1911560341@qq.com> Date: Mon, 12 Dec 2022 04:39:02 +0000 Subject: [PATCH 220/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 夏天成 <1911560341@qq.com> --- .../Step1Servlet.java" | 21 ++++++++ .../Step2Servlet.java" | 25 ++++++++++ .../address.html" | 36 ++++++++++++++ .../books.html" | 41 ++++++++++++++++ .../confirm.jsp" | 48 +++++++++++++++++++ 5 files changed, 171 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/Step1Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/Step2Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/confirm.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/Step1Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/Step1Servlet.java" new file mode 100644 index 0000000..0060789 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/Step1Servlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/step1") +public class Step1Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[]books = req.getParameterValues("books"); + req.getSession().setAttribute("books",books); + resp.sendRedirect("/c4/address.html"); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/Step2Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/Step2Servlet.java" new file mode 100644 index 0000000..bf689cb --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/Step2Servlet.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/step2") +public class Step2Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String name = req.getParameter("name"); + String address = req.getParameter("address"); + HttpSession session = req.getSession(); + session.setAttribute("name",name); + session.setAttribute("address",address); + resp.sendRedirect("/c4/confirm.jsp"); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/address.html" new file mode 100644 index 0000000..3725556 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/address.html" @@ -0,0 +1,36 @@ + + + + + Title + + + +

Step2:请输入寄送地址与信用卡信息

+
+ + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/books.html" new file mode 100644 index 0000000..b23035a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/books.html" @@ -0,0 +1,41 @@ + + + + + Title + + + +

Step1:选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/confirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/confirm.jsp" new file mode 100644 index 0000000..703348e --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/confirm.jsp" @@ -0,0 +1,48 @@ +<%@ page import="java.io.PrintWriter" %> +<%@ page import="java.util.Arrays" %><%-- +<%-- + Created by IntelliJ IDEA. + User: 夏天 + Date: 2022/12/12 + Time: 12:34 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + HttpSession session1 = request.getSession(); + String[] books = (String[])session1.getAttribute("books"); + String name = (String)session1.getAttribute("name"); + String address = (String)session1.getAttribute("address"); + PrintWriter printWriter = response.getWriter(); +%> + + + Title + + + +
+ <%printWriter.print("

Step3:订单确认

");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("
顾客姓名"+name+"
地址"+address+"
订货项目"+ Arrays.toString(books) +"");%> + <%printWriter.print("
");%> + + + \ No newline at end of file -- Gitee From b47794945e7c9d129d1118ca668ce462785b73c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=BE=89=E7=85=8C?= Date: Mon, 12 Dec 2022 18:42:35 +0800 Subject: [PATCH 221/688] first commit --- .../fdg.jsp" | 42 ++++++++++++ .../user.java" | 42 ++++++++++++ .../FailServlet.java" | 19 ++++++ .../Loginservlet.java" | 37 +++++++++++ .../SuccessServlet.java" | 19 ++++++ .../loginservlet.html" | 14 ++++ .../Login.java" | 46 +++++++++++++ .../Register.java" | 41 ++++++++++++ .../login.html" | 14 ++++ .../register.html" | 18 +++++ .../test.jsp" | 39 +++++++++++ .../sdf.jsp" | 30 +++++++++ .../CookieDemo01.java" | 49 ++++++++++++++ .../Step1.java" | 36 ++++++++++ .../Step2.java" | 34 ++++++++++ .../address.html" | 47 ++++++++++++++ .../books.html" | 40 ++++++++++++ .../confirm.html" | 43 ++++++++++++ .../confirm.jsp" | 65 +++++++++++++++++++ 19 files changed, 675 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/fdg.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/user.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Loginservlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/loginservlet.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/register.html" create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/test.jsp" create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/sdf.jsp" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/CookieDemo01.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Step1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Step2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/confirm.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/confirm.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/fdg.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/fdg.jsp" new file mode 100644 index 0000000..27e2c68 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/fdg.jsp" @@ -0,0 +1,42 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="com.example.Homework7.user" %><%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new user("张三",22,"福建")); + list.add(new user("李四",23,"江西")); + list.add(new user("王五",25,"浙江")); + request.setAttribute("list",list); +%> +
+ + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.ardress} + +
+ + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/user.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/user.java" new file mode 100644 index 0000000..dd3c673 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/user.java" @@ -0,0 +1,42 @@ +package com.example.Homework7; + +public class user { + private String name; + private int age; + private String address; + + public user(){ + + } + + public user(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getAddress() { + return address; + } + + public void setName(String name) { + this.name = name; + } + + public void setAge(int age) { + this.age = age; + } + + public void setAddress(String address) { + this.address = address; + } + +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/FailServlet.java" new file mode 100644 index 0000000..de855c7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/FailServlet.java" @@ -0,0 +1,19 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登入失败!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Loginservlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Loginservlet.java" new file mode 100644 index 0000000..227241b --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Loginservlet.java" @@ -0,0 +1,37 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class Loginservlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while((line = reader.readLine()) != null){ + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if("admin".equals(username) && "admin".equals(password)){ + System.out.println("登入成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + }else { + System.out.println("登入失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req,resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/SuccessServlet.java" new file mode 100644 index 0000000..f929fe5 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/SuccessServlet.java" @@ -0,0 +1,19 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登陆成功! admin欢迎您"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/loginservlet.html" new file mode 100644 index 0000000..1fb103b --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Login.java" new file mode 100644 index 0000000..c34d8dc --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Login.java" @@ -0,0 +1,46 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if("admin".equals(username) && "admin".equals(password)){ + System.out.println("登入成功!"); + }else { + System.out.println("登入失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while((line = reader.readLine()) != null){ + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if("admin".equals(username) && "admin".equals(password)){ + System.out.println("登入成功!"); + }else { + System.out.println("登入失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Register.java" new file mode 100644 index 0000000..e92f885 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Register.java" @@ -0,0 +1,41 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get------------------"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post-----------"); + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for(String key:keySet){ + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/login.html" new file mode 100644 index 0000000..136015b --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/login.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/register.html" new file mode 100644 index 0000000..bd33ecb --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/register.html" @@ -0,0 +1,18 @@ + + + + + 注册 + + +

注册界面

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/test.jsp" new file mode 100644 index 0000000..cfe2c66 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/test.jsp" @@ -0,0 +1,39 @@ +<%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][] array = {{"一","二","三"},{"四","五","六"},{"七","八","九"}}; +%> + + + + Title + + +

Java二维数组实例

+ + + + + + + <% + for(int i = 0;i < array.length;i++){ + %> + + <% + for(int j = 0;j < array[i].length;j++){ + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/sdf.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/sdf.jsp" new file mode 100644 index 0000000..f07a7d8 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/sdf.jsp" @@ -0,0 +1,30 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + +

用户表格

+ +<% + List user = new ArrayList(); + user.add("田子夜"); + user.add("孙潇涵"); + user.add("王辉煌"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/CookieDemo01.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/CookieDemo01.java" new file mode 100644 index 0000000..a86cee4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/CookieDemo01.java" @@ -0,0 +1,49 @@ +package com.example.Homework4; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Cookie01") +public class CookieDemo01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie cookie = new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + cookie.setPath("/"); + //发送Cookie + resp.addCookie(cookie); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} + +@WebServlet("/Cookie02") +class CookieDemo02 extends HttpServlet{ + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doGet(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs = req.getCookies(); + //获取数据,遍历Cookie + if(cs != null){ + for(Cookie c:cs){ + String name = c.getName(); + String value = c.getValue(); + System.out.println(name + value); + } + } + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Step1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Step1.java" new file mode 100644 index 0000000..e425cd1 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Step1.java" @@ -0,0 +1,36 @@ +package com.example.Homework4; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //String[] books = req.getParameterValues("books"); + //HttpSession session = req.getSession(); + //session.setAttribute("books",books); + //resp.sendRedirect("address.html"); + resp.setContentType("text/html;charset=UTF-8"); + String java = req.getParameter("java"); + String Oracle = req.getParameter("Oracle"); + String Struts = req.getParameter("Struts"); + + HttpSession session = req.getSession(); + session.setAttribute("java",java); + session.setAttribute("Oracle",Oracle); + session.setAttribute("Struts",Struts); + String contextPath = req.getContextPath(); + resp.sendRedirect("address.html"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Step2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Step2.java" new file mode 100644 index 0000000..7d08f52 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Step2.java" @@ -0,0 +1,34 @@ +package com.example.Homework4; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); + String card = req.getParameter("card"); + + HttpSession session = req.getSession(); + session.setAttribute("card",card); + session.setAttribute("name",name); + session.setAttribute("address",address); + session.setAttribute("username",username); + resp.sendRedirect("confirm.jsp"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/address.html" new file mode 100644 index 0000000..e4eb47b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/address.html" @@ -0,0 +1,47 @@ + + + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类Master
Visa
卡号
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/books.html" new file mode 100644 index 0000000..2555f55 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/books.html" @@ -0,0 +1,40 @@ + + + + + Title + + +

Step1想要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/confirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/confirm.html" new file mode 100644 index 0000000..688cf29 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/confirm.html" @@ -0,0 +1,43 @@ + + + + + Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print();%>
地址:<%=out.print(session.setAttribute("address"));%>
付款信息:
信用卡类型:<%out.print(session.setAttribute("types"));%>
卡号:<%out.print(session.setAttribute("username"));%>
订货信息:<%out.print(Arrays.toString((Objects[]) session.getAttribute("books")));%>
+ + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/confirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/confirm.jsp" new file mode 100644 index 0000000..7e4a57b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/confirm.jsp" @@ -0,0 +1,65 @@ +<%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step3:订单确认

+ + + <% + HttpSession session1 = request.getSession(); + String name = String.valueOf(session1.getAttribute("name")); + String java = (String) session1.getAttribute("java"); + String Oracle = (String) session1.getAttribute("Oracle"); + String Struts = (String) session1.getAttribute("Struts"); + String address = String.valueOf(session1.getAttribute("address")); + String username= String.valueOf(session1.getAttribute("username")); + String card = String.valueOf(session1.getAttribute("card")); + + %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.write(name);%>
地址:<%out.write(address);%>
付款信息:
信用卡类型:<%out.write(card);%>
卡号:<%out.write(username);%>
订货项目
<%out.write(java);%>
<%out.print(Oracle);%>
<%out.print(Struts);%>
+ + -- Gitee From 7415b99b9cb9b20f6b867687df5dbf4c332c6351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 12 Dec 2022 13:07:18 +0000 Subject: [PATCH 222/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=90=B4=E5=BB=BA?= =?UTF-8?q?=E9=94=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\220\264\345\273\272\351\224\213/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 744621a12d277b4fb66f9bab7e4dfb7f5410be25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 12 Dec 2022 13:11:19 +0000 Subject: [PATCH 223/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴建锋 <10602847+Wuih-0809@user.noreply.gitee.com> --- .../test.jsp" | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" new file mode 100644 index 0000000..a88107d --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" @@ -0,0 +1,42 @@ +<%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/12/12 + Time: 21:01 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][] array = {{"一","二","三"},{"四","五","六"},{"七","八","九"}}; +%> + + + + Title + + +

Java二维数组实例

+ + + + + + + <% + for(int i = 0;i < array.length;i++){ + %> + + <% + for(int j = 0;j < array[i].length;j++){ + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From 7bfc9af53be9260b389ccae4200743b3d50ab655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 12 Dec 2022 13:52:06 +0000 Subject: [PATCH 224/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=90=B4=E5=BB=BA?= =?UTF-8?q?=E9=94=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\220\264\345\273\272\351\224\213/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From b4d25581c503e36ef9c6b446ab92ed015d5ab909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 12 Dec 2022 13:52:45 +0000 Subject: [PATCH 225/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴建锋 <10602847+Wuih-0809@user.noreply.gitee.com> --- .../test.jsp" | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" new file mode 100644 index 0000000..570ffc6 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" @@ -0,0 +1,35 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %><%-- +<%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/11/13 + Time: 21:24 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("妙蛙种子"); + user.add("小火龙"); + user.add("杰尼龟"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + -- Gitee From 5f53282be5c7d52bf662aa155eddd5a7e8321b7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E4=BF=A1=E7=85=9C?= <247862652@qq.com> Date: Mon, 12 Dec 2022 14:06:00 +0000 Subject: [PATCH 226/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=AD=8F=E4=BF=A1?= =?UTF-8?q?=E7=85=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\255\217\344\277\241\347\205\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From e955d2d3dbc0ce9c257f0333e2fb0da3d63e584e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E4=BF=A1=E7=85=9C?= <247862652@qq.com> Date: Mon, 12 Dec 2022 14:06:24 +0000 Subject: [PATCH 227/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=AD=8F=E4=BF=A1?= =?UTF-8?q?=E7=85=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\255\217\344\277\241\347\205\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 1366b9bfef7262c355c3f974bcf03b6b7bbe05e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E4=BF=A1=E7=85=9C?= <247862652@qq.com> Date: Mon, 12 Dec 2022 14:06:40 +0000 Subject: [PATCH 228/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=AD=8F=E4=BF=A1?= =?UTF-8?q?=E7=85=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\255\217\344\277\241\347\205\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 2785c8e92f30d610eedde9a5b12e30ee191f3413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E4=BF=A1=E7=85=9C?= <247862652@qq.com> Date: Mon, 12 Dec 2022 14:07:02 +0000 Subject: [PATCH 229/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 魏信煜 <247862652@qq.com> --- .../test.jsp" | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/test.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/test.jsp" new file mode 100644 index 0000000..8ebc159 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; + %> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From 7d046abffcccfea6f8b7433d79509efc7ca5716c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E4=BF=A1=E7=85=9C?= <247862652@qq.com> Date: Mon, 12 Dec 2022 14:07:17 +0000 Subject: [PATCH 230/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=AD=8F=E4=BF=A1?= =?UTF-8?q?=E7=85=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\255\217\344\277\241\347\205\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From f189b993c1c3506cec2dcb9ac4aebce1919bdeda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E4=BF=A1=E7=85=9C?= <247862652@qq.com> Date: Mon, 12 Dec 2022 14:08:09 +0000 Subject: [PATCH 231/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 魏信煜 <247862652@qq.com> --- .../Step1Servlet.java" | 21 ++++++++++ .../Step2Servlet.java" | 25 +++++++++++ .../address.html" | 36 ++++++++++++++++ .../books.html" | 41 +++++++++++++++++++ .../confirm.jsp" | 0 5 files changed, 123 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Step1Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Step2Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/confirm.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Step1Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Step1Servlet.java" new file mode 100644 index 0000000..55cc198 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Step1Servlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/step1") +public class Step1Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[]books = req.getParameterValues("books"); + req.getSession().setAttribute("books",books); + resp.sendRedirect("/c4/address.html"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Step2Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Step2Servlet.java" new file mode 100644 index 0000000..6ce9f6d --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Step2Servlet.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/step2") +public class Step2Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String name = req.getParameter("name"); + String address = req.getParameter("address"); + HttpSession session = req.getSession(); + session.setAttribute("name",name); + session.setAttribute("address",address); + resp.sendRedirect("/c4/confirm.jsp"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/address.html" new file mode 100644 index 0000000..3725556 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/address.html" @@ -0,0 +1,36 @@ + + + + + Title + + + +

Step2:请输入寄送地址与信用卡信息

+
+ + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/books.html" new file mode 100644 index 0000000..b23035a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/books.html" @@ -0,0 +1,41 @@ + + + + + Title + + + +

Step1:选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/confirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/confirm.jsp" new file mode 100644 index 0000000..e69de29 -- Gitee From e534e266da3690a083d5364eb57c0157956a85d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E4=BF=A1=E7=85=9C?= <247862652@qq.com> Date: Mon, 12 Dec 2022 14:10:30 +0000 Subject: [PATCH 232/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 魏信煜 <247862652@qq.com> --- .../Login.java" | 46 ++++++++++++++ .../Register.java" | 61 +++++++++++++++++++ .../login.html" | 26 ++++++++ .../register.html" | 34 +++++++++++ 4 files changed, 167 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Login.java" new file mode 100644 index 0000000..b50557c --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Login.java" @@ -0,0 +1,46 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get。。。。。"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post。。。。"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Register.java" new file mode 100644 index 0000000..8be1732 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Register.java" @@ -0,0 +1,61 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; + + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("servlet.........get........."); + req.setCharacterEncoding("utf-8"); + String parameterString = req.getQueryString(); + System.out.println(parameterString); + String[] parametersArr = parameterString.split("&"); + String username = parametersArr[0].split("=")[1]; + String password = parametersArr[1].split("=")[1]; + String gander = parametersArr[2].split("=")[1]; + String[] hobbies = req.getParameterValues("hobby"); + + System.out.println(username); + System.out.println(password); + System.out.println(gander); + System.out.println(Arrays.toString(hobbies)); + + // for (int i = 0; i + + + + Title + + +

登录页面

+
+ + + + + + + + + + + + + +
用户名:
密码:
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/register.html" new file mode 100644 index 0000000..7ef38ab --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/register.html" @@ -0,0 +1,34 @@ + + + + + Title + + +

注册页面

+
+ + + + + + + + + + + + + + + + + + + + + +
用户名:
密码:
性别:
爱好:打游戏读书运动
+
+ + \ No newline at end of file -- Gitee From 918e98bff50e1bbad8ed5cd7589a641c3f53be22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E4=BF=A1=E7=85=9C?= <247862652@qq.com> Date: Mon, 12 Dec 2022 14:10:54 +0000 Subject: [PATCH 233/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=AD=8F=E4=BF=A1?= =?UTF-8?q?=E7=85=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\255\217\344\277\241\347\205\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 0f35748002493c698ce6cefaa4007b586c082831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E4=BF=A1=E7=85=9C?= <247862652@qq.com> Date: Mon, 12 Dec 2022 14:13:24 +0000 Subject: [PATCH 234/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 魏信煜 <247862652@qq.com> --- .../FailServlet.java" | 19 ++++++++++ .../Loginservlet.java" | 37 +++++++++++++++++++ .../SuccessServlet.java" | 19 ++++++++++ .../loginservlet.html" | 14 +++++++ 4 files changed, 89 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Loginservlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/loginservlet.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/FailServlet.java" new file mode 100644 index 0000000..37bda0c --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/FailServlet.java" @@ -0,0 +1,19 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登入失败!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Loginservlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Loginservlet.java" new file mode 100644 index 0000000..d2f6ee2 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Loginservlet.java" @@ -0,0 +1,37 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class Loginservlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while((line = reader.readLine()) != null){ + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if("admin".equals(username) && "admin".equals(password)){ + System.out.println("登入成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + }else { + System.out.println("登入失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req,resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/SuccessServlet.java" new file mode 100644 index 0000000..2946d36 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/SuccessServlet.java" @@ -0,0 +1,19 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登陆成功! admin欢迎您"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/loginservlet.html" new file mode 100644 index 0000000..0abd6dc --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file -- Gitee From 603da9a5e836ecdb778ff969fcd5299c5b715e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E4=BF=A1=E7=85=9C?= <247862652@qq.com> Date: Mon, 12 Dec 2022 14:15:02 +0000 Subject: [PATCH 235/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=AD=8F=E4=BF=A1?= =?UTF-8?q?=E7=85=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\255\217\344\277\241\347\205\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From e24af97a159128819c517dce284945878e74629a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E4=BF=A1=E7=85=9C?= <247862652@qq.com> Date: Mon, 12 Dec 2022 14:15:17 +0000 Subject: [PATCH 236/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 魏信煜 <247862652@qq.com> --- .../test.jsp" | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/test.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/test.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/test.jsp" new file mode 100644 index 0000000..d9811e9 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/test.jsp" @@ -0,0 +1,36 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %><%-- +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- +Created by IntelliJ IDEA. +User: WX1927910504 +Date: 2022/11/12 +Time: 21:27 +To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% +List user=new ArrayList(); +user.add("张三"); +user.add("李四"); +user.add("王五"); +request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From 308d855a3a7b20001b8a8503cc14fca26a85c5e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E4=BF=A1=E7=85=9C?= <247862652@qq.com> Date: Mon, 12 Dec 2022 14:15:45 +0000 Subject: [PATCH 237/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=AD=8F=E4=BF=A1?= =?UTF-8?q?=E7=85=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\255\217\344\277\241\347\205\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 79aeb55d3f533fbf9262ef3b00aa58acd9d8132d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E4=BF=A1=E7=85=9C?= <247862652@qq.com> Date: Mon, 12 Dec 2022 14:20:26 +0000 Subject: [PATCH 238/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 魏信煜 <247862652@qq.com> --- .../fdg.jsp" | 42 +++++++++++++++++++ .../user.java" | 42 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/fdg.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/user.java" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/fdg.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/fdg.jsp" new file mode 100644 index 0000000..92c6b21 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/fdg.jsp" @@ -0,0 +1,42 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="com.example.Homework7.user" %><%-- + Created by IntelliJ IDEA. + User: WHH + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + +Title + + +<% + List list = new ArrayList(); + list.add(new user("张三",22,"福建")); + list.add(new user("李四",23,"江西")); + list.add(new user("王五",25,"浙江")); + request.setAttribute("list",list); + %> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.ardress} + +
+ + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/user.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/user.java" new file mode 100644 index 0000000..b9408d9 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/user.java" @@ -0,0 +1,42 @@ +package com.example.Homework7; + +public class user { + private String name; + private int age; + private String address; + + public user(){ + + } + + public user(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getAddress() { + return address; + } + + public void setName(String name) { + this.name = name; + } + + public void setAge(int age) { + this.age = age; + } + + public void setAddress(String address) { + this.address = address; + } + +} -- Gitee From 6911c7118259da2975b1b1c845a1de3906b3048c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E4=BF=A1=E7=85=9C?= <247862652@qq.com> Date: Mon, 12 Dec 2022 14:26:08 +0000 Subject: [PATCH 239/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=AD=8F=E4=BF=A1?= =?UTF-8?q?=E7=85=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\255\217\344\277\241\347\205\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 1bbd4f9198ff8555c3e2838f8103cc4d146b5961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E4=BF=A1=E7=85=9C?= <247862652@qq.com> Date: Mon, 12 Dec 2022 14:26:33 +0000 Subject: [PATCH 240/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 魏信煜 <247862652@qq.com> --- .../Brand.java" | 101 ++++++++++++++++++ .../ServletDemo1.java" | 39 +++++++ .../ServletDemo2.java" | 37 +++++++ .../User.java" | 76 +++++++++++++ .../jstl-foreach.jsp" | 60 +++++++++++ .../jstl.jsp" | 67 ++++++++++++ .../test.jsp" | 44 ++++++++ 7 files changed, 424 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/ServletDemo1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/ServletDemo2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/jstl-foreach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Brand.java" new file mode 100644 index 0000000..6ae9f9e --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/Brand.java" @@ -0,0 +1,101 @@ +package com.ittest.pojo; + +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/ServletDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/ServletDemo1.java" new file mode 100644 index 0000000..379d06f --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/ServletDemo1.java" @@ -0,0 +1,39 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/ServletDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/ServletDemo2.java" new file mode 100644 index 0000000..0edc5d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/ServletDemo2.java" @@ -0,0 +1,37 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; +import com.ittest.pojo.User; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/User.java" new file mode 100644 index 0000000..8ea795d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/User.java" @@ -0,0 +1,76 @@ +package com.ittest.pojo; + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/jstl-foreach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/jstl-foreach.jsp" new file mode 100644 index 0000000..ee1c80b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/jstl-foreach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> + <%-- ${i}--%> + <%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/jstl.jsp" new file mode 100644 index 0000000..4db07ac --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/jstl.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/6 + Time: 20:20 + To change this template use File | Settings | File Templates. + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + +User + + +
+
+ + + + + + + + + + + + + + + +<%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/test.jsp" new file mode 100644 index 0000000..108fdaa --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\255\217\344\277\241\347\205\234/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; + %> + + + + +Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + +<% + for (int i = 0; i < array.length; i++) { + %> + +<% + for (int j = 0; j < array[i].length; j++) { + %> + +<% + } + %> + +<% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From 24ba0ab34f774af52c0905f06c6f42b11d1e9541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A9=E6=88=90?= <1911560341@qq.com> Date: Mon, 12 Dec 2022 14:34:06 +0000 Subject: [PATCH 241/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=A4=8F=E5=A4=A9?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\244\217\345\244\251\346\210\220/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 1b2e864b0c01814b11429eb8f8242b794724819a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A9=E6=88=90?= <1911560341@qq.com> Date: Mon, 12 Dec 2022 14:34:37 +0000 Subject: [PATCH 242/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 夏天成 <1911560341@qq.com> --- .../test.jsp" | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/test.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/test.jsp" new file mode 100644 index 0000000..b6e8170 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 夏天 + Date: 2022/12/12 + Time: 22:30 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From aecf9e1bd4f88aa5f8595ac82c34948ef2ab8b2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A9=E6=88=90?= <1911560341@qq.com> Date: Mon, 12 Dec 2022 14:34:55 +0000 Subject: [PATCH 243/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=A4=8F=E5=A4=A9?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\244\217\345\244\251\346\210\220/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From c9b5be35a5eccb2fc1a72a28033c89b665ad0892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A9=E6=88=90?= <1911560341@qq.com> Date: Mon, 12 Dec 2022 14:40:35 +0000 Subject: [PATCH 244/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 夏天成 <1911560341@qq.com> --- .../test.jsp" | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/test.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/test.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/test.jsp" new file mode 100644 index 0000000..44d2e8a --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/test.jsp" @@ -0,0 +1,36 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %><%-- +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: 夏天 + Date: 2022/12/12 + Time: 22:30 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("张三"); + user.add("李四"); + user.add("王五"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From 6d0fe023dfe134bd8317589d882acd8c6497c438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A9=E6=88=90?= <1911560341@qq.com> Date: Mon, 12 Dec 2022 14:47:33 +0000 Subject: [PATCH 245/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=A4=8F=E5=A4=A9?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\244\217\345\244\251\346\210\220/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 9395f33c0b9c81879b163f499781f024d2b797e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A9=E6=88=90?= <1911560341@qq.com> Date: Mon, 12 Dec 2022 14:48:04 +0000 Subject: [PATCH 246/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 夏天成 <1911560341@qq.com> --- .../User.java" | 40 ++++++++++++++++ .../test.jsp" | 47 +++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/User.java" new file mode 100644 index 0000000..9183d8b --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/User.java" @@ -0,0 +1,40 @@ +package com.company; + +public class User { + private String name; + private int age; + private String address; + + public User() { + } + + public User(String name, int age, String address) { + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/test.jsp" new file mode 100644 index 0000000..348d2ad --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/test.jsp" @@ -0,0 +1,47 @@ +<%@ page import="com.company.User" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %> +<%-- + Created by IntelliJ IDEA. + User: 夏天 + Date: 2022/12/12 + Time: 22:30 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new User("张三",22,"福建")); + list.add(new User("李四",23,"江西")); + list.add(new User("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.address} + +
+ + + \ No newline at end of file -- Gitee From ac1da0f658c7495eb39baaeda8019dc76161725a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A9=E6=88=90?= <1911560341@qq.com> Date: Mon, 12 Dec 2022 15:02:44 +0000 Subject: [PATCH 247/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=A4=8F=E5=A4=A9?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\244\217\345\244\251\346\210\220/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 8016f9bd82f42a436d6eb698682b3cdcb7ee8db7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A9=E6=88=90?= <1911560341@qq.com> Date: Mon, 12 Dec 2022 15:03:31 +0000 Subject: [PATCH 248/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 夏天成 <1911560341@qq.com> --- .../Brand.java" | 97 +++++++++++++++++++ .../ServletDemo1.java" | 38 ++++++++ .../ServletDemo2.java" | 37 +++++++ .../User.java" | 75 ++++++++++++++ .../jstl-foreach.jsp" | 67 +++++++++++++ .../jstl.jsp" | 67 +++++++++++++ .../test.jsp" | 44 +++++++++ 7 files changed, 425 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/ServletDemo1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/ServletDemo2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/jstl-foreach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/Brand.java" new file mode 100644 index 0000000..520edd6 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/Brand.java" @@ -0,0 +1,97 @@ +package com.company; + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/ServletDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/ServletDemo1.java" new file mode 100644 index 0000000..c7cd16d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/ServletDemo1.java" @@ -0,0 +1,38 @@ +package com.company; +import com.company.Brand; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/ServletDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/ServletDemo2.java" new file mode 100644 index 0000000..a3284cc --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/ServletDemo2.java" @@ -0,0 +1,37 @@ +package com.company; + +import com.company.Brand; +import com.company.User; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/User.java" new file mode 100644 index 0000000..98f396e --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/User.java" @@ -0,0 +1,75 @@ +package com.company; +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/jstl-foreach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/jstl-foreach.jsp" new file mode 100644 index 0000000..c526430 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/jstl-foreach.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 夏天 + Date: 2022/12/12 + Time: 22:58 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/jstl.jsp" new file mode 100644 index 0000000..2f09cf4 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/jstl.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 夏天 + Date: 2022/12/12 + Time: 23:00 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/test.jsp" new file mode 100644 index 0000000..5beffc1 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\244\217\345\244\251\346\210\220/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 夏天 + Date: 2022/12/12 + Time: 23:01 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From e7a68ae1c9589815fb556dda0ed49b67ff9992bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Tue, 13 Dec 2022 00:14:49 +0000 Subject: [PATCH 249/688] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李晓云 <2061522600@qq.com> --- .../CookieDemo1.java" | 25 +++++++ .../CookieDemo2.java" | 31 ++++++++ .../CookieTest.java" | 70 +++++++++++++++++++ 3 files changed, 126 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/CookieTest.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/CookieDemo1.java" new file mode 100644 index 0000000..cb304b2 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/CookieDemo1.java" @@ -0,0 +1,25 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/CookieDemo2.java" new file mode 100644 index 0000000..4c66dc4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/CookieDemo2.java" @@ -0,0 +1,31 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + @WebServlet("/CookieDemo2") + public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/CookieTest.java" new file mode 100644 index 0000000..18cbdf2 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/CookieTest.java" @@ -0,0 +1,70 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file -- Gitee From c866754ec47baa2685fd33c2b521de6097f68273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Tue, 13 Dec 2022 00:17:20 +0000 Subject: [PATCH 250/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=8E=E6=99=93?= =?UTF-8?q?=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\216\346\231\223\344\272\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 1cb740c92ab8a5f25df8327387bfe1d9e596bb97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Tue, 13 Dec 2022 00:20:29 +0000 Subject: [PATCH 251/688] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李晓云 <2061522600@qq.com> --- .../demo.html" | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/demo.html" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/demo.html" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/demo.html" new file mode 100644 index 0000000..0221fbc --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/demo.html" @@ -0,0 +1,35 @@ + +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- +Created by IntelliJ IDEA. +User: Administrator +Date: 2022/11/12 +Time: 21:27 +To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% +List user=new ArrayList(); +user.add("陈恒辉"); +user.add("邹晓民"); +user.add("细狗"); +request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From cf5a211f89309e36772319abf5c36a09d8e6373e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Tue, 13 Dec 2022 00:22:06 +0000 Subject: [PATCH 252/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=8E=E6=99=93?= =?UTF-8?q?=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\216\346\231\223\344\272\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From cc1b771890283b8d05762c9407d2b2296e5a8177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Tue, 13 Dec 2022 00:23:23 +0000 Subject: [PATCH 253/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=8E?= =?UTF-8?q?=E6=99=93=E4=BA=91/demo.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo.html" | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/demo.html" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/demo.html" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/demo.html" deleted file mode 100644 index 0221fbc..0000000 --- "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/demo.html" +++ /dev/null @@ -1,35 +0,0 @@ - -<%@ page import="java.util.List" %> -<%@ page import="java.util.ArrayList" %><%-- -Created by IntelliJ IDEA. -User: Administrator -Date: 2022/11/12 -Time: 21:27 -To change this template use File | Settings | File Templates. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - - - Title - -

用户表格

-<% -List user=new ArrayList(); -user.add("陈恒辉"); -user.add("邹晓民"); -user.add("细狗"); -request.setAttribute("user",user); -%> - - - - - - -
- ${str} -
- - - \ No newline at end of file -- Gitee From bc787c6c714b401ad4c42e60374d771b3cf3e6a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Tue, 13 Dec 2022 00:23:35 +0000 Subject: [PATCH 254/688] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李晓云 <2061522600@qq.com> --- .../demo.html" | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/demo.html" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/demo.html" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/demo.html" new file mode 100644 index 0000000..6ed25c7 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/demo.html" @@ -0,0 +1,35 @@ + +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- +Created by IntelliJ IDEA. +User: Administrator +Date: 2022/11/12 +Time: 21:27 +To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% +List user=new ArrayList(); +user.add("1"); +user.add("2"); +user.add("3"); +request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From efe3621e1239c72d4350ee956c667ebbc1bb010f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Tue, 13 Dec 2022 00:26:43 +0000 Subject: [PATCH 255/688] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李晓云 <2061522600@qq.com> --- .../user1.java" | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/user1.java" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/user1.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/user1.java" new file mode 100644 index 0000000..606ff39 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/user1.java" @@ -0,0 +1,42 @@ +package lxy; + +public class user1 {public class User { + private String name; + private int age; + private String address; + + public User() { + } + + public User(String name, int age, String address) { + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } +} + +} -- Gitee From 2636cbaf5dbe7e27844b0a385e71287ed7cc7732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E4=BA=91?= <2061522600@qq.com> Date: Tue, 13 Dec 2022 00:29:28 +0000 Subject: [PATCH 256/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=8E=E6=99=93?= =?UTF-8?q?=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\216\346\231\223\344\272\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\223\344\272\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 62ccd617f82c28a49a33788bf685b6ae1aaa3304 Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 00:50:50 +0000 Subject: [PATCH 257/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zald <10602807+zald@user.noreply.gitee.com> --- .../Servlet.java" | 57 +++++++++++++++++ .../Servlet02.java" | 63 +++++++++++++++++++ .../login.html" | 26 ++++++++ .../register.html" | 34 ++++++++++ 4 files changed, 180 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/Servlet.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/Servlet02.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/Servlet.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/Servlet.java" new file mode 100644 index 0000000..4bc2747 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/Servlet.java" @@ -0,0 +1,57 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + + +@WebServlet("/servlet") +public class Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("servlet.........get........."); + String parameterString = req.getQueryString(); + System.out.println(parameterString); + String[] parametersArr = parameterString.split("&"); + String username = parametersArr[0].split("=")[1]; + String password = parametersArr[1].split("=")[1]; + + System.out.println(username); + System.out.println(password); + + if ("admin".equals(username)&&"admin".equals(password)) { + System.out.println("登录成功!"); + }else{ + System.out.println("登录失败!"); + } + // for (int i = 0; i + + + + Title + + +

登录页面

+
+ + + + + + + + + + + + + +
用户名:
密码:
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/register.html" new file mode 100644 index 0000000..cfb3713 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/register.html" @@ -0,0 +1,34 @@ + + + + + Title + + +

注册页面

+
+ + + + + + + + + + + + + + + + + + + + + +
用户名:
密码:
性别:
爱好:打游戏读书运动
+
+ + \ No newline at end of file -- Gitee From 36683c56babf9a48179ed61847341037624cb94b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86?= <10602851+lin-rongbao@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 00:51:47 +0000 Subject: [PATCH 258/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E8=8D=A3?= =?UTF-8?q?=E8=91=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\350\215\243\350\221\206/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 24edfc9dee86dd8c92e007b03de39d03cd9cbb6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86?= <10602851+lin-rongbao@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 00:53:25 +0000 Subject: [PATCH 259/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林荣葆 <10602851+lin-rongbao@user.noreply.gitee.com> --- .../login.html" | 14 ++++++ .../login.java" | 44 +++++++++++++++++++ .../register.html" | 17 +++++++ .../register.java" | 37 ++++++++++++++++ 4 files changed, 112 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/register.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/register.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/login.html" new file mode 100644 index 0000000..238dc3d --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/login.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/login.java" new file mode 100644 index 0000000..0acf46c --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/login.java" @@ -0,0 +1,44 @@ +import javax.servlet.ServletException; + import javax.servlet.annotation.WebServlet; + import javax.servlet.http.HttpServlet; + import javax.servlet.http.HttpServletRequest; + import javax.servlet.http.HttpServletResponse; + import java.io.BufferedReader; + import java.io.IOException; + import java.util.Arrays; + import java.util.Map; + import java.util.Set; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("恭喜你,登录成功!"); + } else { + System.out.println("很抱歉,登录失败!"); + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + String line; + BufferedReader reader = req.getReader(); + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String password = paramsArr[1].split("=")[1]; + String username = paramsArr[0].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/register.html" new file mode 100644 index 0000000..da97f98 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

---注册界面---

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 兴趣爱好:   
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/register.java" new file mode 100644 index 0000000..d068397 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/register.java" @@ -0,0 +1,37 @@ +import javax.servlet.ServletException; + import javax.servlet.annotation.WebServlet; + import javax.servlet.http.HttpServlet; + import javax.servlet.http.HttpServletRequest; + import javax.servlet.http.HttpServletResponse; + import java.io.BufferedReader; + import java.io.IOException; + import java.util.Arrays; + import java.util.Enumeration; + import java.util.Map; + import java.util.Set; +@WebServlet("/register") +public class register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("兴趣爱好" + hobby); + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} \ No newline at end of file -- Gitee From dc35bbd66d650980c4715b2fc0f0b50cca65b8e6 Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:01:37 +0000 Subject: [PATCH 260/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zald <10602807+zald@user.noreply.gitee.com> --- .../FailServlet.java" | 21 +++++++++++++++ .../LoginServlet.java" | 27 +++++++++++++++++++ .../SuccessServlet.java" | 21 +++++++++++++++ .../loginservlet.html" | 14 ++++++++++ 4 files changed, 83 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/loginservlet.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" new file mode 100644 index 0000000..3014aad --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/FailServlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("fail...................."); + Object username = req.getAttribute("username"); + System.out.println("登录失败,"+username+"或密码错误!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" new file mode 100644 index 0000000..b6d304e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/LoginServlet.java" @@ -0,0 +1,27 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username = req.getParameter("username"); + String password = req.getParameter("password"); + req.setAttribute("username",username); + if("admin".equals(username)&&"admin".equals(password)){ + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + }else { + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" new file mode 100644 index 0000000..be26602 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/SuccessServlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("success...................."); + Object username = req.getAttribute("username"); + System.out.println("登录成功,"+username+"欢迎您!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/loginservlet.html" new file mode 100644 index 0000000..4a93bd7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file -- Gitee From 020ee01c447933269108523eec121cf2aca6bfca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E8=91=89?= <2249398422@qq.com> Date: Tue, 13 Dec 2022 01:04:45 +0000 Subject: [PATCH 261/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 三葉 <2249398422@qq.com> --- .../DownloadServlet.java" | 45 +++++++++++++ .../LoginCheckServlet.java" | 44 ++++++++++++ .../ValidateCodeServlet.java" | 67 +++++++++++++++++++ .../download.html" | 11 +++ .../login.html" | 21 ++++++ .../Fail.java" | 22 ++++++ .../Fail02.java" | 22 ++++++ .../Servlet.java" | 25 +++++++ .../Servlet02.java" | 26 +++++++ .../Success.java" | 21 ++++++ .../Success02.java" | 22 ++++++ .../index.jsp" | 9 +++ .../login.html" | 14 ++++ .../login2.html" | 14 ++++ 14 files changed, 363 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/download.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" new file mode 100644 index 0000000..c4bdcef --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" @@ -0,0 +1,45 @@ +import javax.activation.MimeType; +import javax.servlet.ServletContext; +import javax.servlet.ServletException; +import javax.servlet.ServletInputStream; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/DownloadServlet1") +public class DownloadServlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取请求参数,文件名 + String filename=req.getParameter("filename"); + //1.使用字节流加载文件进内存 + //1.1找到服务器路径 + ServletContext servletContext=this.getServletContext(); + String realPath = servletContext.getRealPath("/img/"+filename); + //1.2用字节流关联 + ServletInputStream fis=req.getInputStream(); + + //2.设置response响应头 + //2.1设置响应头:content-type= ; + String mimeType = servletContext.getMimeType(filename); + resp.setHeader("content-type",mimeType); + //2.2设置响应头打开方式:content-disposition + resp.setHeader("content-disposition","attachment;filename="+filename); + //将输入流的数据写到输出流 + ServletOutputStream sos=resp.getOutputStream(); + byte [] buff=new byte[1024*8]; + int len=0; + while ((len=fis.read(buff))!=-1){ + sos.write(buff,0,len); + } + fis.close(); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" new file mode 100644 index 0000000..7f16049 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" @@ -0,0 +1,44 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.nio.charset.StandardCharsets; + +@WebServlet("/LoginCheckServlet") +public class LoginCheckServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //接收账号,密码,验证码 + String username=req.getParameter("username"); + String password=req.getParameter("password"); + String userCode=req.getParameter("userCode"); + //从session中取出正确验证码 + HttpSession session=req.getSession(); + String vCode= (String) session.getAttribute("vCode"); + //将用户输入的验证码和从session中的正确验证码进行对比 + resp.setContentType("text/html;charset=UTF-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + if (userCode.equals(vCode)) { + if ("admin".equals(username)&&"admin".equals(password)){ + + outputStream.write("登陆成功".getBytes("UTF-8")); + }else { + + outputStream.write("登陆失败,密码错误".getBytes("UTF-8")); + } + }else { + + outputStream.write("登陆失败,验证码错误".getBytes("UTF-8")); + } + + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" new file mode 100644 index 0000000..076a597 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" @@ -0,0 +1,67 @@ +import javax.imageio.ImageIO; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import javax.xml.ws.spi.http.HttpContext; +import java.awt.*; +import java.awt.image.BufferedImage; +import java.io.IOException; +import java.util.Random; +@WebServlet("/ValidateCodeServlet") +public class ValidateCodeServlet extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建一张图片 + int width=300;//验证码宽度 + int height=90;//验证码高度 + BufferedImage image=new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); + //绘制图片 + //从图片对象中获取绘制图片的“笔” + Graphics pen=image.createGraphics(); + //绘制背景 + pen.setColor(getRandomColor()); + //fillRect:绘制实心矩形 + pen.fillRect(0,0,width,height); + //绘制验证码字符串 + int letterNum=4;//验证码图片上的字符的个数 + int space=20;//验证码图片上两个字母之间的空隙 + int letterWidth=(width-(letterNum+1)*space)/letterNum;//计算每个字母占据的宽度 + //for循环每循环一次,绘制一个字母(小写字母的ASCII码97-122) + String vCode=""; + Random random=new Random(); + for(int i=0;i + + + + Title + +图片
+视频 + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" new file mode 100644 index 0000000..fbc1dea --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" @@ -0,0 +1,21 @@ + + + + + 用户登录 + +
+ 账号:
+ 密码:
+ 验证码: +
+
+
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" new file mode 100644 index 0000000..adde74d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail01") +public class Fail01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" new file mode 100644 index 0000000..1df63b6 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail02") +public class Fail02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" new file mode 100644 index 0000000..cedac50 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/s1") +public class Servlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username=req.getParameter("username"); + String password=req.getParameter("password"); + if ("admin".equals(username)&&"admin".equals(password)) { + req.getRequestDispatcher("/Success01").forward(req,resp); + } + else { + req.getRequestDispatcher("/Fail01").forward(req,resp); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" new file mode 100644 index 0000000..9ac18b8 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/s2") +public class Servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String uname=req.getParameter("uname"); + String password=req.getParameter("password"); + if ("admin".equals(uname)&&"admin".equals(password)) { + resp.sendRedirect("Success02"); + } + else { + resp.sendRedirect("Fail02"); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" new file mode 100644 index 0000000..8a851be --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Success01") +public class Success01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" new file mode 100644 index 0000000..605e6ba --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Success02") +public class Success02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" new file mode 100644 index 0000000..0c2c42d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" @@ -0,0 +1,9 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + $END$ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" new file mode 100644 index 0000000..c19aa58 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" new file mode 100644 index 0000000..3a32640 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file -- Gitee From 72628a5761897aff0d508055ad9a3ab0d28d0b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E8=91=89?= <2249398422@qq.com> Date: Tue, 13 Dec 2022 01:05:40 +0000 Subject: [PATCH 262/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 三葉 <2249398422@qq.com> --- .../CookieDemo1.java" | 24 +++++++ .../CookieDemo2.java" | 28 ++++++++ .../CookieTest.java" | 68 +++++++++++++++++++ .../Numbers.jsp" | 56 +++++++++++++++ .../Step01.java" | 25 +++++++ .../Step02.java" | 33 +++++++++ .../address.html" | 48 +++++++++++++ .../books.html" | 40 +++++++++++ .../confirm.html" | 42 ++++++++++++ 9 files changed, 364 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step01.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step02.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" new file mode 100644 index 0000000..ccdf93a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" @@ -0,0 +1,24 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" new file mode 100644 index 0000000..649287f --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" @@ -0,0 +1,28 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo2") +public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" new file mode 100644 index 0000000..55242e4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" @@ -0,0 +1,68 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" new file mode 100644 index 0000000..2895bc8 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" @@ -0,0 +1,56 @@ +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/5 + Time: 16:54 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +<% + String [][]a={{"一"},{"二"},{"三"}}; + String [][]b={{"四"},{"五"},{"六"}}; + String [][]c={{"七"},{"八"},{"九"}}; +// String a="一"; +// String b="二"; +// String c="三"; +// String d="四"; +// String e="五"; +// String f="六"; +// String g="七"; +// String h="八"; +// String i="九"; +%> +

JSP数组内容

+ + + + + + + + + + + + + + + + + +
<%out.print(Arrays.toString(a[0]));%><%out.print(Arrays.toString(a[1]));%><%out.print(Arrays.toString(a[2]));%>
<%out.print(Arrays.toString(b[0]));%><%out.print(Arrays.toString(b[1]));%><%out.print(Arrays.toString(b[2]));%>
<%out.print(Arrays.toString(c[0]));%><%out.print(Arrays.toString(c[1]));%><%out.print(Arrays.toString(c[2]));%>
+ + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step01.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step01.java" new file mode 100644 index 0000000..ce548ff --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step01.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step02.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step02.java" new file mode 100644 index 0000000..56af95b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step02.java" @@ -0,0 +1,33 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" new file mode 100644 index 0000000..5a876d9 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" @@ -0,0 +1,48 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" new file mode 100644 index 0000000..ff727fa --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" @@ -0,0 +1,40 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + +

Step1选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" new file mode 100644 index 0000000..ed834df --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" @@ -0,0 +1,42 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print(session.getAttribute("name"));%>
地址:<%out.print(session.getAttribute("address"));%>
付款信息
信用卡类型<%out.print(Arrays.toString((Object[]) session.getAttribute("types")));%>
卡号:<%out.print(session.getAttribute("username"));%>
订货项目<% out.print(Arrays.toString((Object[]) session.getAttribute("books")));%>
+ + + \ No newline at end of file -- Gitee From 190497d606a2209d54260c3b9b290538fab88799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E8=91=89?= <2249398422@qq.com> Date: Tue, 13 Dec 2022 01:06:30 +0000 Subject: [PATCH 263/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 三葉 <2249398422@qq.com> --- .../TwoDoimensional.java" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/TwoDoimensional.java" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/TwoDoimensional.java" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/TwoDoimensional.java" new file mode 100644 index 0000000..bb41efd --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/TwoDoimensional.java" @@ -0,0 +1,34 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][]array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + Title + + +

二维数组

+ + + + + + + <% + for (int i = 0; i + + <% + for (int j = 0; j + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%=array[i][j]%>
+ + \ No newline at end of file -- Gitee From 5bdfa783a0449b97cdc6ae7f6cd1cebd6db0e540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E8=91=89?= <2249398422@qq.com> Date: Tue, 13 Dec 2022 01:07:04 +0000 Subject: [PATCH 264/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 三葉 <2249398422@qq.com> --- .../ShowTable.java" | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/ShowTable.java" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/ShowTable.java" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/ShowTable.java" new file mode 100644 index 0000000..63362ba --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/ShowTable.java" @@ -0,0 +1,28 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("张三"); + user.add("李四"); + user.add("老六"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From ab365711f0640e81b5bab0355ebd06518b04f36a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E8=91=89?= <2249398422@qq.com> Date: Tue, 13 Dec 2022 01:07:37 +0000 Subject: [PATCH 265/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 三葉 <2249398422@qq.com> --- .../User.java" | 40 +++++++++++++++++++ .../test.jsp" | 39 ++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/User.java" new file mode 100644 index 0000000..b3e6146 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/User.java" @@ -0,0 +1,40 @@ +public class user { + private String name; + private int age; + private String address; + + public user(){ + + } + + public user(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getAddress() { + return address; + } + + public void setName(String name) { + this.name = name; + } + + public void setAge(int age) { + this.age = age; + } + + public void setAddress(String address) { + this.address = address; + } + +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/test.jsp" new file mode 100644 index 0000000..3998e4a --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/test.jsp" @@ -0,0 +1,39 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="com.example.Homework7.user" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new user("张三",22,"福建")); + list.add(new user("李四",23,"江西")); + list.add(new user("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.ardress} + +
+ + \ No newline at end of file -- Gitee From a56ca81e3e5609643d3b19efc158c89eac5b96cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E8=91=89?= <2249398422@qq.com> Date: Tue, 13 Dec 2022 01:08:05 +0000 Subject: [PATCH 266/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 三葉 <2249398422@qq.com> --- .../Brand.java" | 99 +++++++++++++++++++ .../ServletDemo01.java" | 35 +++++++ .../ServletDemo02.java" | 32 ++++++ .../User.java" | 74 ++++++++++++++ .../jstl.jsp" | 60 +++++++++++ .../jstlforeach.jsp" | 60 +++++++++++ .../test.jsp" | 37 +++++++ 7 files changed, 397 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/ServletDemo01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/ServletDemo02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Brand.java" new file mode 100644 index 0000000..c4f28f0 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/Brand.java" @@ -0,0 +1,99 @@ +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/ServletDemo01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/ServletDemo01.java" new file mode 100644 index 0000000..883981b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/ServletDemo01.java" @@ -0,0 +1,35 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/ServletDemo02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/ServletDemo02.java" new file mode 100644 index 0000000..4eb0408 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/ServletDemo02.java" @@ -0,0 +1,32 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/User.java" new file mode 100644 index 0000000..e3c34d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/User.java" @@ -0,0 +1,74 @@ +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/jstl.jsp" new file mode 100644 index 0000000..1eb2079 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/jstl.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/jstlforeach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/jstlforeach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/test.jsp" new file mode 100644 index 0000000..8977c06 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\265\267\346\235\203/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 308d40f115ebbe95f972e354004f4f12e0c8dd1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 13 Dec 2022 01:08:13 +0000 Subject: [PATCH 267/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E7=A7=8B?= =?UTF-8?q?=E5=8D=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\347\247\213\345\215\216/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 31320580dde551cfc4f17fb9f751114edde07821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 13 Dec 2022 01:09:43 +0000 Subject: [PATCH 268/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林秋华 <1241881982@qq.com> --- .../sdf.jsp" | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/sdf.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/sdf.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/sdf.jsp" new file mode 100644 index 0000000..f07a7d8 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/sdf.jsp" @@ -0,0 +1,30 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + +

用户表格

+ +<% + List user = new ArrayList(); + user.add("田子夜"); + user.add("孙潇涵"); + user.add("王辉煌"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + -- Gitee From 7072f84af648e02db88734d731cd3a82cec97681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 13 Dec 2022 01:12:04 +0000 Subject: [PATCH 269/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E7=A7=8B?= =?UTF-8?q?=E5=8D=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\347\247\213\345\215\216/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 9ab49b6eb829754282bcf7506bb3168ecf387912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 13 Dec 2022 01:13:52 +0000 Subject: [PATCH 270/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林秋华 <1241881982@qq.com> --- .../Step1Servlet.java" | 21 +++++++++ .../Step2Servlet.java" | 25 ++++++++++ .../address.html" | 36 ++++++++++++++ .../books.html" | 41 ++++++++++++++++ .../confirm.jsp" | 47 +++++++++++++++++++ 5 files changed, 170 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Step1Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Step2Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/confirm.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Step1Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Step1Servlet.java" new file mode 100644 index 0000000..55cc198 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Step1Servlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/step1") +public class Step1Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[]books = req.getParameterValues("books"); + req.getSession().setAttribute("books",books); + resp.sendRedirect("/c4/address.html"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Step2Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Step2Servlet.java" new file mode 100644 index 0000000..6ce9f6d --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Step2Servlet.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/step2") +public class Step2Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String name = req.getParameter("name"); + String address = req.getParameter("address"); + HttpSession session = req.getSession(); + session.setAttribute("name",name); + session.setAttribute("address",address); + resp.sendRedirect("/c4/confirm.jsp"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/address.html" new file mode 100644 index 0000000..3725556 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/address.html" @@ -0,0 +1,36 @@ + + + + + Title + + + +

Step2:请输入寄送地址与信用卡信息

+
+ + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/books.html" new file mode 100644 index 0000000..b23035a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/books.html" @@ -0,0 +1,41 @@ + + + + + Title + + + +

Step1:选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/confirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/confirm.jsp" new file mode 100644 index 0000000..dac52fe --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/confirm.jsp" @@ -0,0 +1,47 @@ +<%@ page import="java.io.PrintWriter" %> +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/10/31 + Time: 20:42 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + HttpSession session1 = request.getSession(); + String[] books = (String[])session1.getAttribute("books"); + String name = (String)session1.getAttribute("name"); + String address = (String)session1.getAttribute("address"); + PrintWriter printWriter = response.getWriter(); +%> + + + Title + + + +
+ <%printWriter.print("

Step3:订单确认

");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("
顾客姓名"+name+"
地址"+address+"
订货项目"+ Arrays.toString(books) +"");%> + <%printWriter.print("
");%> + + + -- Gitee From 17514fd0a347903490eae02ea9625192bf7f0896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 13 Dec 2022 01:14:51 +0000 Subject: [PATCH 271/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E7=A7=8B?= =?UTF-8?q?=E5=8D=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\347\247\213\345\215\216/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From a262faa230b74dfbd944d1d5cec0d29ca258862b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 13 Dec 2022 01:15:49 +0000 Subject: [PATCH 272/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林秋华 <1241881982@qq.com> --- .../test.jsp" | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/test.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/test.jsp" new file mode 100644 index 0000000..a88107d --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/test.jsp" @@ -0,0 +1,42 @@ +<%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/12/12 + Time: 21:01 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][] array = {{"一","二","三"},{"四","五","六"},{"七","八","九"}}; +%> + + + + Title + + +

Java二维数组实例

+
+ + + + + + <% + for(int i = 0;i < array.length;i++){ + %> + + <% + for(int j = 0;j < array[i].length;j++){ + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From 48bb013c9bb5dff5479d940b7755dbeb71562e71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 13 Dec 2022 01:16:15 +0000 Subject: [PATCH 273/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E7=A7=8B?= =?UTF-8?q?=E5=8D=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\347\247\213\345\215\216/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 0ea95db805cc40fd972a9f540b3c117b455c1acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 13 Dec 2022 01:17:12 +0000 Subject: [PATCH 274/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林秋华 <1241881982@qq.com> --- .../fdg.jsp" | 42 +++++++++++++++++++ .../user.java" | 42 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/fdg.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/user.java" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/fdg.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/fdg.jsp" new file mode 100644 index 0000000..27e2c68 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/fdg.jsp" @@ -0,0 +1,42 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="com.example.Homework7.user" %><%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new user("张三",22,"福建")); + list.add(new user("李四",23,"江西")); + list.add(new user("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.ardress} + +
+ + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/user.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/user.java" new file mode 100644 index 0000000..dd3c673 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/user.java" @@ -0,0 +1,42 @@ +package com.example.Homework7; + +public class user { + private String name; + private int age; + private String address; + + public user(){ + + } + + public user(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getAddress() { + return address; + } + + public void setName(String name) { + this.name = name; + } + + public void setAge(int age) { + this.age = age; + } + + public void setAddress(String address) { + this.address = address; + } + +} -- Gitee From 5ebe7caf5e4d19a1c216e25ee8688af652bcee42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 13 Dec 2022 01:18:11 +0000 Subject: [PATCH 275/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E7=A7=8B?= =?UTF-8?q?=E5=8D=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\347\247\213\345\215\216/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 950481c60a43cd2d86de3634b37dbe4cfef5b041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 13 Dec 2022 01:18:46 +0000 Subject: [PATCH 276/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林秋华 <1241881982@qq.com> --- .../Brand.java" | 101 ++++++++++++++++++ .../ServletDemo1.java" | 39 +++++++ .../ServletDemo2.java" | 37 +++++++ .../User.java" | 76 +++++++++++++ .../jstl-foreach.jsp" | 60 +++++++++++ .../jstl.jsp" | 67 ++++++++++++ .../test.jsp" | 44 ++++++++ 7 files changed, 424 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/ServletDemo1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/ServletDemo2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/jstl-foreach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Brand.java" new file mode 100644 index 0000000..6ae9f9e --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Brand.java" @@ -0,0 +1,101 @@ +package com.ittest.pojo; + +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/ServletDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/ServletDemo1.java" new file mode 100644 index 0000000..379d06f --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/ServletDemo1.java" @@ -0,0 +1,39 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/ServletDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/ServletDemo2.java" new file mode 100644 index 0000000..0edc5d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/ServletDemo2.java" @@ -0,0 +1,37 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; +import com.ittest.pojo.User; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/User.java" new file mode 100644 index 0000000..8ea795d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/User.java" @@ -0,0 +1,76 @@ +package com.ittest.pojo; + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/jstl-foreach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/jstl-foreach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/jstl-foreach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/jstl.jsp" new file mode 100644 index 0000000..9e324af --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/jstl.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/6 + Time: 20:20 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/test.jsp" new file mode 100644 index 0000000..7795ee3 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From bc80ea1b4e005f95b6bd466f90f5d92e9779f003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Tue, 13 Dec 2022 01:21:02 +0000 Subject: [PATCH 277/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 008c79a34189d3148a655c542577eacafd053dd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Tue, 13 Dec 2022 01:21:39 +0000 Subject: [PATCH 278/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E5=9B=9B?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From c95480a38647c35f90a4af9847d2bb7b197347ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Tue, 13 Dec 2022 01:22:21 +0000 Subject: [PATCH 279/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A1=20?= =?UTF-8?q?=E4=B8=BA=20=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/?= =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3/=E7=AC=AC=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/.keep" => "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/.keep" (100%) diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/.keep" similarity index 100% rename from "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/.keep" rename to "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/.keep" -- Gitee From 482fe6ba505c7e3a03958f62a7a572c6263be1a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Tue, 13 Dec 2022 01:23:22 +0000 Subject: [PATCH 280/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨佳佳 <3600378145@qq.com> --- .../CookieDemo1.java" | 22 ++++++++ .../CookieDemo2.java" | 28 ++++++++++ .../CookieTest.java" | 54 +++++++++++++++++++ 3 files changed, 104 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" new file mode 100644 index 0000000..93b0653 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" @@ -0,0 +1,22 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + Cookie c1=new Cookie("msg","你好"); + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" new file mode 100644 index 0000000..909007f --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" @@ -0,0 +1,28 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo2") +public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + Cookie[] cs=req.getCookies(); + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" new file mode 100644 index 0000000..01d7539 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" @@ -0,0 +1,54 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + + Cookie[] cookies = req.getCookies(); + boolean flag=false; + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + String name = cookie.getName(); + if ("lastTime".equals(name)) { + flag=true; + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file -- Gitee From 2dc44872fb32f41e3b9ea81cccb47095c1a24382 Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:27:31 +0000 Subject: [PATCH 281/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=8E=E7=A6=B9?= =?UTF-8?q?=E7=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\216\347\246\271\347\206\231/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 29ba3e550c16f9b520994c1b19b8957ec59c3540 Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:28:30 +0000 Subject: [PATCH 282/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zald <10602807+zald@user.noreply.gitee.com> --- .../Step1Servlet.java" | 21 +++++++++ .../Step2Servlet.java" | 25 ++++++++++ .../address.html" | 36 ++++++++++++++ .../books.html" | 41 ++++++++++++++++ .../confirm.jsp" | 47 +++++++++++++++++++ 5 files changed, 170 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/Step1Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/Step2Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/confirm.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/Step1Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/Step1Servlet.java" new file mode 100644 index 0000000..f1bfbac --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/Step1Servlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/step1") +public class Step1Servlet extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[]books = req.getParameterValues("books"); + req.getSession().setAttribute("books",books); + resp.sendRedirect("/c1/address.html"); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/Step2Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/Step2Servlet.java" new file mode 100644 index 0000000..fc9b427 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/Step2Servlet.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/step2") +public class Step2Servlet extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String name = req.getParameter("name"); + String address = req.getParameter("address"); + HttpSession session = req.getSession(); + session.setAttribute("name",name); + session.setAttribute("address",address); + resp.sendRedirect("/c1/confirm.jsp"); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/address.html" new file mode 100644 index 0000000..6f7a147 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/address.html" @@ -0,0 +1,36 @@ + + + + + Title + + + +

Step2:请输入寄送地址与信用卡信息

+
+ + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/books.html" new file mode 100644 index 0000000..ba769e6 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/books.html" @@ -0,0 +1,41 @@ + + + + + Title + + + +

Step1:选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/confirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/confirm.jsp" new file mode 100644 index 0000000..2ca7761 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/confirm.jsp" @@ -0,0 +1,47 @@ +<%@ page import="java.io.PrintWriter" %> +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + week12.User: WX1927910504 + Date: 2022/11/1 + Time: 19:53 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + HttpSession session1 = request.getSession(); + String[] books = (String[])session1.getAttribute("books"); + String name = (String)session1.getAttribute("name"); + String address = (String)session1.getAttribute("address"); + PrintWriter printWriter = response.getWriter(); +%> + + + Title + + + +
+ <%printWriter.print("

Step3:订单确认

");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("
顾客姓名"+name+"
地址"+address+"
订货项目"+Arrays.toString(books) +"");%> + <%printWriter.print("
");%> + + + -- Gitee From 0e7dc36ea7da5232b0f396f47efabb365b6aacd2 Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:29:38 +0000 Subject: [PATCH 283/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=8E=E7=A6=B9?= =?UTF-8?q?=E7=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\216\347\246\271\347\206\231/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From e491e3c248ad1a3ab225d4984cca33ecd87e5bfb Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:30:04 +0000 Subject: [PATCH 284/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zald <10602807+zald@user.noreply.gitee.com> --- .../erwei.jsp" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/erwei.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/erwei.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/erwei.jsp" new file mode 100644 index 0000000..f11a7be --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/erwei.jsp" @@ -0,0 +1,34 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][]array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + Title + + +

二维数组

+
+ + + + + + <% + for (int i = 0; i + + <% + for (int j = 0; j + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%=array[i][j]%>
+ + -- Gitee From e0a4fa9fe9c69614a0d2f67a27f71711a3b56695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86?= <10602851+lin-rongbao@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:33:42 +0000 Subject: [PATCH 285/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E8=8D=A3?= =?UTF-8?q?=E8=91=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\350\215\243\350\221\206/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From c91501f45ce409c14e78d1653b2b8dc6c7c32b2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=B9=99=E9=93=AD?= <935044545@qq.com> Date: Tue, 13 Dec 2022 01:33:45 +0000 Subject: [PATCH 286/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈乙铭 <935044545@qq.com> --- .../Login.java" | 51 +++++++++++ .../Register.java" | 87 +++++++++++++++++++ .../login.html" | 14 +++ .../register.html" | 17 ++++ 4 files changed, 169 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/Login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/Login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/Register.java" new file mode 100644 index 0000000..8b8b781 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/login.html" new file mode 100644 index 0000000..afd4139 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/login.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/register.html" new file mode 100644 index 0000000..f5eeff4 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file -- Gitee From 5c22fb7ae50d1f89df6a2185cc7c77f38bec485b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=B9=99=E9=93=AD?= <935044545@qq.com> Date: Tue, 13 Dec 2022 01:34:05 +0000 Subject: [PATCH 287/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈乙铭 <935044545@qq.com> --- .../FailServlet.java" | 21 ++++++ .../LoginServlet.java" | 40 +++++++++++ .../SuccessServlet.java" | 21 ++++++ .../loginservlet.html" | 14 ++++ .../DownloadServlet.java" | 45 +++++++++++++ .../LoginCheckServlet.java" | 44 ++++++++++++ .../ValidateCodeServlet.java" | 67 +++++++++++++++++++ .../download.html" | 11 +++ .../login.html" | 21 ++++++ .../Fail.java" | 22 ++++++ .../Fail02.java" | 22 ++++++ .../Servlet.java" | 25 +++++++ .../Servlet02.java" | 26 +++++++ .../Success.java" | 21 ++++++ .../Success02.java" | 22 ++++++ .../index.jsp" | 9 +++ .../login.html" | 14 ++++ .../login2.html" | 14 ++++ 18 files changed, 459 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/loginservlet.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/download.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/FailServlet.java" new file mode 100644 index 0000000..4b76b8e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/FailServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/LoginServlet.java" new file mode 100644 index 0000000..74f00ac --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/LoginServlet.java" @@ -0,0 +1,40 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/SuccessServlet.java" new file mode 100644 index 0000000..cfaf017 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/SuccessServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/loginservlet.html" new file mode 100644 index 0000000..d4da7fc --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" new file mode 100644 index 0000000..c4bdcef --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" @@ -0,0 +1,45 @@ +import javax.activation.MimeType; +import javax.servlet.ServletContext; +import javax.servlet.ServletException; +import javax.servlet.ServletInputStream; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/DownloadServlet1") +public class DownloadServlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取请求参数,文件名 + String filename=req.getParameter("filename"); + //1.使用字节流加载文件进内存 + //1.1找到服务器路径 + ServletContext servletContext=this.getServletContext(); + String realPath = servletContext.getRealPath("/img/"+filename); + //1.2用字节流关联 + ServletInputStream fis=req.getInputStream(); + + //2.设置response响应头 + //2.1设置响应头:content-type= ; + String mimeType = servletContext.getMimeType(filename); + resp.setHeader("content-type",mimeType); + //2.2设置响应头打开方式:content-disposition + resp.setHeader("content-disposition","attachment;filename="+filename); + //将输入流的数据写到输出流 + ServletOutputStream sos=resp.getOutputStream(); + byte [] buff=new byte[1024*8]; + int len=0; + while ((len=fis.read(buff))!=-1){ + sos.write(buff,0,len); + } + fis.close(); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" new file mode 100644 index 0000000..7f16049 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" @@ -0,0 +1,44 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.nio.charset.StandardCharsets; + +@WebServlet("/LoginCheckServlet") +public class LoginCheckServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //接收账号,密码,验证码 + String username=req.getParameter("username"); + String password=req.getParameter("password"); + String userCode=req.getParameter("userCode"); + //从session中取出正确验证码 + HttpSession session=req.getSession(); + String vCode= (String) session.getAttribute("vCode"); + //将用户输入的验证码和从session中的正确验证码进行对比 + resp.setContentType("text/html;charset=UTF-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + if (userCode.equals(vCode)) { + if ("admin".equals(username)&&"admin".equals(password)){ + + outputStream.write("登陆成功".getBytes("UTF-8")); + }else { + + outputStream.write("登陆失败,密码错误".getBytes("UTF-8")); + } + }else { + + outputStream.write("登陆失败,验证码错误".getBytes("UTF-8")); + } + + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" new file mode 100644 index 0000000..076a597 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" @@ -0,0 +1,67 @@ +import javax.imageio.ImageIO; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import javax.xml.ws.spi.http.HttpContext; +import java.awt.*; +import java.awt.image.BufferedImage; +import java.io.IOException; +import java.util.Random; +@WebServlet("/ValidateCodeServlet") +public class ValidateCodeServlet extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建一张图片 + int width=300;//验证码宽度 + int height=90;//验证码高度 + BufferedImage image=new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); + //绘制图片 + //从图片对象中获取绘制图片的“笔” + Graphics pen=image.createGraphics(); + //绘制背景 + pen.setColor(getRandomColor()); + //fillRect:绘制实心矩形 + pen.fillRect(0,0,width,height); + //绘制验证码字符串 + int letterNum=4;//验证码图片上的字符的个数 + int space=20;//验证码图片上两个字母之间的空隙 + int letterWidth=(width-(letterNum+1)*space)/letterNum;//计算每个字母占据的宽度 + //for循环每循环一次,绘制一个字母(小写字母的ASCII码97-122) + String vCode=""; + Random random=new Random(); + for(int i=0;i + + + + Title + +图片
+视频 + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" new file mode 100644 index 0000000..fbc1dea --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" @@ -0,0 +1,21 @@ + + + + + 用户登录 + +
+ 账号:
+ 密码:
+ 验证码: +
+
+
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" new file mode 100644 index 0000000..adde74d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail01") +public class Fail01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" new file mode 100644 index 0000000..1df63b6 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail02") +public class Fail02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" new file mode 100644 index 0000000..cedac50 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/s1") +public class Servlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username=req.getParameter("username"); + String password=req.getParameter("password"); + if ("admin".equals(username)&&"admin".equals(password)) { + req.getRequestDispatcher("/Success01").forward(req,resp); + } + else { + req.getRequestDispatcher("/Fail01").forward(req,resp); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" new file mode 100644 index 0000000..9ac18b8 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/s2") +public class Servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String uname=req.getParameter("uname"); + String password=req.getParameter("password"); + if ("admin".equals(uname)&&"admin".equals(password)) { + resp.sendRedirect("Success02"); + } + else { + resp.sendRedirect("Fail02"); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" new file mode 100644 index 0000000..8a851be --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Success01") +public class Success01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" new file mode 100644 index 0000000..605e6ba --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Success02") +public class Success02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" new file mode 100644 index 0000000..0c2c42d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" @@ -0,0 +1,9 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + $END$ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" new file mode 100644 index 0000000..c19aa58 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" new file mode 100644 index 0000000..3a32640 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file -- Gitee From 2b3878d1f4e49de0a0f198c8689e1c023b5abf0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86?= <10602851+lin-rongbao@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:34:46 +0000 Subject: [PATCH 288/688] =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86/=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林荣葆 <10602851+lin-rongbao@user.noreply.gitee.com> --- .../failservlet.java" | 18 ++++++++++ .../loginservlet.html" | 14 ++++++++ .../loginservlet.java" | 34 +++++++++++++++++++ .../success.java" | 18 ++++++++++ 4 files changed, 84 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/failservlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/loginservlet.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/loginservlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/success.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/failservlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/failservlet.java" new file mode 100644 index 0000000..ba97d34 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/failservlet.java" @@ -0,0 +1,18 @@ +package 第三章作业; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/failservlet") +public class failservlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("账号登录失败,用户名或密码输入错误!"); + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/loginservlet.html" new file mode 100644 index 0000000..6a758ad --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/loginservlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/loginservlet.java" new file mode 100644 index 0000000..3cc80ec --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/loginservlet.java" @@ -0,0 +1,34 @@ +package 第三章作业; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("恭喜你,登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/success.java" new file mode 100644 index 0000000..a8f720a --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/success.java" @@ -0,0 +1,18 @@ +package 第三章作业; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/SuccessServlet") +public class success extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功!欢迎使用!"); + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file -- Gitee From 4ffd3c1bc4fc8011aa5dc48bfab553bb6bc5be26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=B9=99=E9=93=AD?= <935044545@qq.com> Date: Tue, 13 Dec 2022 01:34:51 +0000 Subject: [PATCH 289/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈乙铭 <935044545@qq.com> --- .../CookieDemo1.java" | 24 +++++++ .../CookieDemo2.java" | 28 ++++++++ .../CookieTest.java" | 68 +++++++++++++++++++ .../Numbers.jsp" | 56 +++++++++++++++ .../Step01.java" | 25 +++++++ .../Step02.java" | 33 +++++++++ .../address.html" | 48 +++++++++++++ .../books.html" | 40 +++++++++++ .../confirm.html" | 42 ++++++++++++ 9 files changed, 364 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step01.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step02.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" new file mode 100644 index 0000000..ccdf93a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" @@ -0,0 +1,24 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" new file mode 100644 index 0000000..649287f --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" @@ -0,0 +1,28 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo2") +public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" new file mode 100644 index 0000000..55242e4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" @@ -0,0 +1,68 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" new file mode 100644 index 0000000..2895bc8 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" @@ -0,0 +1,56 @@ +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/5 + Time: 16:54 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +<% + String [][]a={{"一"},{"二"},{"三"}}; + String [][]b={{"四"},{"五"},{"六"}}; + String [][]c={{"七"},{"八"},{"九"}}; +// String a="一"; +// String b="二"; +// String c="三"; +// String d="四"; +// String e="五"; +// String f="六"; +// String g="七"; +// String h="八"; +// String i="九"; +%> +

JSP数组内容

+ + + + + + + + + + + + + + + + + +
<%out.print(Arrays.toString(a[0]));%><%out.print(Arrays.toString(a[1]));%><%out.print(Arrays.toString(a[2]));%>
<%out.print(Arrays.toString(b[0]));%><%out.print(Arrays.toString(b[1]));%><%out.print(Arrays.toString(b[2]));%>
<%out.print(Arrays.toString(c[0]));%><%out.print(Arrays.toString(c[1]));%><%out.print(Arrays.toString(c[2]));%>
+ + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step01.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step01.java" new file mode 100644 index 0000000..ce548ff --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step01.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step02.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step02.java" new file mode 100644 index 0000000..56af95b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step02.java" @@ -0,0 +1,33 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" new file mode 100644 index 0000000..5a876d9 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" @@ -0,0 +1,48 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" new file mode 100644 index 0000000..ff727fa --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" @@ -0,0 +1,40 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + +

Step1选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" new file mode 100644 index 0000000..ed834df --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" @@ -0,0 +1,42 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print(session.getAttribute("name"));%>
地址:<%out.print(session.getAttribute("address"));%>
付款信息
信用卡类型<%out.print(Arrays.toString((Object[]) session.getAttribute("types")));%>
卡号:<%out.print(session.getAttribute("username"));%>
订货项目<% out.print(Arrays.toString((Object[]) session.getAttribute("books")));%>
+ + + \ No newline at end of file -- Gitee From bc7ab221de0843d4faf354303db1d942216e6297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=B9=99=E9=93=AD?= <935044545@qq.com> Date: Tue, 13 Dec 2022 01:35:12 +0000 Subject: [PATCH 290/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈乙铭 <935044545@qq.com> --- .../TwoDoimensional.java" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/TwoDoimensional.java" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/TwoDoimensional.java" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/TwoDoimensional.java" new file mode 100644 index 0000000..bb41efd --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/TwoDoimensional.java" @@ -0,0 +1,34 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][]array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + Title + + +

二维数组

+ + + + + + + <% + for (int i = 0; i + + <% + for (int j = 0; j + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%=array[i][j]%>
+ + \ No newline at end of file -- Gitee From bf4fdbb626a36d84a6844626ec59860844265128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=B9=99=E9=93=AD?= <935044545@qq.com> Date: Tue, 13 Dec 2022 01:35:33 +0000 Subject: [PATCH 291/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈乙铭 <935044545@qq.com> --- .../ShowTable.java" | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/ShowTable.java" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/ShowTable.java" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/ShowTable.java" new file mode 100644 index 0000000..63362ba --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/ShowTable.java" @@ -0,0 +1,28 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("张三"); + user.add("李四"); + user.add("老六"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From 47a4089991abb95821ff69a265c8694c13469b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=B9=99=E9=93=AD?= <935044545@qq.com> Date: Tue, 13 Dec 2022 01:35:50 +0000 Subject: [PATCH 292/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈乙铭 <935044545@qq.com> --- .../User.java" | 40 +++++++++++++++++++ .../test.jsp" | 39 ++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/User.java" new file mode 100644 index 0000000..b3e6146 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/User.java" @@ -0,0 +1,40 @@ +public class user { + private String name; + private int age; + private String address; + + public user(){ + + } + + public user(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getAddress() { + return address; + } + + public void setName(String name) { + this.name = name; + } + + public void setAge(int age) { + this.age = age; + } + + public void setAddress(String address) { + this.address = address; + } + +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/test.jsp" new file mode 100644 index 0000000..3998e4a --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/test.jsp" @@ -0,0 +1,39 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="com.example.Homework7.user" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new user("张三",22,"福建")); + list.add(new user("李四",23,"江西")); + list.add(new user("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.ardress} + +
+ + \ No newline at end of file -- Gitee From 1dc6d7ea6b2602c23a7a12c1109cc67f85327b04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=B9=99=E9=93=AD?= <935044545@qq.com> Date: Tue, 13 Dec 2022 01:36:17 +0000 Subject: [PATCH 293/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈乙铭 <935044545@qq.com> --- .../Brand.java" | 99 +++++++++++++++++++ .../ServletDemo01.java" | 35 +++++++ .../ServletDemo02.java" | 32 ++++++ .../User.java" | 74 ++++++++++++++ .../jstl.jsp" | 60 +++++++++++ .../jstlforeach.jsp" | 60 +++++++++++ .../test.jsp" | 37 +++++++ 7 files changed, 397 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/ServletDemo01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/ServletDemo02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/Brand.java" new file mode 100644 index 0000000..c4f28f0 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/Brand.java" @@ -0,0 +1,99 @@ +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/ServletDemo01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/ServletDemo01.java" new file mode 100644 index 0000000..883981b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/ServletDemo01.java" @@ -0,0 +1,35 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/ServletDemo02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/ServletDemo02.java" new file mode 100644 index 0000000..4eb0408 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/ServletDemo02.java" @@ -0,0 +1,32 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/User.java" new file mode 100644 index 0000000..e3c34d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/User.java" @@ -0,0 +1,74 @@ +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/jstl.jsp" new file mode 100644 index 0000000..1eb2079 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/jstl.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/jstlforeach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/jstlforeach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/test.jsp" new file mode 100644 index 0000000..8977c06 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\344\271\231\351\223\255/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 1e36ddab7c682b616ea6f01823afa725ae88bb2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E9=9C=B2=E6=B4=81?= <10602825+meng-lujie@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:40:25 +0000 Subject: [PATCH 294/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=9F=E9=9C=B2?= =?UTF-8?q?=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\237\351\234\262\346\264\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From c3047522e61aa144b163d194761607a70cae1001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 01:43:51 +0000 Subject: [PATCH 295/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9B=BE=E8=89=BA?= =?UTF-8?q?=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\233\276\350\211\272\344\272\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 32cd521f99e5e6c5b2320bda06bdeb65ef16c613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 01:45:21 +0000 Subject: [PATCH 296/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9B=BE?= =?UTF-8?q?=E8=89=BA=E4=BA=91/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\233\276\350\211\272\344\272\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From cad5e665965832699c5b10bd343b7e43740e40f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E9=9C=B2=E6=B4=81?= <10602825+meng-lujie@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:46:52 +0000 Subject: [PATCH 297/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=9F=E9=9C=B2?= =?UTF-8?q?=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\237\351\234\262\346\264\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From e99f9b08f0a66715459f7c2b05bc8857f5225f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E9=9C=B2=E6=B4=81?= <10602825+meng-lujie@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:48:13 +0000 Subject: [PATCH 298/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孟露洁 <10602825+meng-lujie@user.noreply.gitee.com> --- .../2022.9.24/Login.java" | 51 +++++++++++ .../2022.9.24/Register.java" | 87 +++++++++++++++++++ .../2022.9.24/login.html" | 15 ++++ .../2022.9.24/register.html" | 17 ++++ 4 files changed, 170 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/2022.9.24/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/2022.9.24/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/2022.9.24/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/2022.9.24/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/2022.9.24/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/2022.9.24/Login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/2022.9.24/Login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/2022.9.24/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/2022.9.24/Register.java" new file mode 100644 index 0000000..8b8b781 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/2022.9.24/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/2022.9.24/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/2022.9.24/login.html" new file mode 100644 index 0000000..7993a7f --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/2022.9.24/login.html" @@ -0,0 +1,15 @@ + + + + + 用户登入 + + + +
+
+
+ + + + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/2022.9.24/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/2022.9.24/register.html" new file mode 100644 index 0000000..f5eeff4 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/2022.9.24/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+ + 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file -- Gitee From e0c7baa83944e4b92d0965656d16bc53cd5a5984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E9=9C=B2=E6=B4=81?= <10602825+meng-lujie@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:49:32 +0000 Subject: [PATCH 299/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=9F=E9=9C=B2?= =?UTF-8?q?=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\237\351\234\262\346\264\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 68dcdae1550dca5083c353eb725ca86afc6321b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E9=9C=B2=E6=B4=81?= <10602825+meng-lujie@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:50:26 +0000 Subject: [PATCH 300/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孟露洁 <10602825+meng-lujie@user.noreply.gitee.com> --- .../2022.9.25/FailServlet.java" | 20 ++++++++++ .../2022.9.25/LoginServlet.java" | 39 +++++++++++++++++++ .../2022.9.25/SuccessServlet.java" | 20 ++++++++++ .../2022.9.25/register.html" | 23 +++++++++++ .../2022.9.25/request.html" | 24 ++++++++++++ .../2022.9.30/fail.java" | 18 +++++++++ .../2022.9.30/login.HTML" | 17 ++++++++ .../2022.9.30/login.Java" | 34 ++++++++++++++++ .../2022.9.30/success.java" | 36 +++++++++++++++++ 9 files changed, 231 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/register.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/request.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.30/fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.30/login.HTML" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.30/login.Java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.30/success.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/FailServlet.java" new file mode 100644 index 0000000..b5c9f91 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/FailServlet.java" @@ -0,0 +1,20 @@ + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/LoginServlet.java" new file mode 100644 index 0000000..64f6438 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/LoginServlet.java" @@ -0,0 +1,39 @@ + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/SuccessServlet.java" new file mode 100644 index 0000000..17f4d8a --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/SuccessServlet.java" @@ -0,0 +1,20 @@ + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/register.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/register.html" new file mode 100644 index 0000000..8d6d07e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/register.html" @@ -0,0 +1,23 @@ + + + +  +  +register  + + + +
+Username:
+Password:
+Gender:男 +
+Hobby:画画 +唱歌 +跳舞 +写作 +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/request.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/request.html" new file mode 100644 index 0000000..1f08c8c --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.25/request.html" @@ -0,0 +1,24 @@ + + + +  +  +登陆界面 + + +
+Username:
+Password: +
+ + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.30/fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.30/fail.java" new file mode 100644 index 0000000..8206477 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.30/fail.java" @@ -0,0 +1,18 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail") +public class fail extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.30/login.HTML" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.30/login.HTML" new file mode 100644 index 0000000..70f8f2b --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.30/login.HTML" @@ -0,0 +1,17 @@ + + + + + 用户登录 + + +
+
+ 姓名:
+ 密码:
+ + +
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.30/login.Java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.30/login.Java" new file mode 100644 index 0000000..6d83de9 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.30/login.Java" @@ -0,0 +1,34 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.30/success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.30/success.java" new file mode 100644 index 0000000..c2cd68e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/2022.9.30/success.java" @@ -0,0 +1,36 @@ + + import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} + -- Gitee From 4b2b0080d6b48f8b7686ff6e3ac5c564e658da89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E9=9C=B2=E6=B4=81?= <10602825+meng-lujie@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:51:14 +0000 Subject: [PATCH 301/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=9F=E9=9C=B2?= =?UTF-8?q?=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\237\351\234\262\346\264\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 2da5ed1e3d67dfb6a80e4d66ddff90bdbb4db2e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E9=9C=B2=E6=B4=81?= <10602825+meng-lujie@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:52:07 +0000 Subject: [PATCH 302/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孟露洁 <10602825+meng-lujie@user.noreply.gitee.com> --- .../cookie.java" | 0 .../test.java" | 55 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/cookie.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/test.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/cookie.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/cookie.java" new file mode 100644 index 0000000..e69de29 diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/test.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/test.java" new file mode 100644 index 0000000..cf1eac6 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/test.java" @@ -0,0 +1,55 @@ + +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; + @WebServlet("/test") +public class test extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + + resp.setContentType("text/html;charset=utf-8"); + + cookie[] cookies = req.getCookies(); + boolean flag=false; + if (cookies != null||cookies.length>0) { + for (cookie cookie:cookies) { + String name = cookie.getName(); + if ("lastTime".equals(name)) { + flag=true; + + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie cookie=new Cookie("lastTime",srt_date); + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} + -- Gitee From 78bd238732f3a2da25c65484b528c6b089d68ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E9=9C=B2=E6=B4=81?= <10602825+meng-lujie@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:52:34 +0000 Subject: [PATCH 303/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=9F=E9=9C=B2?= =?UTF-8?q?=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\237\351\234\262\346\264\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 16995683c46198e234ba1e0a9069747ff34493ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E9=9C=B2=E6=B4=81?= <10602825+meng-lujie@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:53:34 +0000 Subject: [PATCH 304/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孟露洁 <10602825+meng-lujie@user.noreply.gitee.com> --- .../test.jsp" | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/test.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/test.jsp" new file mode 100644 index 0000000..b6e8170 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 夏天 + Date: 2022/12/12 + Time: 22:30 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From fe4439986865dcde2b72a18445efc586c4d0f2be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E9=9C=B2=E6=B4=81?= <10602825+meng-lujie@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:53:50 +0000 Subject: [PATCH 305/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=9F=E9=9C=B2?= =?UTF-8?q?=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\237\351\234\262\346\264\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 7d205da30cc0ad1c92947237d44bc98c73674a77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E9=9C=B2=E6=B4=81?= <10602825+meng-lujie@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:54:37 +0000 Subject: [PATCH 306/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孟露洁 <10602825+meng-lujie@user.noreply.gitee.com> --- .../test.jsp" | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/test.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/test.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/test.jsp" new file mode 100644 index 0000000..570ffc6 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/test.jsp" @@ -0,0 +1,35 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %><%-- +<%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/11/13 + Time: 21:24 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("妙蛙种子"); + user.add("小火龙"); + user.add("杰尼龟"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + -- Gitee From 7d1280a29b945b0c211caeb8191818db329b057c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E9=9C=B2=E6=B4=81?= <10602825+meng-lujie@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:55:01 +0000 Subject: [PATCH 307/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=9F=E9=9C=B2?= =?UTF-8?q?=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\237\351\234\262\346\264\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 1231c4c1c343add055f64d9b261363bfc3c2250f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E9=9C=B2=E6=B4=81?= <10602825+meng-lujie@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:56:16 +0000 Subject: [PATCH 308/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孟露洁 <10602825+meng-lujie@user.noreply.gitee.com> --- .../User.java" | 41 ++++++++++++++++ .../test.jsp" | 47 +++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/User.java" new file mode 100644 index 0000000..6adff56 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/User.java" @@ -0,0 +1,41 @@ +package week12; + +public class User { + private String name; + private int age; + private String address; + + public User() { + } + + public User(String name, int age, String address) { + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } +} + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/test.jsp" new file mode 100644 index 0000000..a766931 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/test.jsp" @@ -0,0 +1,47 @@ +<%@ page import="week12.User" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %> +<%-- + Created by IntelliJ IDEA. + week12.User: WX1927910504 + Date: 2022/11/16 + Time: 20:09 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new User("张三",22,"福建")); + list.add(new User("李四",23,"江西")); + list.add(new User("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.address} + +
+ + + -- Gitee From 4c2f06ca8e561ce0f98da7cb94840a52939b5811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Tue, 13 Dec 2022 01:56:31 +0000 Subject: [PATCH 309/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=90=B4=E8=AF=97?= =?UTF-8?q?=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\220\264\350\257\227\346\264\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From a08a6cf4359abaf63589a338a84cf4b53971412b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E9=9C=B2=E6=B4=81?= <10602825+meng-lujie@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:56:42 +0000 Subject: [PATCH 310/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=9F=E9=9C=B2?= =?UTF-8?q?=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\237\351\234\262\346\264\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 3a681f7c3ca27e1d48da1f240ce834fad3cad0bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E9=9C=B2=E6=B4=81?= <10602825+meng-lujie@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 01:57:34 +0000 Subject: [PATCH 311/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孟露洁 <10602825+meng-lujie@user.noreply.gitee.com> --- .../Brand.java" | 97 +++++++++++++++++++ .../ServletDemo1.java" | 38 ++++++++ .../ServletDemo2.java" | 37 +++++++ .../User.java" | 75 ++++++++++++++ .../jstl-foreach.jsp" | 67 +++++++++++++ .../jstl.jsp" | 67 +++++++++++++ .../test.jsp" | 44 +++++++++ 7 files changed, 425 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl-foreach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Brand.java" new file mode 100644 index 0000000..520edd6 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Brand.java" @@ -0,0 +1,97 @@ +package com.company; + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo1.java" new file mode 100644 index 0000000..c7cd16d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo1.java" @@ -0,0 +1,38 @@ +package com.company; +import com.company.Brand; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo2.java" new file mode 100644 index 0000000..a3284cc --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/ServletDemo2.java" @@ -0,0 +1,37 @@ +package com.company; + +import com.company.Brand; +import com.company.User; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/User.java" new file mode 100644 index 0000000..98f396e --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/User.java" @@ -0,0 +1,75 @@ +package com.company; +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl-foreach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl-foreach.jsp" new file mode 100644 index 0000000..c526430 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl-foreach.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 夏天 + Date: 2022/12/12 + Time: 22:58 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl.jsp" new file mode 100644 index 0000000..2f09cf4 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/jstl.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 夏天 + Date: 2022/12/12 + Time: 23:00 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/test.jsp" new file mode 100644 index 0000000..5beffc1 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\237\351\234\262\346\264\201/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 夏天 + Date: 2022/12/12 + Time: 23:01 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 57e76905446c81b15e66f813018c577ba765d5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 01:57:43 +0000 Subject: [PATCH 312/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=8D=B1=E5=AA=9B?= =?UTF-8?q?=E8=8A=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From fea768dc5ae4cd16d3436e3a08d2ad6c6fbd9ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 01:59:02 +0000 Subject: [PATCH 313/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 危媛芳 <1638067417@qq.com> --- .../\345\215\261\345\252\233\350\212\263/Login.java.url" | 2 ++ .../\345\215\261\345\252\233\350\212\263/Register.java.url" | 2 ++ .../\345\215\261\345\252\233\350\212\263/login.html.url" | 2 ++ .../\345\215\261\345\252\233\350\212\263/register.html.url" | 2 ++ 4 files changed, 8 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Login.java.url" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Register.java.url" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/login.html.url" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/register.html.url" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Login.java.url" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Login.java.url" new file mode 100644 index 0000000..35494ec --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Login.java.url" @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E4%BA%8C%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E9%BB%8E%E5%8C%85%E8%8D%A3/Login.java diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Register.java.url" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Register.java.url" new file mode 100644 index 0000000..01d8f8c --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Register.java.url" @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E4%BA%8C%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E9%BB%8E%E5%8C%85%E8%8D%A3/Register.java diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/login.html.url" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/login.html.url" new file mode 100644 index 0000000..3f4d6c8 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/login.html.url" @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E4%BA%8C%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E9%BB%8E%E5%8C%85%E8%8D%A3/login.html diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/register.html.url" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/register.html.url" new file mode 100644 index 0000000..a11cc6e --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/register.html.url" @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E4%BA%8C%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E9%BB%8E%E5%8C%85%E8%8D%A3/register.html -- Gitee From 5024e1de89e3bd14cbe5b0cca2d9f0d55e610a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 13 Dec 2022 01:59:55 +0000 Subject: [PATCH 314/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9E=97?= =?UTF-8?q?=E7=A7=8B=E5=8D=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 .../FailServlet.java" | 22 ----------- .../Servlet3.java" | 37 ------------------- .../SuccessServlet.java" | 22 ----------- 4 files changed, 81 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Servlet3.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" deleted file mode 100644 index e69de29..0000000 diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" deleted file mode 100644 index 4046385..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" +++ /dev/null @@ -1,22 +0,0 @@ -package tiaozhuan; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; - -@WebServlet("/fail3") -public class FailServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req, resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - System.out.println("登陆失败!!!!!!!!!!!!!!!!!!!!!!!!"); - } -} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Servlet3.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Servlet3.java" deleted file mode 100644 index 57f8553..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/Servlet3.java" +++ /dev/null @@ -1,37 +0,0 @@ -package tiaozhuan; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; -@WebServlet("/s3") -public class Servlet3 extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - BufferedReader reader=req.getReader(); - String line; - while ((line=reader.readLine())!=null){ - String []arr=line.split("&"); - String username=arr[0].split("=")[1]; - String password=arr[1].split("=")[1]; - if ("admin".equals(username)&&"admin".equals(password)) { - req.getRequestDispatcher("/success3").forward(req,resp); - System.out.println(line); - } - else { - req.getRequestDispatcher("/fail3").forward(req,resp); - } - - } - - - } -} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" deleted file mode 100644 index ceaca26..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" +++ /dev/null @@ -1,22 +0,0 @@ -package tiaozhuan; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; - -@WebServlet("/success3") -public class SuccessServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req, resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - System.out.println("登陆成功!!!!!!!!!!!!!!!!!!!!!!!!!"); -} -} \ No newline at end of file -- Gitee From e289cae1f324997356a76beefc94f8c3e611acc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Tue, 13 Dec 2022 01:59:58 +0000 Subject: [PATCH 315/688] =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81=20=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴诗洁 <2716787815@qq.com> --- .../Login.html" | 15 ++++ .../Login.java" | 49 +++++++++++ .../Register.html" | 17 ++++ .../Register.java" | 85 +++++++++++++++++++ 4 files changed, 166 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Register.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Register.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Login.html" new file mode 100644 index 0000000..7993a7f --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Login.html" @@ -0,0 +1,15 @@ + + + + + 用户登入 + + + +
+
+
+ + + + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Login.java" new file mode 100644 index 0000000..fb3e0ea --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Login.java" @@ -0,0 +1,49 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Register.html" new file mode 100644 index 0000000..26af32d --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+ + 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Register.java" new file mode 100644 index 0000000..8f92d25 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Register.java" @@ -0,0 +1,85 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} -- Gitee From 7c442027fa0260fc8dfbdeca5e9ba17130ef8343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:00:28 +0000 Subject: [PATCH 316/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=8D=B1=E5=AA=9B?= =?UTF-8?q?=E8=8A=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From c3e6b33c9c60746d015e70f5dc42fd3585542d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 13 Dec 2022 02:00:58 +0000 Subject: [PATCH 317/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E7=A7=8B?= =?UTF-8?q?=E5=8D=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\347\247\213\345\215\216/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 7d680269092e599617f9b8431b1f00bc7acd5ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 13 Dec 2022 02:01:31 +0000 Subject: [PATCH 318/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林秋华 <1241881982@qq.com> --- .../FailServlet.java" | 21 ++++++ .../LoginServlet.java" | 40 +++++++++++ .../SuccessServlet.java" | 21 ++++++ .../loginservlet.html" | 14 ++++ .../DownloadServlet.java" | 45 +++++++++++++ .../LoginCheckServlet.java" | 44 ++++++++++++ .../ValidateCodeServlet.java" | 67 +++++++++++++++++++ .../download.html" | 11 +++ .../login.html" | 21 ++++++ .../Fail.java" | 22 ++++++ .../Fail02.java" | 22 ++++++ .../Servlet.java" | 25 +++++++ .../Servlet02.java" | 26 +++++++ .../Success.java" | 21 ++++++ .../Success02.java" | 22 ++++++ .../index.jsp" | 9 +++ .../login.html" | 14 ++++ .../login2.html" | 14 ++++ 18 files changed, 459 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/loginservlet.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/download.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" new file mode 100644 index 0000000..4b76b8e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/LoginServlet.java" new file mode 100644 index 0000000..74f00ac --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/LoginServlet.java" @@ -0,0 +1,40 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" new file mode 100644 index 0000000..cfaf017 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/loginservlet.html" new file mode 100644 index 0000000..d4da7fc --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" new file mode 100644 index 0000000..c4bdcef --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" @@ -0,0 +1,45 @@ +import javax.activation.MimeType; +import javax.servlet.ServletContext; +import javax.servlet.ServletException; +import javax.servlet.ServletInputStream; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/DownloadServlet1") +public class DownloadServlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取请求参数,文件名 + String filename=req.getParameter("filename"); + //1.使用字节流加载文件进内存 + //1.1找到服务器路径 + ServletContext servletContext=this.getServletContext(); + String realPath = servletContext.getRealPath("/img/"+filename); + //1.2用字节流关联 + ServletInputStream fis=req.getInputStream(); + + //2.设置response响应头 + //2.1设置响应头:content-type= ; + String mimeType = servletContext.getMimeType(filename); + resp.setHeader("content-type",mimeType); + //2.2设置响应头打开方式:content-disposition + resp.setHeader("content-disposition","attachment;filename="+filename); + //将输入流的数据写到输出流 + ServletOutputStream sos=resp.getOutputStream(); + byte [] buff=new byte[1024*8]; + int len=0; + while ((len=fis.read(buff))!=-1){ + sos.write(buff,0,len); + } + fis.close(); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" new file mode 100644 index 0000000..7f16049 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" @@ -0,0 +1,44 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.nio.charset.StandardCharsets; + +@WebServlet("/LoginCheckServlet") +public class LoginCheckServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //接收账号,密码,验证码 + String username=req.getParameter("username"); + String password=req.getParameter("password"); + String userCode=req.getParameter("userCode"); + //从session中取出正确验证码 + HttpSession session=req.getSession(); + String vCode= (String) session.getAttribute("vCode"); + //将用户输入的验证码和从session中的正确验证码进行对比 + resp.setContentType("text/html;charset=UTF-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + if (userCode.equals(vCode)) { + if ("admin".equals(username)&&"admin".equals(password)){ + + outputStream.write("登陆成功".getBytes("UTF-8")); + }else { + + outputStream.write("登陆失败,密码错误".getBytes("UTF-8")); + } + }else { + + outputStream.write("登陆失败,验证码错误".getBytes("UTF-8")); + } + + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" new file mode 100644 index 0000000..076a597 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" @@ -0,0 +1,67 @@ +import javax.imageio.ImageIO; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import javax.xml.ws.spi.http.HttpContext; +import java.awt.*; +import java.awt.image.BufferedImage; +import java.io.IOException; +import java.util.Random; +@WebServlet("/ValidateCodeServlet") +public class ValidateCodeServlet extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建一张图片 + int width=300;//验证码宽度 + int height=90;//验证码高度 + BufferedImage image=new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); + //绘制图片 + //从图片对象中获取绘制图片的“笔” + Graphics pen=image.createGraphics(); + //绘制背景 + pen.setColor(getRandomColor()); + //fillRect:绘制实心矩形 + pen.fillRect(0,0,width,height); + //绘制验证码字符串 + int letterNum=4;//验证码图片上的字符的个数 + int space=20;//验证码图片上两个字母之间的空隙 + int letterWidth=(width-(letterNum+1)*space)/letterNum;//计算每个字母占据的宽度 + //for循环每循环一次,绘制一个字母(小写字母的ASCII码97-122) + String vCode=""; + Random random=new Random(); + for(int i=0;i + + + + Title + +图片
+视频 + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" new file mode 100644 index 0000000..fbc1dea --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" @@ -0,0 +1,21 @@ + + + + + 用户登录 + +
+ 账号:
+ 密码:
+ 验证码: +
+
+
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" new file mode 100644 index 0000000..adde74d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail01") +public class Fail01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" new file mode 100644 index 0000000..1df63b6 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail02") +public class Fail02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" new file mode 100644 index 0000000..cedac50 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/s1") +public class Servlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username=req.getParameter("username"); + String password=req.getParameter("password"); + if ("admin".equals(username)&&"admin".equals(password)) { + req.getRequestDispatcher("/Success01").forward(req,resp); + } + else { + req.getRequestDispatcher("/Fail01").forward(req,resp); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" new file mode 100644 index 0000000..9ac18b8 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/s2") +public class Servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String uname=req.getParameter("uname"); + String password=req.getParameter("password"); + if ("admin".equals(uname)&&"admin".equals(password)) { + resp.sendRedirect("Success02"); + } + else { + resp.sendRedirect("Fail02"); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" new file mode 100644 index 0000000..8a851be --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Success01") +public class Success01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" new file mode 100644 index 0000000..605e6ba --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Success02") +public class Success02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" new file mode 100644 index 0000000..0c2c42d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" @@ -0,0 +1,9 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + $END$ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" new file mode 100644 index 0000000..c19aa58 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" new file mode 100644 index 0000000..3a32640 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file -- Gitee From 31c94524bbec8c19cefc5504c9cb16982d315f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:02:00 +0000 Subject: [PATCH 319/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 危媛芳 <1638067417@qq.com> --- .../\345\215\261\345\252\233\350\212\263/FailServlet.java.url" | 2 ++ .../\345\215\261\345\252\233\350\212\263/LoginServlet.java.url" | 2 ++ .../SuccessServlet.java.url" | 2 ++ .../\345\215\261\345\252\233\350\212\263/loginservlet.html.url" | 2 ++ 4 files changed, 8 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/FailServlet.java.url" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/LoginServlet.java.url" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/SuccessServlet.java.url" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/loginservlet.html.url" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/FailServlet.java.url" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/FailServlet.java.url" new file mode 100644 index 0000000..899dbd3 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/FailServlet.java.url" @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E4%B8%89%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E9%BB%8E%E5%8C%85%E8%8D%A3/FailServlet.java diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/LoginServlet.java.url" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/LoginServlet.java.url" new file mode 100644 index 0000000..8568b34 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/LoginServlet.java.url" @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E4%B8%89%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E9%BB%8E%E5%8C%85%E8%8D%A3/LoginServlet.java diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/SuccessServlet.java.url" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/SuccessServlet.java.url" new file mode 100644 index 0000000..c2f8b98 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/SuccessServlet.java.url" @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E4%B8%89%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E9%BB%8E%E5%8C%85%E8%8D%A3/SuccessServlet.java diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/loginservlet.html.url" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/loginservlet.html.url" new file mode 100644 index 0000000..1eac1fa --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/loginservlet.html.url" @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E4%B8%89%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E9%BB%8E%E5%8C%85%E8%8D%A3/loginservlet.html -- Gitee From 99ef9aae4cbc23e8e53f7901ba6e0af3a6a63c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Tue, 13 Dec 2022 02:11:46 +0000 Subject: [PATCH 320/688] =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81=20=E7=AC=AC?= =?UTF-8?q?=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴诗洁 <2716787815@qq.com> --- .../\344\275\234\344\270\2321/.idea/misc.xml" | 6 ++ .../.idea/modules.xml" | 8 +++ .../.idea/workspace.xml" | 42 ++++++++++++ .../.idea/\344\275\234\344\270\2321.iml" | 11 +++ .../CookieDemo1.java" | 24 +++++++ .../CookieDemo2.java" | 28 ++++++++ .../CookieTest.java" | 68 +++++++++++++++++++ .../.idea/Comfirn.html" | 47 +++++++++++++ .../\344\275\234\344\270\2322/.idea/misc.xml" | 6 ++ .../.idea/modules.xml" | 8 +++ .../.idea/workspace.xml" | 44 ++++++++++++ .../.idea/\344\275\234\344\270\2322.iml" | 11 +++ .../\344\275\234\344\270\2322/Books.html" | 47 +++++++++++++ .../\344\275\234\344\270\2322/Step1.java" | 25 +++++++ .../\344\275\234\344\270\2322/Step2.java" | 34 ++++++++++ .../\344\275\234\344\270\2322/adress.html" | 47 +++++++++++++ 16 files changed, 456 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/.idea/misc.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/.idea/modules.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/.idea/workspace.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/.idea/\344\275\234\344\270\2321.iml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/CookieTest.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/Comfirn.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/misc.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/modules.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/workspace.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/\344\275\234\344\270\2322.iml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/Books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/Step1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/Step2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/adress.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/.idea/misc.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/.idea/misc.xml" new file mode 100644 index 0000000..d3c9b3d --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/.idea/misc.xml" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/.idea/modules.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/.idea/modules.xml" new file mode 100644 index 0000000..af50b17 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/.idea/modules.xml" @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/.idea/workspace.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/.idea/workspace.xml" new file mode 100644 index 0000000..4ae249a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/.idea/workspace.xml" @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + 1670892899540 + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/.idea/\344\275\234\344\270\2321.iml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/.idea/\344\275\234\344\270\2321.iml" new file mode 100644 index 0000000..1de981c --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/.idea/\344\275\234\344\270\2321.iml" @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/CookieDemo1.java" new file mode 100644 index 0000000..b40a2f7 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/CookieDemo1.java" @@ -0,0 +1,24 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/CookieDemo2.java" new file mode 100644 index 0000000..649287f --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/CookieDemo2.java" @@ -0,0 +1,28 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo2") +public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/CookieTest.java" new file mode 100644 index 0000000..55242e4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2321/CookieTest.java" @@ -0,0 +1,68 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/Comfirn.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/Comfirn.html" new file mode 100644 index 0000000..4b92a1a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/Comfirn.html" @@ -0,0 +1,47 @@ + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/misc.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/misc.xml" new file mode 100644 index 0000000..d3c9b3d --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/misc.xml" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/modules.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/modules.xml" new file mode 100644 index 0000000..bdb2244 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/modules.xml" @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/workspace.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/workspace.xml" new file mode 100644 index 0000000..bad4498 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/workspace.xml" @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + 1670893123035 + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/\344\275\234\344\270\2322.iml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/\344\275\234\344\270\2322.iml" new file mode 100644 index 0000000..1de981c --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/.idea/\344\275\234\344\270\2322.iml" @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/Books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/Books.html" new file mode 100644 index 0000000..141af57 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/Books.html" @@ -0,0 +1,47 @@ + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/Step1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/Step1.java" new file mode 100644 index 0000000..ce548ff --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/Step1.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/Step2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/Step2.java" new file mode 100644 index 0000000..063d3b9 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/Step2.java" @@ -0,0 +1,34 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/adress.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/adress.html" new file mode 100644 index 0000000..4b92a1a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/\344\275\234\344\270\2322/adress.html" @@ -0,0 +1,47 @@ + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + -- Gitee From d8b1e4d0e2295d5dfa252b229bb87caa6d82ea61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Tue, 13 Dec 2022 02:13:40 +0000 Subject: [PATCH 321/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=90=B4=E8=AF=97?= =?UTF-8?q?=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\220\264\350\257\227\346\264\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From ebda032fec5db1e32fd2e640b1c970f02756ae92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Tue, 13 Dec 2022 02:14:08 +0000 Subject: [PATCH 322/688] =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81=E7=AC=AC?= =?UTF-8?q?=E4=BA=94=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴诗洁 <2716787815@qq.com> --- .../text.html" | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/text.html" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/text.html" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/text.html" new file mode 100644 index 0000000..25ab44c --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/text.html" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% +String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From c6b3b58abca512c8324ba1709ff17dd0fa81d21d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Tue, 13 Dec 2022 02:14:29 +0000 Subject: [PATCH 323/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=90=B4=E8=AF=97?= =?UTF-8?q?=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\220\264\350\257\227\346\264\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 81f9170df5148c9c648fce846ea479e12a154317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Tue, 13 Dec 2022 02:15:27 +0000 Subject: [PATCH 324/688] =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81=20=E7=AC=AC?= =?UTF-8?q?=E5=85=AD=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴诗洁 <2716787815@qq.com> --- .../text.html" | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/text.html" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/text.html" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/text.html" new file mode 100644 index 0000000..dc98a2a --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/text.html" @@ -0,0 +1,26 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% +List user=new ArrayList(); +user.add("张三"); +user.add("李四"); +user.add("王五"); +request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From f2908c68ca6bba6b3e908f35f500969526f7cf39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Tue, 13 Dec 2022 02:16:01 +0000 Subject: [PATCH 325/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=90=B4=E8=AF=97?= =?UTF-8?q?=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\220\264\350\257\227\346\264\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 846aa3985220ec9e69fa4dc2314a095a8564da79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Tue, 13 Dec 2022 02:16:58 +0000 Subject: [PATCH 326/688] =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81=E7=AC=AC?= =?UTF-8?q?=E4=B8=83=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴诗洁 <2716787815@qq.com> --- .../filter.java" | 35 +++++++++++++++++++ .../filterServelet.java" | 26 ++++++++++++++ .../filterweb.html" | 12 +++++++ 3 files changed, 73 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/filter.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/filterServelet.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/filterweb.html" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/filter.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/filter.java" new file mode 100644 index 0000000..ae943d6 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/filter.java" @@ -0,0 +1,35 @@ +import javax.servlet.*; +import javax.servlet.annotation.WebFilter; +import java.io.IOException; + +//配置Filter拦截路径 +@WebFilter("/test") +public class filter implements Filter { + @Override + public void init(FilterConfig filterConfig) throws ServletException { + + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { + request.setCharacterEncoding("utf-8"); + String[] str = new String[]{"sb","lz","2货"}; + String name = request.getParameter("name"); +// name = name.replaceAll("sb","**"); +// name = name.replaceAll("lz","**"); + for (int i = 0; i < str.length; i++) { + String index = str[i]; + name = name.replaceAll(index,"**"); + } + System.out.print("过滤后输出:"); + System.out.println(name); + request.setAttribute("name",name); + + + chain.doFilter(request,response); + } + @Override + public void destroy() { + + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/filterServelet.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/filterServelet.java" new file mode 100644 index 0000000..bb346d1 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/filterServelet.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/test") +public class filterServelet extends HttpServlet { + @Override + public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + String name = request.getParameter("name"); + System.out.print("原输入:"); + System.out.println(name); + + + } + + + @Override + public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request,response); + + } + +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/filterweb.html" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/filterweb.html" new file mode 100644 index 0000000..3b56155 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/filterweb.html" @@ -0,0 +1,12 @@ + + + + + Title + + + + + + + \ No newline at end of file -- Gitee From c4db48a2f94422e443d5a369bbad37dcb0d253d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kn=E4=B8=A8ght9z?= <10602826+kn-ght9z@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:17:23 +0000 Subject: [PATCH 327/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=AA=86=E7=A5=BA?= =?UTF-8?q?=E7=A5=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\252\206\347\245\272\347\245\245/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From f062867036b0b1404a63c103153dd2dadd12134c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Tue, 13 Dec 2022 02:17:28 +0000 Subject: [PATCH 328/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=90=B4=E8=AF=97?= =?UTF-8?q?=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\220\264\350\257\227\346\264\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 7c6b67fbc12b6f079fe47a2055ca749e0767cf36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:18:14 +0000 Subject: [PATCH 329/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 危媛芳 <1638067417@qq.com> --- .../\345\215\261\345\252\233\350\212\263/CookieDemo1.java.url" | 2 ++ .../\345\215\261\345\252\233\350\212\263/CookieDemo2.java.url" | 2 ++ .../\345\215\261\345\252\233\350\212\263/CookieTest.java.url" | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieDemo1.java.url" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieDemo2.java.url" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieTest.java.url" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieDemo1.java.url" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieDemo1.java.url" new file mode 100644 index 0000000..7c39bb2 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieDemo1.java.url" @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E5%9B%9B%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E6%9D%A8%E4%BD%B3%E4%BD%B3/%E7%AC%AC%E4%B8%80%E6%AC%A1%E4%BD%9C%E4%B8%9A/CookieDemo1.java diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieDemo2.java.url" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieDemo2.java.url" new file mode 100644 index 0000000..9dd34a4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieDemo2.java.url" @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E5%9B%9B%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E6%9D%A8%E4%BD%B3%E4%BD%B3/%E7%AC%AC%E4%B8%80%E6%AC%A1%E4%BD%9C%E4%B8%9A/CookieDemo2.java diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieTest.java.url" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieTest.java.url" new file mode 100644 index 0000000..bb18ef2 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieTest.java.url" @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E5%9B%9B%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E6%9D%A8%E4%BD%B3%E4%BD%B3/%E7%AC%AC%E4%B8%80%E6%AC%A1%E4%BD%9C%E4%B8%9A/CookieTest.java -- Gitee From b0813aaf209939f81a8bd083225e9186d5e297c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kn=E4=B8=A8ght9z?= <10602826+kn-ght9z@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:19:30 +0000 Subject: [PATCH 330/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kn丨ght9z <10602826+kn-ght9z@user.noreply.gitee.com> --- .../Login.html" | 26 ++++++++ .../Login.txt" | 46 ++++++++++++++ .../Register.html" | 34 +++++++++++ .../Register.txt" | 61 +++++++++++++++++++ 4 files changed, 167 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Login.txt" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Register.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Register.txt" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Login.html" new file mode 100644 index 0000000..29a70fa --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Login.html" @@ -0,0 +1,26 @@ + + + + + Title + + +

¼ҳ

+
+ + + + + + + + + + + + + +
û
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Login.txt" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Login.txt" new file mode 100644 index 0000000..50a90bf --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Login.txt" @@ -0,0 +1,46 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("¼ɹ"); + } else { + System.out.println("¼ʧ!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("¼ɹ"); + } else { + System.out.println("¼ʧ!"); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Register.html" new file mode 100644 index 0000000..4882d0c --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Register.html" @@ -0,0 +1,34 @@ + + + + + Title + + +

עҳ

+
+ + + + + + + + + + + + + + + + + + + + + +
û
Ա
ãϷ˶
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Register.txt" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Register.txt" new file mode 100644 index 0000000..8be1732 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Register.txt" @@ -0,0 +1,61 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; + + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("servlet.........get........."); + req.setCharacterEncoding("utf-8"); + String parameterString = req.getQueryString(); + System.out.println(parameterString); + String[] parametersArr = parameterString.split("&"); + String username = parametersArr[0].split("=")[1]; + String password = parametersArr[1].split("=")[1]; + String gander = parametersArr[2].split("=")[1]; + String[] hobbies = req.getParameterValues("hobby"); + + System.out.println(username); + System.out.println(password); + System.out.println(gander); + System.out.println(Arrays.toString(hobbies)); + + // for (int i = 0; i Date: Tue, 13 Dec 2022 02:19:48 +0000 Subject: [PATCH 331/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=8D=B1?= =?UTF-8?q?=E5=AA=9B=E8=8A=B3/Login.java.url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/Login.java.url" | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Login.java.url" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Login.java.url" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Login.java.url" deleted file mode 100644 index 35494ec..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Login.java.url" +++ /dev/null @@ -1,2 +0,0 @@ -[InternetShortcut] -URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E4%BA%8C%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E9%BB%8E%E5%8C%85%E8%8D%A3/Login.java -- Gitee From 161071f2e41ed6b91a15b6f10c44dbac815badfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:19:55 +0000 Subject: [PATCH 332/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=8D=B1?= =?UTF-8?q?=E5=AA=9B=E8=8A=B3/Register.java.url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/Register.java.url" | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Register.java.url" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Register.java.url" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Register.java.url" deleted file mode 100644 index 01d8f8c..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Register.java.url" +++ /dev/null @@ -1,2 +0,0 @@ -[InternetShortcut] -URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E4%BA%8C%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E9%BB%8E%E5%8C%85%E8%8D%A3/Register.java -- Gitee From 53b67bffb2504f1e3132a619c4d9a4b62885b0f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:20:02 +0000 Subject: [PATCH 333/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=8D=B1?= =?UTF-8?q?=E5=AA=9B=E8=8A=B3/login.html.url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/login.html.url" | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/login.html.url" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/login.html.url" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/login.html.url" deleted file mode 100644 index 3f4d6c8..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/login.html.url" +++ /dev/null @@ -1,2 +0,0 @@ -[InternetShortcut] -URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E4%BA%8C%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E9%BB%8E%E5%8C%85%E8%8D%A3/login.html -- Gitee From c8270582131380a3c4cc4a1b5d9dea653615ddc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:20:07 +0000 Subject: [PATCH 334/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=8D=B1?= =?UTF-8?q?=E5=AA=9B=E8=8A=B3/register.html.url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/register.html.url" | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/register.html.url" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/register.html.url" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/register.html.url" deleted file mode 100644 index a11cc6e..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/register.html.url" +++ /dev/null @@ -1,2 +0,0 @@ -[InternetShortcut] -URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E4%BA%8C%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E9%BB%8E%E5%8C%85%E8%8D%A3/register.html -- Gitee From e13bed7dd9f9c9b4a3e35189ef233732bfd9e28b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:20:19 +0000 Subject: [PATCH 335/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=8D=B1?= =?UTF-8?q?=E5=AA=9B=E8=8A=B3/FailServlet.java.url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/FailServlet.java.url" | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/FailServlet.java.url" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/FailServlet.java.url" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/FailServlet.java.url" deleted file mode 100644 index 899dbd3..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/FailServlet.java.url" +++ /dev/null @@ -1,2 +0,0 @@ -[InternetShortcut] -URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E4%B8%89%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E9%BB%8E%E5%8C%85%E8%8D%A3/FailServlet.java -- Gitee From e022f98110b4ddb417899982a061ed7fcb8abfb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:20:26 +0000 Subject: [PATCH 336/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=8D=B1?= =?UTF-8?q?=E5=AA=9B=E8=8A=B3/LoginServlet.java.url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/LoginServlet.java.url" | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/LoginServlet.java.url" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/LoginServlet.java.url" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/LoginServlet.java.url" deleted file mode 100644 index 8568b34..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/LoginServlet.java.url" +++ /dev/null @@ -1,2 +0,0 @@ -[InternetShortcut] -URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E4%B8%89%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E9%BB%8E%E5%8C%85%E8%8D%A3/LoginServlet.java -- Gitee From 2e78fbe669f9b036a47cd4786d049ff7aeb0aba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:20:31 +0000 Subject: [PATCH 337/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=8D=B1?= =?UTF-8?q?=E5=AA=9B=E8=8A=B3/SuccessServlet.java.url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SuccessServlet.java.url" | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/SuccessServlet.java.url" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/SuccessServlet.java.url" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/SuccessServlet.java.url" deleted file mode 100644 index c2f8b98..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/SuccessServlet.java.url" +++ /dev/null @@ -1,2 +0,0 @@ -[InternetShortcut] -URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E4%B8%89%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E9%BB%8E%E5%8C%85%E8%8D%A3/SuccessServlet.java -- Gitee From 11d6f4d7fd79cd3eccfacbf14fe7637baafa2db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:20:38 +0000 Subject: [PATCH 338/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=8D=B1?= =?UTF-8?q?=E5=AA=9B=E8=8A=B3/loginservlet.html.url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/loginservlet.html.url" | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/loginservlet.html.url" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/loginservlet.html.url" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/loginservlet.html.url" deleted file mode 100644 index 1eac1fa..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/loginservlet.html.url" +++ /dev/null @@ -1,2 +0,0 @@ -[InternetShortcut] -URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E4%B8%89%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E9%BB%8E%E5%8C%85%E8%8D%A3/loginservlet.html -- Gitee From af4ea5ddbfb07bf484e261acab25bce42eb43cda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:20:54 +0000 Subject: [PATCH 339/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=8D=B1?= =?UTF-8?q?=E5=AA=9B=E8=8A=B3/CookieDemo1.java.url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/CookieDemo1.java.url" | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieDemo1.java.url" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieDemo1.java.url" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieDemo1.java.url" deleted file mode 100644 index 7c39bb2..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieDemo1.java.url" +++ /dev/null @@ -1,2 +0,0 @@ -[InternetShortcut] -URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E5%9B%9B%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E6%9D%A8%E4%BD%B3%E4%BD%B3/%E7%AC%AC%E4%B8%80%E6%AC%A1%E4%BD%9C%E4%B8%9A/CookieDemo1.java -- Gitee From 8da69a5381d1f7441775b7825a66d5d4af7850e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:21:01 +0000 Subject: [PATCH 340/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=8D=B1?= =?UTF-8?q?=E5=AA=9B=E8=8A=B3/CookieDemo2.java.url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/CookieDemo2.java.url" | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieDemo2.java.url" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieDemo2.java.url" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieDemo2.java.url" deleted file mode 100644 index 9dd34a4..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieDemo2.java.url" +++ /dev/null @@ -1,2 +0,0 @@ -[InternetShortcut] -URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E5%9B%9B%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E6%9D%A8%E4%BD%B3%E4%BD%B3/%E7%AC%AC%E4%B8%80%E6%AC%A1%E4%BD%9C%E4%B8%9A/CookieDemo2.java -- Gitee From 4e3c2ae02abcde6da4065065a36675e6d1a6511a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:21:05 +0000 Subject: [PATCH 341/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=8D=B1?= =?UTF-8?q?=E5=AA=9B=E8=8A=B3/CookieTest.java.url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/CookieTest.java.url" | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieTest.java.url" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieTest.java.url" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieTest.java.url" deleted file mode 100644 index bb18ef2..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/CookieTest.java.url" +++ /dev/null @@ -1,2 +0,0 @@ -[InternetShortcut] -URL=https://gitee.com/yuan-fang-wei/java-web-job/blob/master/%E7%AC%AC%E5%9B%9B%E7%AB%A0%E4%BD%9C%E4%B8%9A/%E6%9D%A8%E4%BD%B3%E4%BD%B3/%E7%AC%AC%E4%B8%80%E6%AC%A1%E4%BD%9C%E4%B8%9A/CookieTest.java -- Gitee From 2816df365b4c48ca8103bf318d39f066c6ba1441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:21:24 +0000 Subject: [PATCH 342/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=8D=B1=E5=AA=9B?= =?UTF-8?q?=E8=8A=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 18e04482492e146efcf35e00168574feff9d84c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:21:48 +0000 Subject: [PATCH 343/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=8D=B1=E5=AA=9B?= =?UTF-8?q?=E8=8A=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 38bd96ce61fd9aa23d2d69ab7da275f5f0402bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:22:03 +0000 Subject: [PATCH 344/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=8D=B1=E5=AA=9B?= =?UTF-8?q?=E8=8A=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From cb5246ed0dad61295804881cd72cf6099608cb87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Tue, 13 Dec 2022 02:22:25 +0000 Subject: [PATCH 345/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=8D=B1=E5=AA=9B?= =?UTF-8?q?=E8=8A=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\215\261\345\252\233\350\212\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From c67a08f2ed2f345dbf1463b03d2af0b9bf1fd3d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 02:25:50 +0000 Subject: [PATCH 346/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9B=BE=E8=89=BA?= =?UTF-8?q?=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\233\276\350\211\272\344\272\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 3bdeb3cb6bfb52f02c7bf86e4239fdd8ea6b483f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 02:26:30 +0000 Subject: [PATCH 347/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 曾艺云 <3262557675@qq.com> --- .../2022.9.24/Login.java" | 51 +++++++++++ .../2022.9.24/Register.java" | 87 +++++++++++++++++++ .../2022.9.24/login.html" | 15 ++++ .../2022.9.24/register.html" | 17 ++++ 4 files changed, 170 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/Login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/Login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/Register.java" new file mode 100644 index 0000000..8b8b781 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/login.html" new file mode 100644 index 0000000..7993a7f --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/login.html" @@ -0,0 +1,15 @@ + + + + + 用户登入 + + + +
+
+
+ + + + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/register.html" new file mode 100644 index 0000000..f5eeff4 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+ + 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file -- Gitee From f22f584e930b31be5259f7a8b8ce78ad03e74024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kn=E4=B8=A8ght9z?= <10602826+kn-ght9z@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:26:54 +0000 Subject: [PATCH 348/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=AA=86=E7=A5=BA?= =?UTF-8?q?=E7=A5=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\252\206\347\245\272\347\245\245/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From e0a214787bcb3ff1115fe32ea7f3fe693da73fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kn=E4=B8=A8ght9z?= <10602826+kn-ght9z@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:27:35 +0000 Subject: [PATCH 349/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kn丨ght9z <10602826+kn-ght9z@user.noreply.gitee.com> --- .../FailServlet.java" | 21 ++++++++++ .../LoginServlet.java" | 40 +++++++++++++++++++ .../Loginservlet.html" | 14 +++++++ .../SuccessServlet.java" | 21 ++++++++++ 4 files changed, 96 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Loginservlet.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/SuccessServlet.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/FailServlet.java" new file mode 100644 index 0000000..49df1a0 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/FailServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("¼ʧܣû"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/LoginServlet.java" new file mode 100644 index 0000000..6abe543 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/LoginServlet.java" @@ -0,0 +1,40 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("¼ɹ"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("¼ʧ!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Loginservlet.html" new file mode 100644 index 0000000..8c9a94c --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/SuccessServlet.java" new file mode 100644 index 0000000..f4f6a5f --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/SuccessServlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("success...................."); + Object username = req.getAttribute("username"); + System.out.println("¼ɹ"+username+"ӭ"); + } +} \ No newline at end of file -- Gitee From dcc3cd7cfcb8248271627576cfcbf9fe910f452f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 02:27:40 +0000 Subject: [PATCH 350/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9B=BE?= =?UTF-8?q?=E8=89=BA=E4=BA=91/=E7=AC=AC=E4=BA=8C=E7=AB=A0/=E9=92=9F?= =?UTF-8?q?=E6=80=9D=E7=90=A6/2022.9.24?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2022.9.24/Login.java" | 51 ----------- .../2022.9.24/Register.java" | 87 ------------------- .../2022.9.24/login.html" | 15 ---- .../2022.9.24/register.html" | 17 ---- 4 files changed, 170 deletions(-) delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/Login.java" delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/Register.java" delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/login.html" delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/Login.java" deleted file mode 100644 index 8985de2..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/Login.java" +++ /dev/null @@ -1,51 +0,0 @@ -package com.example.homework; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; -import java.util.Arrays; -import java.util.Map; -import java.util.Set; - -@WebServlet("/login") -public class Login extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - System.out.println("get >>>"); - String paramsStr = req.getQueryString(); - String[] paramsArr = paramsStr.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - - if ("admin".equals(username) && "admin".equals(password)) { - System.out.println("登录成功!"); - } else { - System.out.println("登录失败!"); - } - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - System.out.println("post >>>"); - BufferedReader reader = req.getReader(); - String line; - while ((line = reader.readLine()) != null) { - System.out.println(line); - String[] paramsArr = line.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - - if ("admin".equals(username) && "admin".equals(password)) { - System.out.println("登录成功!"); - } else { - System.out.println("登录失败!"); - } - } - } -} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/Register.java" deleted file mode 100644 index 8b8b781..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/Register.java" +++ /dev/null @@ -1,87 +0,0 @@ -package com.example.homework; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; -import java.util.Arrays; -import java.util.Enumeration; -import java.util.Map; -import java.util.Set; - -@WebServlet("/register") -public class Register extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - System.out.println("get-----------------------"); - String paramsStr = req.getQueryString(); -// System.out.println(paramsStr); - String[] paramsArr = paramsStr.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - String gender = paramsArr[2].split("=")[1]; - String hobby = paramsArr[3].split("=")[1]; - - System.out.println("用户名" + username); - System.out.println("密码" + password); - System.out.println("性别" + gender); - System.out.println("爱好" + hobby); - - -// for (int i = 0; i < paramsStr.length() ; i++){ -// System.out.println(paramsArr[i]); -// String[] paramArr = paramsArr[i].split("="); -// for (int j = 0; j < paramArr.length; j++) { -// System.out.println(paramArr[j]); -// } -// } - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.setCharacterEncoding("utf-8"); - System.out.println("post--------------"); - /*BufferedReader reader = req.getReader(); - String line; - while ((line = reader.readLine()) != null) { - System.out.println(line); - String[] paramsArr = line.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - String gender = paramsArr[2].split("=")[1]; - String hobby = paramsArr[3].split("=")[1]; - - System.out.println("用户名" + username); - System.out.println("密码" + password); - System.out.println("性别" + gender); - System.out.println("爱好" + hobby); - }*/ - -// String username = req.getParameter("username"); -// String password = req.getParameter("password"); -// String gender = req.getParameter("gender"); -// String hobby = req.getParameter("hobby"); -// -// System.out.println(username); -// System.out.println(password); -// System.out.println(gender); -// System.out.println(hobby); - -// Enumeration paramNames = req.getParameterNames(); -// while (paramNames.hasMoreElements()){ -// String name = paramNames.nextElement(); -// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); -// } - - Map paramMap = req.getParameterMap(); - Set keySet = paramMap.keySet(); - for (String key : keySet) { - System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); - } - } -} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/login.html" deleted file mode 100644 index 7993a7f..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/login.html" +++ /dev/null @@ -1,15 +0,0 @@ - - - - - 用户登入 - - - -
-
-
- - - - \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/register.html" deleted file mode 100644 index f5eeff4..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\214\347\253\240/\351\222\237\346\200\235\347\220\246/2022.9.24/register.html" +++ /dev/null @@ -1,17 +0,0 @@ - - - - - 注册 - - -

注册界面

- - 用户名:
- 密码:   
- 性别:   
- 爱好:   
- -
- - \ No newline at end of file -- Gitee From 83c48c6e4bfa89fe322546bde94acda17977c696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 02:28:18 +0000 Subject: [PATCH 351/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 曾艺云 <3262557675@qq.com> --- .../2022.9.24/Login.java" | 51 +++++++++++ .../2022.9.24/Register.java" | 87 +++++++++++++++++++ .../2022.9.24/login.html" | 15 ++++ .../2022.9.24/register.html" | 17 ++++ 4 files changed, 170 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\346\233\276\350\211\272\344\272\221/2022.9.24/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\346\233\276\350\211\272\344\272\221/2022.9.24/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\346\233\276\350\211\272\344\272\221/2022.9.24/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\346\233\276\350\211\272\344\272\221/2022.9.24/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\346\233\276\350\211\272\344\272\221/2022.9.24/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\346\233\276\350\211\272\344\272\221/2022.9.24/Login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\346\233\276\350\211\272\344\272\221/2022.9.24/Login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\346\233\276\350\211\272\344\272\221/2022.9.24/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\346\233\276\350\211\272\344\272\221/2022.9.24/Register.java" new file mode 100644 index 0000000..8b8b781 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\346\233\276\350\211\272\344\272\221/2022.9.24/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\346\233\276\350\211\272\344\272\221/2022.9.24/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\346\233\276\350\211\272\344\272\221/2022.9.24/login.html" new file mode 100644 index 0000000..7993a7f --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\346\233\276\350\211\272\344\272\221/2022.9.24/login.html" @@ -0,0 +1,15 @@ + + + + + 用户登入 + + + +
+
+
+ + + + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\346\233\276\350\211\272\344\272\221/2022.9.24/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\346\233\276\350\211\272\344\272\221/2022.9.24/register.html" new file mode 100644 index 0000000..f5eeff4 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\346\233\276\350\211\272\344\272\221/2022.9.24/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+ + 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file -- Gitee From f5579a15e75d22acd8f0a633f0a3f5bac84bd16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Tue, 13 Dec 2022 02:28:36 +0000 Subject: [PATCH 352/688] =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81=E7=AC=AC?= =?UTF-8?q?=E5=85=AB=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴诗洁 <2716787815@qq.com> --- .../Brand.java" | 95 +++++++++++++++++++ .../ServletDemo1.java" | 37 ++++++++ .../ServletDemo2.java" | 35 +++++++ .../User.java" | 76 +++++++++++++++ .../jstl-foreach.html" | 60 ++++++++++++ .../jstl.html" | 60 ++++++++++++ .../text.html" | 37 ++++++++ 7 files changed, 400 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/ServletDemo1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/ServletDemo2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/jstl-foreach.html" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/jstl.html" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/text.html" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Brand.java" new file mode 100644 index 0000000..8e1940e --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/Brand.java" @@ -0,0 +1,95 @@ +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/ServletDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/ServletDemo1.java" new file mode 100644 index 0000000..5587a1b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/ServletDemo1.java" @@ -0,0 +1,37 @@ +import com.ittest.pojo.Brand; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/ServletDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/ServletDemo2.java" new file mode 100644 index 0000000..be205c3 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/ServletDemo2.java" @@ -0,0 +1,35 @@ +import com.ittest.pojo.Brand; +import com.ittest.pojo.User; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/User.java" new file mode 100644 index 0000000..4b58a46 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/User.java" @@ -0,0 +1,76 @@ +package com.ittest.pojo; + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/jstl-foreach.html" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/jstl-foreach.html" new file mode 100644 index 0000000..ee1c80b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/jstl-foreach.html" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> + <%-- ${i}--%> + <%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/jstl.html" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/jstl.html" new file mode 100644 index 0000000..7eac3d9 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/jstl.html" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> + <%-- ${i}--%> + <%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/text.html" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/text.html" new file mode 100644 index 0000000..27884ff --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/text.html" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% +String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 2924aba26d3fa1da90f6bca7c1a442b75e4c3206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AF=97=E6=B4=81?= <2716787815@qq.com> Date: Tue, 13 Dec 2022 02:29:10 +0000 Subject: [PATCH 353/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=90=B4=E8=AF=97?= =?UTF-8?q?=E6=B4=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\220\264\350\257\227\346\264\201/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\220\264\350\257\227\346\264\201/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 8c1c3d0af5afdfd045d0e8a23283f8504441b342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kn=E4=B8=A8ght9z?= <10602826+kn-ght9z@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:30:27 +0000 Subject: [PATCH 354/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=AA=86=E7=A5=BA?= =?UTF-8?q?=E7=A5=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\252\206\347\245\272\347\245\245/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From bcd90957feadab7566d37f58a8744960cbd8147b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=95=8F=E5=BF=97?= <10602832+lin-minzhi@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:30:50 +0000 Subject: [PATCH 355/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E6=95=8F?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\346\225\217\345\277\227/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 52889bc755071e1924cef418787bc18cf830d1e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 02:31:53 +0000 Subject: [PATCH 356/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9B=BE=E8=89=BA?= =?UTF-8?q?=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\233\276\350\211\272\344\272\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 5e6de57598dc8e04ffaf0c987564c5599457c843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 02:33:08 +0000 Subject: [PATCH 357/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 曾艺云 <3262557675@qq.com> --- .../FailServlet.java" | 21 ++++++++++ .../LoginServlet.java" | 40 +++++++++++++++++++ .../SuccessServlet.java" | 21 ++++++++++ .../loginservlet.html" | 14 +++++++ 4 files changed, 96 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\211\347\253\240/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\211\347\253\240/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\211\347\253\240/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\211\347\253\240/loginservlet.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\211\347\253\240/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\211\347\253\240/FailServlet.java" new file mode 100644 index 0000000..4b76b8e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\211\347\253\240/FailServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\211\347\253\240/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\211\347\253\240/LoginServlet.java" new file mode 100644 index 0000000..74f00ac --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\211\347\253\240/LoginServlet.java" @@ -0,0 +1,40 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\211\347\253\240/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\211\347\253\240/SuccessServlet.java" new file mode 100644 index 0000000..cfaf017 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\211\347\253\240/SuccessServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\211\347\253\240/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\211\347\253\240/loginservlet.html" new file mode 100644 index 0000000..f23af1f --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\211\347\253\240/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + -- Gitee From 36bf40a27ef18113318aa52648bb7eccf9b66777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 02:33:28 +0000 Subject: [PATCH 358/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9B=BE=E8=89=BA?= =?UTF-8?q?=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\233\276\350\211\272\344\272\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From bb099f87c53be3cf8fcbb23055a028209ba2efaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 02:35:15 +0000 Subject: [PATCH 359/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 曾艺云 <3262557675@qq.com> --- .../CookieDemo1.java" | 27 +++++++ .../CookieDemo2.java" | 31 ++++++++ .../CookieTest.java" | 70 +++++++++++++++++++ .../Books.html" | 48 +++++++++++++ .../Comfirn.html" | 48 +++++++++++++ .../Step1.java" | 27 +++++++ .../Step2.java" | 36 ++++++++++ .../address.html" | 48 +++++++++++++ 8 files changed, 335 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieTest.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Comfirn.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/address.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo1.java" new file mode 100644 index 0000000..6522565 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo1.java" @@ -0,0 +1,27 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo2.java" new file mode 100644 index 0000000..d21becb --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieDemo2.java" @@ -0,0 +1,31 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo2") +public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieTest.java" new file mode 100644 index 0000000..360125e --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2321/CookieTest.java" @@ -0,0 +1,70 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Books.html" new file mode 100644 index 0000000..4674751 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Books.html" @@ -0,0 +1,48 @@ + + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Comfirn.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Comfirn.html" new file mode 100644 index 0000000..4674751 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Comfirn.html" @@ -0,0 +1,48 @@ + + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step1.java" new file mode 100644 index 0000000..3b2b9bb --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step1.java" @@ -0,0 +1,27 @@ +package JavaWeb.Demo42; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step2.java" new file mode 100644 index 0000000..b750afd --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/Step2.java" @@ -0,0 +1,36 @@ +package JavaWeb.Demo42; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/address.html" new file mode 100644 index 0000000..4674751 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\2322/address.html" @@ -0,0 +1,48 @@ + + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + -- Gitee From e3775bec6634ea0656f7776f91f3f27aa8dab5a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 02:35:33 +0000 Subject: [PATCH 360/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9B=BE=E8=89=BA?= =?UTF-8?q?=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\233\276\350\211\272\344\272\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 40597ec341f103d0b8bf48320c9795f1592ad92e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 02:36:12 +0000 Subject: [PATCH 361/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 曾艺云 <3262557675@qq.com> --- .../test.jsp" | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\224\347\253\240/test.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\224\347\253\240/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\224\347\253\240/test.jsp" new file mode 100644 index 0000000..b6e8170 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\272\224\347\253\240/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 夏天 + Date: 2022/12/12 + Time: 22:30 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From ffd9afb5980c3378ade5ed520b34326ef0650b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E7=AB=B9=E5=AE=A2?= <10602822+ink-bamboo-guest@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:36:18 +0000 Subject: [PATCH 362/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 墨竹客 <10602822+ink-bamboo-guest@user.noreply.gitee.com> --- .../\346\236\227\344\277\212/Brand.java" | 99 +++++++++++++++++++ .../ServletDemo01.java" | 35 +++++++ .../ServletDemo02.java" | 32 ++++++ .../\346\236\227\344\277\212/User.java" | 74 ++++++++++++++ .../\346\236\227\344\277\212/jstl.jsp" | 60 +++++++++++ .../\346\236\227\344\277\212/jstlforeach.jsp" | 60 +++++++++++ .../\346\236\227\344\277\212/test.jsp" | 37 +++++++ 7 files changed, 397 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/ServletDemo01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/ServletDemo02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Brand.java" new file mode 100644 index 0000000..c4f28f0 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/Brand.java" @@ -0,0 +1,99 @@ +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/ServletDemo01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/ServletDemo01.java" new file mode 100644 index 0000000..883981b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/ServletDemo01.java" @@ -0,0 +1,35 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/ServletDemo02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/ServletDemo02.java" new file mode 100644 index 0000000..4eb0408 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/ServletDemo02.java" @@ -0,0 +1,32 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/User.java" new file mode 100644 index 0000000..e3c34d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/User.java" @@ -0,0 +1,74 @@ +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/jstl.jsp" new file mode 100644 index 0000000..1eb2079 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/jstl.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/jstlforeach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/jstlforeach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/test.jsp" new file mode 100644 index 0000000..8977c06 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 1f8c87c07d2525c307aa3276af713699bb68bec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 02:36:24 +0000 Subject: [PATCH 363/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9B=BE=E8=89=BA?= =?UTF-8?q?=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\233\276\350\211\272\344\272\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From b102f8b7a82e8156ea122ce97e152c303881f835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 02:36:52 +0000 Subject: [PATCH 364/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 曾艺云 <3262557675@qq.com> --- .../demo.html" | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\255\347\253\240/demo.html" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\255\347\253\240/demo.html" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\255\347\253\240/demo.html" new file mode 100644 index 0000000..6ed25c7 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\255\347\253\240/demo.html" @@ -0,0 +1,35 @@ + +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- +Created by IntelliJ IDEA. +User: Administrator +Date: 2022/11/12 +Time: 21:27 +To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% +List user=new ArrayList(); +user.add("1"); +user.add("2"); +user.add("3"); +request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From f5630396daed38297c06e7c186e355422809eae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E7=AB=B9=E5=AE=A2?= <10602822+ink-bamboo-guest@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:37:00 +0000 Subject: [PATCH 365/688] commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 墨竹客 <10602822+ink-bamboo-guest@user.noreply.gitee.com> --- .../TwoDoimensional.java" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/TwoDoimensional.java" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/TwoDoimensional.java" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/TwoDoimensional.java" new file mode 100644 index 0000000..bb41efd --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\344\277\212/TwoDoimensional.java" @@ -0,0 +1,34 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][]array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + Title + + +

二维数组

+ + + + + + + <% + for (int i = 0; i + + <% + for (int j = 0; j + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%=array[i][j]%>
+ + \ No newline at end of file -- Gitee From 89c88b080cc8254393c336febaddd4e3d15cdee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kn=E4=B8=A8ght9z?= <10602826+kn-ght9z@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:37:28 +0000 Subject: [PATCH 366/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kn丨ght9z <10602826+kn-ght9z@user.noreply.gitee.com> --- .../addressServlet.java" | 34 +++++++++ .../confirm.jsp" | 73 +++++++++++++++++++ .../shopcarServlet.java" | 46 ++++++++++++ .../step1.html" | 35 +++++++++ .../step2.html" | 44 +++++++++++ 5 files changed, 232 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/addressServlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/confirm.jsp" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/shopcarServlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/step1.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/step2.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/addressServlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/addressServlet.java" new file mode 100644 index 0000000..3760bde --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/addressServlet.java" @@ -0,0 +1,34 @@ +package com.web; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.net.URLEncoder; + +@WebServlet("/addressServlet") +public class addressServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("UTF-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = new String(req.getParameter("address").getBytes("ISO-8859-1"),"UTF-8"); + String cardcheck = req.getParameter("cardcheck"); + String cardnumber = req.getParameter("cardnumber"); + HttpSession session = req.getSession(); + session.setAttribute("name",name); + session.setAttribute("address",address); + session.setAttribute("cardcheck",cardcheck); + session.setAttribute("cardnumber",cardnumber); + resp.sendRedirect("/webWork/step3.jsp"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doGet(req,resp); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/confirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/confirm.jsp" new file mode 100644 index 0000000..84934c0 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/confirm.jsp" @@ -0,0 +1,73 @@ +<%-- + Created by IntelliJ IDEA. + User: ԺKZH + Date: 2022/10/31 + Time: 19.30 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" pageEncoding="gb2312"%> +<%@ page contentType="text/html;charset=gb2312"%> +<%@ page import="java.net.URLEncoder" %> +<%@ page import="java.net.URLDecoder" %> + + + + ȷ + + +
+ + + <% + request.setCharacterEncoding("utf-8"); + %> + + + <% +// response.setContentType("test/http;charset=UTF-8"); + HttpSession session1 = request.getSession(); + String name = String.valueOf(session1.getAttribute("name")); + String javacheck = (String) session1.getAttribute("javacheck"); + String Oraclecheck = (String) session1.getAttribute("Oraclecheck"); + String Strutscheck = (String) session1.getAttribute("Strutscheck"); + String address = String.valueOf(session1.getAttribute("address")); + String cardcheck = String.valueOf(session1.getAttribute("cardcheck")); + String cardnumber = String.valueOf(session1.getAttribute("cardnumber")); + + %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
˿<%out.write(name);%>
ַ<%URLDecoder.decode(address,"UTF-8");%> + <%out.print(address);%>
Ϣ
ÿ<%out.write(cardcheck);%>
<%out.write(cardnumber);%>
Ŀ
<%out.write(javacheck);%>
<%out.print(Oraclecheck);%>
<%out.print(Strutscheck);%>
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/shopcarServlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/shopcarServlet.java" new file mode 100644 index 0000000..99056ca --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/shopcarServlet.java" @@ -0,0 +1,46 @@ +package com.web; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/shopcarServlet") +public class shopcarServlet extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=UTF-8"); + String javacheck = req.getParameter("javacheck"); + String Oraclecheck = req.getParameter("Oraclecheck"); + String Strutscheck = req.getParameter("Strutscheck"); +// if ("java".equals(javacheck)){ +// Cookie check1 = new Cookie("check1", javacheck); +// check1.setMaxAge(60*60*24*7); +// resp.addCookie(check1); +// } +// if ("Oracle".equals(Oraclecheck)){ +// Cookie check2 = new Cookie("check2", Oraclecheck); +// check2.setMaxAge(60*60*24*7); +// resp.addCookie(check2); +// } +// if ("Struts".equals(Strutscheck)){ +// Cookie check3 = new Cookie("check3", Strutscheck); +// check3.setMaxAge(60*60*24*7); +// resp.addCookie(check3); +// } + HttpSession session = req.getSession(); + session.setAttribute("javacheck",javacheck); + session.setAttribute("Oraclecheck",Oraclecheck); + session.setAttribute("Strutscheck",Strutscheck); + String contextPath = req.getContextPath(); + resp.sendRedirect("/webWork/step2.html"); +// req.getRequestDispatcher("/step2.html").forward(req,resp); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/step1.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/step1.html" new file mode 100644 index 0000000..20734e2 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/step1.html" @@ -0,0 +1,35 @@ + + + + + + + +
+ +

Step1:ѡҪ鼮

+ + + + + + + + + + + + + + + + + + + + + +
Java

Oraclecheck

Strutscheck

+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/step2.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/step2.html" new file mode 100644 index 0000000..d38d6fa --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/step2.html" @@ -0,0 +1,44 @@ + + + + + Ϣ + + +

͵ַÿϢ

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Ϣ
͵ַ
ÿϢ
Master
Visa
+
+ + \ No newline at end of file -- Gitee From abf1f55715e0ff41140762f58c8b46d983a565f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 02:37:46 +0000 Subject: [PATCH 367/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9B=BE=E8=89=BA?= =?UTF-8?q?=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\233\276\350\211\272\344\272\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 177eeba3ac81a949dff6c9c5b5f2bec8956b8076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 02:38:08 +0000 Subject: [PATCH 368/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 曾艺云 <3262557675@qq.com> --- .../user1.java" | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\203\347\253\240/user1.java" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\203\347\253\240/user1.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\203\347\253\240/user1.java" new file mode 100644 index 0000000..606ff39 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\344\270\203\347\253\240/user1.java" @@ -0,0 +1,42 @@ +package lxy; + +public class user1 {public class User { + private String name; + private int age; + private String address; + + public User() { + } + + public User(String name, int age, String address) { + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } +} + +} -- Gitee From 4f58b17d0a218d639fd78816b407b4500586a60b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kn=E4=B8=A8ght9z?= <10602826+kn-ght9z@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:38:10 +0000 Subject: [PATCH 369/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=AA=86=E7=A5=BA?= =?UTF-8?q?=E7=A5=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\252\206\347\245\272\347\245\245/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From a8c96b685a848771516ab2288da604cd2cdd1dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 02:38:23 +0000 Subject: [PATCH 370/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9B=BE=E8=89=BA?= =?UTF-8?q?=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\233\276\350\211\272\344\272\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 6a40e88c7d305ac783a79cf2d4eb0770bfedfa3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E8=89=BA=E4=BA=91?= <3262557675@qq.com> Date: Tue, 13 Dec 2022 02:38:47 +0000 Subject: [PATCH 371/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 曾艺云 <3262557675@qq.com> --- .../Brand.java" | 101 ++++++++++++++++++ .../ServletDemo1.java" | 39 +++++++ .../ServletDemo2.java" | 37 +++++++ .../User.java" | 76 +++++++++++++ .../jstl-foreach.jsp" | 60 +++++++++++ .../jstl.jsp" | 67 ++++++++++++ .../test.jsp" | 44 ++++++++ 7 files changed, 424 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/ServletDemo1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/ServletDemo2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/jstl-foreach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/Brand.java" new file mode 100644 index 0000000..6ae9f9e --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/Brand.java" @@ -0,0 +1,101 @@ +package com.ittest.pojo; + +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/ServletDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/ServletDemo1.java" new file mode 100644 index 0000000..379d06f --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/ServletDemo1.java" @@ -0,0 +1,39 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/ServletDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/ServletDemo2.java" new file mode 100644 index 0000000..0edc5d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/ServletDemo2.java" @@ -0,0 +1,37 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; +import com.ittest.pojo.User; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/User.java" new file mode 100644 index 0000000..8ea795d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/User.java" @@ -0,0 +1,76 @@ +package com.ittest.pojo; + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/jstl-foreach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/jstl-foreach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/jstl-foreach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/jstl.jsp" new file mode 100644 index 0000000..9e324af --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/jstl.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/6 + Time: 20:20 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/test.jsp" new file mode 100644 index 0000000..7795ee3 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\233\276\350\211\272\344\272\221/\347\254\254\345\205\253\347\253\240/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From 8b3589a41a6feab1e0398199c6f9efddf04dd97a Mon Sep 17 00:00:00 2001 From: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:46:26 +0000 Subject: [PATCH 372/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=88=98=E6=AC=A3?= =?UTF-8?q?=E9=BE=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\210\230\346\254\243\351\276\231/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From d502c2c0f261f325430c96d2c843815ed60fdd4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Tue, 13 Dec 2022 02:47:44 +0000 Subject: [PATCH 373/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\254\254\344\270\200\346\254\241/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 39f39a9554a791908c101cbf928f8ba5f4c28af2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kn=E4=B8=A8ght9z?= <10602826+kn-ght9z@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:51:02 +0000 Subject: [PATCH 374/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kn丨ght9z <10602826+kn-ght9z@user.noreply.gitee.com> --- .../test.jsp" | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/test.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/test.jsp" new file mode 100644 index 0000000..608fda1 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: ԺKZH + Date: 2022/12/7 + Time: 20:31 + To change this template use File | Settings | File Templates. + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"һ", "", ""}, {"", "", ""}, {"", "", ""}}; + %> + + + + + Java άʾ + + +

Java ά

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
һڶ
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From f4f2fe93a6286c8e855f403cd9f17cac3aa9f29d Mon Sep 17 00:00:00 2001 From: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:51:08 +0000 Subject: [PATCH 375/688] aa Signed-off-by: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> --- .../TwoDoimensional.java" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/TwoDoimensional.java" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/TwoDoimensional.java" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/TwoDoimensional.java" new file mode 100644 index 0000000..bb41efd --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/TwoDoimensional.java" @@ -0,0 +1,34 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][]array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + Title + + +

二维数组

+ + + + + + + <% + for (int i = 0; i + + <% + for (int j = 0; j + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%=array[i][j]%>
+ + \ No newline at end of file -- Gitee From 3fd15b0b9f98e39b056b2f0ecf36287baf365d42 Mon Sep 17 00:00:00 2001 From: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:52:19 +0000 Subject: [PATCH 376/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=88=98=E6=AC=A3?= =?UTF-8?q?=E9=BE=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\210\230\346\254\243\351\276\231/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 9f2412eb772107c1bb891b87f4e994fd8189b83e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kn=E4=B8=A8ght9z?= <10602826+kn-ght9z@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:52:48 +0000 Subject: [PATCH 377/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=AA=86=E7=A5=BA?= =?UTF-8?q?=E7=A5=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\252\206\347\245\272\347\245\245/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 3236a9cee63283f46e4bc69296b914392361e1f9 Mon Sep 17 00:00:00 2001 From: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:52:50 +0000 Subject: [PATCH 378/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=88=98=E6=AC=A3?= =?UTF-8?q?=E9=BE=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\210\230\346\254\243\351\276\231/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From dc09cb100d77ff5188ae40d5288d8bad315d0b16 Mon Sep 17 00:00:00 2001 From: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:53:55 +0000 Subject: [PATCH 379/688] aa Signed-off-by: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> --- .../Fail.java" | 22 ++++++++++++++++ .../Fail02.java" | 22 ++++++++++++++++ .../Servlet.java" | 25 ++++++++++++++++++ .../Servlet02.java" | 26 +++++++++++++++++++ .../Success.java" | 21 +++++++++++++++ .../Success02.java" | 22 ++++++++++++++++ .../index.jsp" | 9 +++++++ .../login.html" | 14 ++++++++++ .../login2.html" | 14 ++++++++++ 9 files changed, 175 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Fail.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Fail02.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Servlet.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Servlet02.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Success.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Success02.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/index.jsp" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/login2.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Fail.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Fail.java" new file mode 100644 index 0000000..adde74d --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Fail.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail01") +public class Fail01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Fail02.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Fail02.java" new file mode 100644 index 0000000..1df63b6 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Fail02.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail02") +public class Fail02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Servlet.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Servlet.java" new file mode 100644 index 0000000..cedac50 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Servlet.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/s1") +public class Servlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username=req.getParameter("username"); + String password=req.getParameter("password"); + if ("admin".equals(username)&&"admin".equals(password)) { + req.getRequestDispatcher("/Success01").forward(req,resp); + } + else { + req.getRequestDispatcher("/Fail01").forward(req,resp); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Servlet02.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Servlet02.java" new file mode 100644 index 0000000..9ac18b8 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Servlet02.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/s2") +public class Servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String uname=req.getParameter("uname"); + String password=req.getParameter("password"); + if ("admin".equals(uname)&&"admin".equals(password)) { + resp.sendRedirect("Success02"); + } + else { + resp.sendRedirect("Fail02"); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Success.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Success.java" new file mode 100644 index 0000000..8a851be --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Success.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Success01") +public class Success01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Success02.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Success02.java" new file mode 100644 index 0000000..605e6ba --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Success02.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Success02") +public class Success02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/index.jsp" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/index.jsp" new file mode 100644 index 0000000..0c2c42d --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/index.jsp" @@ -0,0 +1,9 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + $END$ + + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/login.html" new file mode 100644 index 0000000..c19aa58 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/login.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/login2.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/login2.html" new file mode 100644 index 0000000..3a32640 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/login2.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file -- Gitee From 0d5640989e82f50abc2554d8038eb38a363fa959 Mon Sep 17 00:00:00 2001 From: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:54:18 +0000 Subject: [PATCH 380/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=88=98=E6=AC=A3?= =?UTF-8?q?=E9=BE=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\210\230\346\254\243\351\276\231/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 8a36067b65655979f66d39ea58ac0163ffc057b0 Mon Sep 17 00:00:00 2001 From: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:54:41 +0000 Subject: [PATCH 381/688] aa Signed-off-by: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> --- .../DownloadServlet.java" | 45 +++++++++++++ .../LoginCheckServlet.java" | 44 ++++++++++++ .../ValidateCodeServlet.java" | 67 +++++++++++++++++++ .../download.html" | 11 +++ .../login.html" | 21 ++++++ 5 files changed, 188 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/DownloadServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/LoginCheckServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/ValidateCodeServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/download.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/login.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/DownloadServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/DownloadServlet.java" new file mode 100644 index 0000000..c4bdcef --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/DownloadServlet.java" @@ -0,0 +1,45 @@ +import javax.activation.MimeType; +import javax.servlet.ServletContext; +import javax.servlet.ServletException; +import javax.servlet.ServletInputStream; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/DownloadServlet1") +public class DownloadServlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取请求参数,文件名 + String filename=req.getParameter("filename"); + //1.使用字节流加载文件进内存 + //1.1找到服务器路径 + ServletContext servletContext=this.getServletContext(); + String realPath = servletContext.getRealPath("/img/"+filename); + //1.2用字节流关联 + ServletInputStream fis=req.getInputStream(); + + //2.设置response响应头 + //2.1设置响应头:content-type= ; + String mimeType = servletContext.getMimeType(filename); + resp.setHeader("content-type",mimeType); + //2.2设置响应头打开方式:content-disposition + resp.setHeader("content-disposition","attachment;filename="+filename); + //将输入流的数据写到输出流 + ServletOutputStream sos=resp.getOutputStream(); + byte [] buff=new byte[1024*8]; + int len=0; + while ((len=fis.read(buff))!=-1){ + sos.write(buff,0,len); + } + fis.close(); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/LoginCheckServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/LoginCheckServlet.java" new file mode 100644 index 0000000..7f16049 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/LoginCheckServlet.java" @@ -0,0 +1,44 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.nio.charset.StandardCharsets; + +@WebServlet("/LoginCheckServlet") +public class LoginCheckServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //接收账号,密码,验证码 + String username=req.getParameter("username"); + String password=req.getParameter("password"); + String userCode=req.getParameter("userCode"); + //从session中取出正确验证码 + HttpSession session=req.getSession(); + String vCode= (String) session.getAttribute("vCode"); + //将用户输入的验证码和从session中的正确验证码进行对比 + resp.setContentType("text/html;charset=UTF-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + if (userCode.equals(vCode)) { + if ("admin".equals(username)&&"admin".equals(password)){ + + outputStream.write("登陆成功".getBytes("UTF-8")); + }else { + + outputStream.write("登陆失败,密码错误".getBytes("UTF-8")); + } + }else { + + outputStream.write("登陆失败,验证码错误".getBytes("UTF-8")); + } + + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/ValidateCodeServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/ValidateCodeServlet.java" new file mode 100644 index 0000000..076a597 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/ValidateCodeServlet.java" @@ -0,0 +1,67 @@ +import javax.imageio.ImageIO; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import javax.xml.ws.spi.http.HttpContext; +import java.awt.*; +import java.awt.image.BufferedImage; +import java.io.IOException; +import java.util.Random; +@WebServlet("/ValidateCodeServlet") +public class ValidateCodeServlet extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建一张图片 + int width=300;//验证码宽度 + int height=90;//验证码高度 + BufferedImage image=new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); + //绘制图片 + //从图片对象中获取绘制图片的“笔” + Graphics pen=image.createGraphics(); + //绘制背景 + pen.setColor(getRandomColor()); + //fillRect:绘制实心矩形 + pen.fillRect(0,0,width,height); + //绘制验证码字符串 + int letterNum=4;//验证码图片上的字符的个数 + int space=20;//验证码图片上两个字母之间的空隙 + int letterWidth=(width-(letterNum+1)*space)/letterNum;//计算每个字母占据的宽度 + //for循环每循环一次,绘制一个字母(小写字母的ASCII码97-122) + String vCode=""; + Random random=new Random(); + for(int i=0;i + + + + Title + +图片
+视频 + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/login.html" new file mode 100644 index 0000000..fbc1dea --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/login.html" @@ -0,0 +1,21 @@ + + + + + 用户登录 + +
+ 账号:
+ 密码:
+ 验证码: +
+
+
+ + + \ No newline at end of file -- Gitee From 8cab72e0c9b1ad6f0d17002db392cb4be52b9c87 Mon Sep 17 00:00:00 2001 From: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:54:57 +0000 Subject: [PATCH 382/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=88=98=E6=AC=A3?= =?UTF-8?q?=E9=BE=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\210\230\346\254\243\351\276\231/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From f4b48de529520e170d467fb76436bf1a9278382d Mon Sep 17 00:00:00 2001 From: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:55:37 +0000 Subject: [PATCH 383/688] aa Signed-off-by: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> --- .../CookieDemo1.java" | 24 +++++++ .../CookieDemo2.java" | 28 ++++++++ .../CookieTest.java" | 68 +++++++++++++++++++ .../Numbers.jsp" | 56 +++++++++++++++ .../Step01.java" | 25 +++++++ .../Step02.java" | 33 +++++++++ .../address.html" | 48 +++++++++++++ .../books.html" | 40 +++++++++++ .../confirm.html" | 42 ++++++++++++ 9 files changed, 364 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/CookieTest.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Numbers.jsp" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Step01.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Step02.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/confirm.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/CookieDemo1.java" new file mode 100644 index 0000000..ccdf93a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/CookieDemo1.java" @@ -0,0 +1,24 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/CookieDemo2.java" new file mode 100644 index 0000000..649287f --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/CookieDemo2.java" @@ -0,0 +1,28 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo2") +public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/CookieTest.java" new file mode 100644 index 0000000..55242e4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/CookieTest.java" @@ -0,0 +1,68 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Numbers.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Numbers.jsp" new file mode 100644 index 0000000..2895bc8 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Numbers.jsp" @@ -0,0 +1,56 @@ +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/5 + Time: 16:54 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +<% + String [][]a={{"一"},{"二"},{"三"}}; + String [][]b={{"四"},{"五"},{"六"}}; + String [][]c={{"七"},{"八"},{"九"}}; +// String a="一"; +// String b="二"; +// String c="三"; +// String d="四"; +// String e="五"; +// String f="六"; +// String g="七"; +// String h="八"; +// String i="九"; +%> +

JSP数组内容

+ + + + + + + + + + + + + + + + + +
<%out.print(Arrays.toString(a[0]));%><%out.print(Arrays.toString(a[1]));%><%out.print(Arrays.toString(a[2]));%>
<%out.print(Arrays.toString(b[0]));%><%out.print(Arrays.toString(b[1]));%><%out.print(Arrays.toString(b[2]));%>
<%out.print(Arrays.toString(c[0]));%><%out.print(Arrays.toString(c[1]));%><%out.print(Arrays.toString(c[2]));%>
+ + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Step01.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Step01.java" new file mode 100644 index 0000000..ce548ff --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Step01.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Step02.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Step02.java" new file mode 100644 index 0000000..56af95b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Step02.java" @@ -0,0 +1,33 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/address.html" new file mode 100644 index 0000000..5a876d9 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/address.html" @@ -0,0 +1,48 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/books.html" new file mode 100644 index 0000000..ff727fa --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/books.html" @@ -0,0 +1,40 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + +

Step1选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/confirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/confirm.html" new file mode 100644 index 0000000..ed834df --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/confirm.html" @@ -0,0 +1,42 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print(session.getAttribute("name"));%>
地址:<%out.print(session.getAttribute("address"));%>
付款信息
信用卡类型<%out.print(Arrays.toString((Object[]) session.getAttribute("types")));%>
卡号:<%out.print(session.getAttribute("username"));%>
订货项目<% out.print(Arrays.toString((Object[]) session.getAttribute("books")));%>
+ + + \ No newline at end of file -- Gitee From 41f050bfb677e23b542b0dc9e506da979a3fd7ba Mon Sep 17 00:00:00 2001 From: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:56:10 +0000 Subject: [PATCH 384/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=88=98=E6=AC=A3?= =?UTF-8?q?=E9=BE=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\210\230\346\254\243\351\276\231/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From c208c3f7b361ffb96915aebb05feab929a733239 Mon Sep 17 00:00:00 2001 From: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:56:34 +0000 Subject: [PATCH 385/688] aa Signed-off-by: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> --- .../ShowTable.java" | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/ShowTable.java" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/ShowTable.java" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/ShowTable.java" new file mode 100644 index 0000000..63362ba --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/ShowTable.java" @@ -0,0 +1,28 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("张三"); + user.add("李四"); + user.add("老六"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From d14d338158247c6a7e68c87402f2c1d7df34b5bf Mon Sep 17 00:00:00 2001 From: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:56:50 +0000 Subject: [PATCH 386/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=88=98=E6=AC=A3?= =?UTF-8?q?=E9=BE=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\210\230\346\254\243\351\276\231/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From b295eec0e42e2e895774cf0d608e43396467bb61 Mon Sep 17 00:00:00 2001 From: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:57:09 +0000 Subject: [PATCH 387/688] aa Signed-off-by: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> --- .../User.java" | 40 +++++++++++++++++++ .../test.jsp" | 39 ++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/User.java" new file mode 100644 index 0000000..b3e6146 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/User.java" @@ -0,0 +1,40 @@ +public class user { + private String name; + private int age; + private String address; + + public user(){ + + } + + public user(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getAddress() { + return address; + } + + public void setName(String name) { + this.name = name; + } + + public void setAge(int age) { + this.age = age; + } + + public void setAddress(String address) { + this.address = address; + } + +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/test.jsp" new file mode 100644 index 0000000..3998e4a --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/test.jsp" @@ -0,0 +1,39 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="com.example.Homework7.user" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new user("张三",22,"福建")); + list.add(new user("李四",23,"江西")); + list.add(new user("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.ardress} + +
+ + \ No newline at end of file -- Gitee From 5b8bd6e1bd9f9ebb851f15c74e358e737258fd58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kn=E4=B8=A8ght9z?= <10602826+kn-ght9z@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:57:38 +0000 Subject: [PATCH 388/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kn丨ght9z <10602826+kn-ght9z@user.noreply.gitee.com> --- .../test.jsp" | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/test.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/test.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/test.jsp" new file mode 100644 index 0000000..7293035 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/test.jsp" @@ -0,0 +1,36 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %><%-- +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: ԺKZH + Date: 2022/12/12 + Time: 10:50 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

û

+<% + List user=new ArrayList(); + user.add(""); + user.add(""); + user.add(""); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From a5b06d9452ccff06c64ded98338a1c0a7a106424 Mon Sep 17 00:00:00 2001 From: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:57:58 +0000 Subject: [PATCH 389/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=88=98=E6=AC=A3?= =?UTF-8?q?=E9=BE=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\210\230\346\254\243\351\276\231/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 8c86238f74ba782c9d3db2695c06c0ef4801c939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kn=E4=B8=A8ght9z?= <10602826+kn-ght9z@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:58:14 +0000 Subject: [PATCH 390/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=AA=86=E7=A5=BA?= =?UTF-8?q?=E7=A5=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\252\206\347\245\272\347\245\245/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 71f8497936666a3f865af443f02abf70d2a61aa8 Mon Sep 17 00:00:00 2001 From: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 02:58:16 +0000 Subject: [PATCH 391/688] aa Signed-off-by: JaytommorowJ <10602810+liu-xinlong6@user.noreply.gitee.com> --- .../Brand.java" | 99 +++++++++++++++++++ .../ServletDemo01.java" | 35 +++++++ .../ServletDemo02.java" | 32 ++++++ .../User.java" | 74 ++++++++++++++ .../jstl.jsp" | 60 +++++++++++ .../jstlforeach.jsp" | 60 +++++++++++ .../test.jsp" | 37 +++++++ 7 files changed, 397 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/ServletDemo01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/ServletDemo02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Brand.java" new file mode 100644 index 0000000..c4f28f0 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/Brand.java" @@ -0,0 +1,99 @@ +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/ServletDemo01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/ServletDemo01.java" new file mode 100644 index 0000000..883981b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/ServletDemo01.java" @@ -0,0 +1,35 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/ServletDemo02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/ServletDemo02.java" new file mode 100644 index 0000000..4eb0408 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/ServletDemo02.java" @@ -0,0 +1,32 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/User.java" new file mode 100644 index 0000000..e3c34d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/User.java" @@ -0,0 +1,74 @@ +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/jstl.jsp" new file mode 100644 index 0000000..1eb2079 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/jstl.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/jstlforeach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/jstlforeach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/test.jsp" new file mode 100644 index 0000000..8977c06 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\346\254\243\351\276\231/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From ce866098669c9e7128f80a661d5b8e7f8062ffaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kn=E4=B8=A8ght9z?= <10602826+kn-ght9z@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 03:01:38 +0000 Subject: [PATCH 392/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kn丨ght9z <10602826+kn-ght9z@user.noreply.gitee.com> --- .../User.java" | 40 ++++++++++++++++ .../test.jsp" | 47 +++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/User.java" new file mode 100644 index 0000000..b3e6146 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/User.java" @@ -0,0 +1,40 @@ +public class user { + private String name; + private int age; + private String address; + + public user(){ + + } + + public user(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getAddress() { + return address; + } + + public void setName(String name) { + this.name = name; + } + + public void setAge(int age) { + this.age = age; + } + + public void setAddress(String address) { + this.address = address; + } + +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/test.jsp" new file mode 100644 index 0000000..51109ec --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/test.jsp" @@ -0,0 +1,47 @@ +<%@ page import="week12.User" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %> +<%-- + Created by IntelliJ IDEA. + week12.User: ԺKZH + Date: 2022/11/16 + Time: 20:36 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new User("",22,"")); + list.add(new User("",23,"")); + list.add(new User("",25,"㽭")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
ַ
${s.count}${user.name}${user.age}${user.address} + +
+ + + \ No newline at end of file -- Gitee From 884ada9bb03f52f5e45172af35e7e1af6d000456 Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 03:06:54 +0000 Subject: [PATCH 393/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=AC=AC?= =?UTF-8?q?=E4=BA=94=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../erwei.jsp" | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/erwei.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/erwei.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/erwei.jsp" deleted file mode 100644 index f11a7be..0000000 --- "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/erwei.jsp" +++ /dev/null @@ -1,34 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<% - String[][]array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; -%> - - - Title - - -

二维数组

- - - - - - - <% - for (int i = 0; i - - <% - for (int j = 0; j - - <% - } - %> - - <% - } - %> -
第一列第二列第三列
<%=array[i][j]%>
- - -- Gitee From 063eb98554d9b49443a48f2c90492a3b068a2abf Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 03:07:21 +0000 Subject: [PATCH 394/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zald <10602807+zald@user.noreply.gitee.com> --- .../erwei.jsp" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/erwei.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/erwei.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/erwei.jsp" new file mode 100644 index 0000000..f11a7be --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/erwei.jsp" @@ -0,0 +1,34 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][]array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + Title + + +

二维数组

+ + + + + + + <% + for (int i = 0; i + + <% + for (int j = 0; j + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%=array[i][j]%>
+ + -- Gitee From 95009192e856c62249d6c72b080130a6d285ae74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 13 Dec 2022 03:08:02 +0000 Subject: [PATCH 395/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9E=97?= =?UTF-8?q?=E7=A7=8B=E5=8D=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 .../FailServlet.java" | 21 ------ .../LoginServlet.java" | 40 ----------- .../SuccessServlet.java" | 21 ------ .../loginservlet.html" | 14 ---- .../DownloadServlet.java" | 45 ------------- .../LoginCheckServlet.java" | 44 ------------ .../ValidateCodeServlet.java" | 67 ------------------- .../download.html" | 11 --- .../login.html" | 21 ------ .../Fail.java" | 22 ------ .../Fail02.java" | 22 ------ .../Servlet.java" | 25 ------- .../Servlet02.java" | 26 ------- .../Success.java" | 21 ------ .../Success02.java" | 22 ------ .../index.jsp" | 9 --- .../login.html" | 14 ---- .../login2.html" | 14 ---- 19 files changed, 459 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/LoginServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/loginservlet.html" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/download.html" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" deleted file mode 100644 index e69de29..0000000 diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" deleted file mode 100644 index 4b76b8e..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" +++ /dev/null @@ -1,21 +0,0 @@ -package com.example.homework; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/FailServlet") -public class FailServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.getWriter().write("登录失败,用户名或密码错误!"); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/LoginServlet.java" deleted file mode 100644 index 74f00ac..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/LoginServlet.java" +++ /dev/null @@ -1,40 +0,0 @@ -package com.example.homework; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; - -@WebServlet("/loginservlet") -public class LoginServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.setCharacterEncoding("utf-8"); - BufferedReader reader = req.getReader(); - String line; - while ((line = reader.readLine()) != null) { - System.out.println(line); - String[] paramsArr = line.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - - if ("admin".equals(username) && "admin".equals(password)) { - System.out.println("登录成功!"); - req.getRequestDispatcher("/SuccessServlet").forward(req,resp); - } else { - System.out.println("登录失败!"); - req.getRequestDispatcher("/FailServlet").forward(req,resp); - } - } - } - - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" deleted file mode 100644 index cfaf017..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" +++ /dev/null @@ -1,21 +0,0 @@ -package com.example.homework; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/SuccessServlet") -public class SuccessServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.getWriter().write("登录成功! admin欢迎您!"); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/loginservlet.html" deleted file mode 100644 index d4da7fc..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/loginservlet.html" +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Title - - -
-
-
- -
- - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" deleted file mode 100644 index c4bdcef..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" +++ /dev/null @@ -1,45 +0,0 @@ -import javax.activation.MimeType; -import javax.servlet.ServletContext; -import javax.servlet.ServletException; -import javax.servlet.ServletInputStream; -import javax.servlet.ServletOutputStream; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/DownloadServlet1") -public class DownloadServlet1 extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - //获取请求参数,文件名 - String filename=req.getParameter("filename"); - //1.使用字节流加载文件进内存 - //1.1找到服务器路径 - ServletContext servletContext=this.getServletContext(); - String realPath = servletContext.getRealPath("/img/"+filename); - //1.2用字节流关联 - ServletInputStream fis=req.getInputStream(); - - //2.设置response响应头 - //2.1设置响应头:content-type= ; - String mimeType = servletContext.getMimeType(filename); - resp.setHeader("content-type",mimeType); - //2.2设置响应头打开方式:content-disposition - resp.setHeader("content-disposition","attachment;filename="+filename); - //将输入流的数据写到输出流 - ServletOutputStream sos=resp.getOutputStream(); - byte [] buff=new byte[1024*8]; - int len=0; - while ((len=fis.read(buff))!=-1){ - sos.write(buff,0,len); - } - fis.close(); - } -} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" deleted file mode 100644 index 7f16049..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" +++ /dev/null @@ -1,44 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.ServletOutputStream; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.servlet.http.HttpSession; -import java.io.IOException; -import java.nio.charset.StandardCharsets; - -@WebServlet("/LoginCheckServlet") -public class LoginCheckServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - //接收账号,密码,验证码 - String username=req.getParameter("username"); - String password=req.getParameter("password"); - String userCode=req.getParameter("userCode"); - //从session中取出正确验证码 - HttpSession session=req.getSession(); - String vCode= (String) session.getAttribute("vCode"); - //将用户输入的验证码和从session中的正确验证码进行对比 - resp.setContentType("text/html;charset=UTF-8"); - ServletOutputStream outputStream=resp.getOutputStream(); - if (userCode.equals(vCode)) { - if ("admin".equals(username)&&"admin".equals(password)){ - - outputStream.write("登陆成功".getBytes("UTF-8")); - }else { - - outputStream.write("登陆失败,密码错误".getBytes("UTF-8")); - } - }else { - - outputStream.write("登陆失败,验证码错误".getBytes("UTF-8")); - } - - } -} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" deleted file mode 100644 index 076a597..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" +++ /dev/null @@ -1,67 +0,0 @@ -import javax.imageio.ImageIO; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.servlet.http.HttpSession; -import javax.xml.ws.spi.http.HttpContext; -import java.awt.*; -import java.awt.image.BufferedImage; -import java.io.IOException; -import java.util.Random; -@WebServlet("/ValidateCodeServlet") -public class ValidateCodeServlet extends HttpServlet { - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - //创建一张图片 - int width=300;//验证码宽度 - int height=90;//验证码高度 - BufferedImage image=new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); - //绘制图片 - //从图片对象中获取绘制图片的“笔” - Graphics pen=image.createGraphics(); - //绘制背景 - pen.setColor(getRandomColor()); - //fillRect:绘制实心矩形 - pen.fillRect(0,0,width,height); - //绘制验证码字符串 - int letterNum=4;//验证码图片上的字符的个数 - int space=20;//验证码图片上两个字母之间的空隙 - int letterWidth=(width-(letterNum+1)*space)/letterNum;//计算每个字母占据的宽度 - //for循环每循环一次,绘制一个字母(小写字母的ASCII码97-122) - String vCode=""; - Random random=new Random(); - for(int i=0;i - - - - Title - -图片
-视频 - - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" deleted file mode 100644 index fbc1dea..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" +++ /dev/null @@ -1,21 +0,0 @@ - - - - - 用户登录 - -
- 账号:
- 密码:
- 验证码: -
-
-
- - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" deleted file mode 100644 index adde74d..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" +++ /dev/null @@ -1,22 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.ServletOutputStream; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/Fail01") -public class Fail01 extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.setContentType("text/html;charset=utf-8"); - ServletOutputStream outputStream= resp.getOutputStream(); - outputStream.write("登陆失败!".getBytes("UTF-8")); - } -} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" deleted file mode 100644 index 1df63b6..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" +++ /dev/null @@ -1,22 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.ServletOutputStream; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/Fail02") -public class Fail02 extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.setContentType("text/html;charset=utf-8"); - ServletOutputStream outputStream= resp.getOutputStream(); - outputStream.write("登陆失败!".getBytes("UTF-8")); - } -} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" deleted file mode 100644 index cedac50..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" +++ /dev/null @@ -1,25 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -@WebServlet("/s1") -public class Servlet1 extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - String username=req.getParameter("username"); - String password=req.getParameter("password"); - if ("admin".equals(username)&&"admin".equals(password)) { - req.getRequestDispatcher("/Success01").forward(req,resp); - } - else { - req.getRequestDispatcher("/Fail01").forward(req,resp); - } - } -} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" deleted file mode 100644 index 9ac18b8..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" +++ /dev/null @@ -1,26 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/s2") -public class Servlet2 extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - String uname=req.getParameter("uname"); - String password=req.getParameter("password"); - if ("admin".equals(uname)&&"admin".equals(password)) { - resp.sendRedirect("Success02"); - } - else { - resp.sendRedirect("Fail02"); - } - } -} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" deleted file mode 100644 index 8a851be..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" +++ /dev/null @@ -1,21 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.ServletOutputStream; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -@WebServlet("/Success01") -public class Success01 extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.setContentType("text/html;charset=utf-8"); - ServletOutputStream outputStream=resp.getOutputStream(); - outputStream.write("登陆成功!".getBytes("UTF-8")); - } -} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" deleted file mode 100644 index 605e6ba..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" +++ /dev/null @@ -1,22 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.ServletOutputStream; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/Success02") -public class Success02 extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.setContentType("text/html;charset=utf-8"); - ServletOutputStream outputStream=resp.getOutputStream(); - outputStream.write("登陆成功!".getBytes("UTF-8")); - } -} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" deleted file mode 100644 index 0c2c42d..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" +++ /dev/null @@ -1,9 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - - - $Title$ - - - $END$ - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" deleted file mode 100644 index c19aa58..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Title - -
- 账号:
- 密码:
-
-
- - - \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" deleted file mode 100644 index 3a32640..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Title - -
- 账号:
- 密码:
-
-
- - - \ No newline at end of file -- Gitee From d56d1755d140f90c297e504f7973a48462bf882e Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 03:08:33 +0000 Subject: [PATCH 396/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=8E=E7=A6=B9?= =?UTF-8?q?=E7=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\216\347\246\271\347\206\231/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 497e0a523a456aac15196fda6fb69ac36e5e983a Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 03:09:03 +0000 Subject: [PATCH 397/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zald <10602807+zald@user.noreply.gitee.com> --- .../test.jsp" | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\205\255\347\253\240/test.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\205\255\347\253\240/test.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\205\255\347\253\240/test.jsp" new file mode 100644 index 0000000..6780e0e --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\345\205\255\347\253\240/test.jsp" @@ -0,0 +1,35 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %><%-- +<%-- + Created by IntelliJ IDEA. + User: 111 + Date: 2022/11/11 + Time: 18:30 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("1"); + user.add("2"); + user.add("3"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + -- Gitee From 0134e8bfd6bd2c0f675bbe94d4eaee7cc08eb6c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kn=E4=B8=A8ght9z?= <10602826+kn-ght9z@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 03:09:04 +0000 Subject: [PATCH 398/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=AA=86=E7=A5=BA?= =?UTF-8?q?=E7=A5=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\252\206\347\245\272\347\245\245/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 086514524d8e9d43a90cb73e9360bfb83683eaa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 13 Dec 2022 03:09:07 +0000 Subject: [PATCH 399/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E7=A7=8B?= =?UTF-8?q?=E5=8D=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\347\247\213\345\215\216/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 92255759f90ae88f07928aad761a25ab43dada5d Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 03:09:17 +0000 Subject: [PATCH 400/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=8E=E7=A6=B9?= =?UTF-8?q?=E7=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\216\347\246\271\347\206\231/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 2e42db41d52be18a8753446a4855b24f1253478a Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 03:09:36 +0000 Subject: [PATCH 401/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zald <10602807+zald@user.noreply.gitee.com> --- .../User.java" | 41 ++++++++++++++++ .../test.jsp" | 47 +++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\203\347\253\240/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\203\347\253\240/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\203\347\253\240/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\203\347\253\240/User.java" new file mode 100644 index 0000000..de53df9 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\203\347\253\240/User.java" @@ -0,0 +1,41 @@ +package demo2; + +public class User { + private String name; + private int age; + private String address; + + public User() { + } + + public User(String name, int age, String address) { + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } +} + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\203\347\253\240/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\203\347\253\240/test.jsp" new file mode 100644 index 0000000..ac5dd81 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\203\347\253\240/test.jsp" @@ -0,0 +1,47 @@ +<%@ page import="week12.User" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %> +<%-- + Created by IntelliJ IDEA. + User: 111 + Date: 2022/11/19 + Time: 16:09 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new User("张三",22,"福建")); + list.add(new User("李四",23,"江西")); + list.add(new User("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.address} + +
+ + + -- Gitee From 6cd4ef6e7c14e261a027e300bbf70d75cb61475b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kn=E4=B8=A8ght9z?= <10602826+kn-ght9z@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 03:09:41 +0000 Subject: [PATCH 402/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kn丨ght9z <10602826+kn-ght9z@user.noreply.gitee.com> --- .../Brand.java" | 101 ++++++++++++++++++ .../ServletDemo01.java" | 35 ++++++ .../ServletDemo02.java" | 32 ++++++ .../User.java" | 74 +++++++++++++ .../jstl.jsp" | 60 +++++++++++ .../jstlforeach.jsp" | 60 +++++++++++ .../test.jsp" | 37 +++++++ 7 files changed, 399 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/ServletDemo01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/ServletDemo02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Brand.java" new file mode 100644 index 0000000..fc83ddc --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/Brand.java" @@ -0,0 +1,101 @@ +package com.ittest.pojo; + +/** + * Ʒʵ + */ + +public class Brand { + // id + private Integer id; + // Ʒ + private String brandName; + // ҵ + private String companyName; + // ֶ + private Integer ordered; + // Ϣ + private String description; + // ״̬0 1 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/ServletDemo01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/ServletDemo01.java" new file mode 100644 index 0000000..12d2d36 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/ServletDemo01.java" @@ -0,0 +1,35 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. ׼ + List brands = new ArrayList(); + brands.add(new Brand(1,"ֻ","ֻ",100,"ֻ󣬺óԲϻ",1)); + brands.add(new Brand(2,"¿","¿",200,"¿⣬",0)); + brands.add(new Brand(3,"С","С׿Ƽ޹˾",1000,"Ϊն",1)); + + + //2. 洢request + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. ת el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/ServletDemo02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/ServletDemo02.java" new file mode 100644 index 0000000..a2ab290 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/ServletDemo02.java" @@ -0,0 +1,32 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. ׼ + List users = new ArrayList(); + users.add(new User(1,"ά","",20,"ţʿ",1)); + users.add(new User(2,"","",37,"־ս",0)); + users.add(new User(3,"■","",33,"ʨ",1)); + + + //2. 洢request + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. ת jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/User.java" new file mode 100644 index 0000000..efed52a --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/User.java" @@ -0,0 +1,74 @@ +public class User { + // id + private Integer id; + // + private String UserName; + // Ա + private String sex; + // + private Integer old; + // Ϣ + private String description; + // ״̬0 1 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/jstl.jsp" new file mode 100644 index 0000000..459d4f3 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/jstl.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
Աڶ״̬
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}޸ ɾ
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/jstlforeach.jsp" new file mode 100644 index 0000000..123f3b6 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/jstlforeach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
ƷҵƷƽ״̬
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}޸ ɾ
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/test.jsp" new file mode 100644 index 0000000..53afea8 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\252\206\347\245\272\347\245\245/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"һ", "", ""}, {"", "", ""}, {"", "", ""}}; +%> + + + + + Java άʾ + + +

Java ά

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
һڶ
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 4aaba8e762d6de598d48ca5cd9ece2c750fdfde2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=A7=8B=E5=8D=8E?= <1241881982@qq.com> Date: Tue, 13 Dec 2022 03:09:44 +0000 Subject: [PATCH 403/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林秋华 <1241881982@qq.com> --- .../FailServlet.java" | 21 ++++++ .../LoginServlet.java" | 40 +++++++++++ .../SuccessServlet.java" | 21 ++++++ .../loginservlet.html" | 14 ++++ .../DownloadServlet.java" | 45 +++++++++++++ .../LoginCheckServlet.java" | 44 ++++++++++++ .../ValidateCodeServlet.java" | 67 +++++++++++++++++++ .../download.html" | 11 +++ .../login.html" | 21 ++++++ .../Fail.java" | 22 ++++++ .../Fail02.java" | 22 ++++++ .../Servlet.java" | 25 +++++++ .../Servlet02.java" | 26 +++++++ .../Success.java" | 21 ++++++ .../Success02.java" | 22 ++++++ .../index.jsp" | 9 +++ .../login.html" | 14 ++++ .../login2.html" | 14 ++++ 18 files changed, 459 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/loginservlet.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/download.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" new file mode 100644 index 0000000..4b76b8e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/FailServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/LoginServlet.java" new file mode 100644 index 0000000..74f00ac --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/LoginServlet.java" @@ -0,0 +1,40 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" new file mode 100644 index 0000000..cfaf017 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/SuccessServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/loginservlet.html" new file mode 100644 index 0000000..d4da7fc --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" new file mode 100644 index 0000000..c4bdcef --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" @@ -0,0 +1,45 @@ +import javax.activation.MimeType; +import javax.servlet.ServletContext; +import javax.servlet.ServletException; +import javax.servlet.ServletInputStream; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/DownloadServlet1") +public class DownloadServlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取请求参数,文件名 + String filename=req.getParameter("filename"); + //1.使用字节流加载文件进内存 + //1.1找到服务器路径 + ServletContext servletContext=this.getServletContext(); + String realPath = servletContext.getRealPath("/img/"+filename); + //1.2用字节流关联 + ServletInputStream fis=req.getInputStream(); + + //2.设置response响应头 + //2.1设置响应头:content-type= ; + String mimeType = servletContext.getMimeType(filename); + resp.setHeader("content-type",mimeType); + //2.2设置响应头打开方式:content-disposition + resp.setHeader("content-disposition","attachment;filename="+filename); + //将输入流的数据写到输出流 + ServletOutputStream sos=resp.getOutputStream(); + byte [] buff=new byte[1024*8]; + int len=0; + while ((len=fis.read(buff))!=-1){ + sos.write(buff,0,len); + } + fis.close(); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" new file mode 100644 index 0000000..7f16049 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" @@ -0,0 +1,44 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.nio.charset.StandardCharsets; + +@WebServlet("/LoginCheckServlet") +public class LoginCheckServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //接收账号,密码,验证码 + String username=req.getParameter("username"); + String password=req.getParameter("password"); + String userCode=req.getParameter("userCode"); + //从session中取出正确验证码 + HttpSession session=req.getSession(); + String vCode= (String) session.getAttribute("vCode"); + //将用户输入的验证码和从session中的正确验证码进行对比 + resp.setContentType("text/html;charset=UTF-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + if (userCode.equals(vCode)) { + if ("admin".equals(username)&&"admin".equals(password)){ + + outputStream.write("登陆成功".getBytes("UTF-8")); + }else { + + outputStream.write("登陆失败,密码错误".getBytes("UTF-8")); + } + }else { + + outputStream.write("登陆失败,验证码错误".getBytes("UTF-8")); + } + + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" new file mode 100644 index 0000000..076a597 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" @@ -0,0 +1,67 @@ +import javax.imageio.ImageIO; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import javax.xml.ws.spi.http.HttpContext; +import java.awt.*; +import java.awt.image.BufferedImage; +import java.io.IOException; +import java.util.Random; +@WebServlet("/ValidateCodeServlet") +public class ValidateCodeServlet extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建一张图片 + int width=300;//验证码宽度 + int height=90;//验证码高度 + BufferedImage image=new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); + //绘制图片 + //从图片对象中获取绘制图片的“笔” + Graphics pen=image.createGraphics(); + //绘制背景 + pen.setColor(getRandomColor()); + //fillRect:绘制实心矩形 + pen.fillRect(0,0,width,height); + //绘制验证码字符串 + int letterNum=4;//验证码图片上的字符的个数 + int space=20;//验证码图片上两个字母之间的空隙 + int letterWidth=(width-(letterNum+1)*space)/letterNum;//计算每个字母占据的宽度 + //for循环每循环一次,绘制一个字母(小写字母的ASCII码97-122) + String vCode=""; + Random random=new Random(); + for(int i=0;i + + + + Title + +图片
+视频 + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" new file mode 100644 index 0000000..fbc1dea --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" @@ -0,0 +1,21 @@ + + + + + 用户登录 + +
+ 账号:
+ 密码:
+ 验证码: +
+
+
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" new file mode 100644 index 0000000..adde74d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail01") +public class Fail01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" new file mode 100644 index 0000000..1df63b6 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail02") +public class Fail02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" new file mode 100644 index 0000000..cedac50 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/s1") +public class Servlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username=req.getParameter("username"); + String password=req.getParameter("password"); + if ("admin".equals(username)&&"admin".equals(password)) { + req.getRequestDispatcher("/Success01").forward(req,resp); + } + else { + req.getRequestDispatcher("/Fail01").forward(req,resp); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" new file mode 100644 index 0000000..9ac18b8 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/s2") +public class Servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String uname=req.getParameter("uname"); + String password=req.getParameter("password"); + if ("admin".equals(uname)&&"admin".equals(password)) { + resp.sendRedirect("Success02"); + } + else { + resp.sendRedirect("Fail02"); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" new file mode 100644 index 0000000..8a851be --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Success01") +public class Success01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" new file mode 100644 index 0000000..605e6ba --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Success02") +public class Success02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" new file mode 100644 index 0000000..0c2c42d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" @@ -0,0 +1,9 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + $END$ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" new file mode 100644 index 0000000..c19aa58 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" new file mode 100644 index 0000000..3a32640 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\347\247\213\345\215\216/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file -- Gitee From 9462af3a144dd9b86c6806948dce041c19d00ca5 Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 03:12:46 +0000 Subject: [PATCH 404/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=AC=AC?= =?UTF-8?q?=E4=B8=83=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../User.java" | 41 ---------------- .../test.jsp" | 47 ------------------- 2 files changed, 88 deletions(-) delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\203\347\253\240/User.java" delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\203\347\253\240/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\203\347\253\240/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\203\347\253\240/User.java" deleted file mode 100644 index de53df9..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\203\347\253\240/User.java" +++ /dev/null @@ -1,41 +0,0 @@ -package demo2; - -public class User { - private String name; - private int age; - private String address; - - public User() { - } - - public User(String name, int age, String address) { - this.name = name; - this.age = age; - this.address = address; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public int getAge() { - return age; - } - - public void setAge(int age) { - this.age = age; - } - - public String getAddress() { - return address; - } - - public void setAddress(String address) { - this.address = address; - } -} - diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\203\347\253\240/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\203\347\253\240/test.jsp" deleted file mode 100644 index ac5dd81..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\254\254\344\270\203\347\253\240/test.jsp" +++ /dev/null @@ -1,47 +0,0 @@ -<%@ page import="week12.User" %> -<%@ page import="java.util.ArrayList" %> -<%@ page import="java.util.List" %> -<%-- - Created by IntelliJ IDEA. - User: 111 - Date: 2022/11/19 - Time: 16:09 - To change this template use File | Settings | File Templates. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - - - Title - - -<% - List list = new ArrayList(); - list.add(new User("张三",22,"福建")); - list.add(new User("李四",23,"江西")); - list.add(new User("王五",25,"浙江")); - request.setAttribute("list",list); -%> - - - - - - - - - - - - - - - - - -
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.address} - -
- - - -- Gitee From 915fb089293ac3f262e88db25c7b6ac509550118 Mon Sep 17 00:00:00 2001 From: zald <10602807+zald@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 03:13:05 +0000 Subject: [PATCH 405/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zald <10602807+zald@user.noreply.gitee.com> --- .../User.java" | 41 ++++++++++++++++ .../test.jsp" | 47 +++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\203\347\253\240/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\203\347\253\240/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\203\347\253\240/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\203\347\253\240/User.java" new file mode 100644 index 0000000..de53df9 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\203\347\253\240/User.java" @@ -0,0 +1,41 @@ +package demo2; + +public class User { + private String name; + private int age; + private String address; + + public User() { + } + + public User(String name, int age, String address) { + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } +} + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\203\347\253\240/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\203\347\253\240/test.jsp" new file mode 100644 index 0000000..ac5dd81 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\216\347\246\271\347\206\231/\347\254\254\344\270\203\347\253\240/test.jsp" @@ -0,0 +1,47 @@ +<%@ page import="week12.User" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %> +<%-- + Created by IntelliJ IDEA. + User: 111 + Date: 2022/11/19 + Time: 16:09 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new User("张三",22,"福建")); + list.add(new User("李四",23,"江西")); + list.add(new User("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.address} + +
+ + + -- Gitee From 478c21e26970680161111d1cc32d450d18ed3ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E8=91=89?= <2249398422@qq.com> Date: Tue, 13 Dec 2022 03:53:08 +0000 Subject: [PATCH 406/688] update PPT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 三葉 <2249398422@qq.com> --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 4576e2d..a54bf5d 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,10 @@ [第十章 JDBC](http://124.71.9.121:5212/s/DEFK) +[JDBC2](http://124.71.9.121:5212/s/nxcq) + +[JDBC3](http://124.71.9.121:5212/s/JPSG) + -------- [JAVA_EE_api_中英文对照版.chm](http://124.71.9.121:5212/s/9oSD) -- Gitee From 77bde8533a2fe34d977d0974069fc853f1b03701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 10:23:11 +0000 Subject: [PATCH 407/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=99=E6=BD=87?= =?UTF-8?q?=E6=B6=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\231\346\275\207\346\266\265/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 6d4c739c4a31a35ba2c4a9e06de6ee0f56e1e358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 10:47:50 +0000 Subject: [PATCH 408/688] =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙潇涵 <1031002897@qq.com> --- .../Three/FailServlet.java" | 23 ++++++++++ .../Three/Loginservlet.java" | 42 +++++++++++++++++++ .../Three/SuccessServlet.java" | 22 ++++++++++ .../Three/loginservlet.html" | 14 +++++++ 4 files changed, 101 insertions(+) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/FailServlet.java" create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/Loginservlet.java" create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/loginservlet.html" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/FailServlet.java" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/FailServlet.java" new file mode 100644 index 0000000..32dfb1c --- /dev/null +++ "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/FailServlet.java" @@ -0,0 +1,23 @@ +package Three; + + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + + @WebServlet("/FailServlet") + public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登入失败!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } + } + diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/Loginservlet.java" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/Loginservlet.java" new file mode 100644 index 0000000..c2b3e11 --- /dev/null +++ "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/Loginservlet.java" @@ -0,0 +1,42 @@ +package Three; + + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + + @WebServlet("/loginservlet") + public class Loginservlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while((line = reader.readLine()) != null){ + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if("admin".equals(username) && "admin".equals(password)){ + System.out.println("登入成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + }else { + System.out.println("登入失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req,resp); + } + } + + diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/SuccessServlet.java" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/SuccessServlet.java" new file mode 100644 index 0000000..2f14737 --- /dev/null +++ "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/SuccessServlet.java" @@ -0,0 +1,22 @@ +package Three; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登陆成功! admin欢迎您"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} + diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/loginservlet.html" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/loginservlet.html" new file mode 100644 index 0000000..0abd6dc --- /dev/null +++ "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file -- Gitee From 31a0c917e116f985905d4199cdc7057eedf36bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 10:47:58 +0000 Subject: [PATCH 409/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=AD=99?= =?UTF-8?q?=E6=BD=87=E6=B6=B5/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\231\346\275\207\346\266\265/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 408dc5687036f631841974c2bd67a5c787d13d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 10:48:10 +0000 Subject: [PATCH 410/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=AD=99?= =?UTF-8?q?=E6=BD=87=E6=B6=B5/Three?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Three/FailServlet.java" | 23 ---------- .../Three/Loginservlet.java" | 42 ------------------- .../Three/SuccessServlet.java" | 22 ---------- .../Three/loginservlet.html" | 14 ------- 4 files changed, 101 deletions(-) delete mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/FailServlet.java" delete mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/Loginservlet.java" delete mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/SuccessServlet.java" delete mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/loginservlet.html" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/FailServlet.java" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/FailServlet.java" deleted file mode 100644 index 32dfb1c..0000000 --- "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/FailServlet.java" +++ /dev/null @@ -1,23 +0,0 @@ -package Three; - - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - - @WebServlet("/FailServlet") - public class FailServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.getWriter().write("登入失败!"); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } - } - diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/Loginservlet.java" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/Loginservlet.java" deleted file mode 100644 index c2b3e11..0000000 --- "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/Loginservlet.java" +++ /dev/null @@ -1,42 +0,0 @@ -package Three; - - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; - - @WebServlet("/loginservlet") - public class Loginservlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.setCharacterEncoding("utf-8"); - BufferedReader reader = req.getReader(); - String line; - while((line = reader.readLine()) != null){ - System.out.println(line); - String[] paramsArr = line.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - - if("admin".equals(username) && "admin".equals(password)){ - System.out.println("登入成功!"); - req.getRequestDispatcher("/SuccessServlet").forward(req,resp); - }else { - System.out.println("登入失败!"); - req.getRequestDispatcher("/FailServlet").forward(req,resp); - } - } - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req,resp); - } - } - - diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/SuccessServlet.java" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/SuccessServlet.java" deleted file mode 100644 index 2f14737..0000000 --- "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/SuccessServlet.java" +++ /dev/null @@ -1,22 +0,0 @@ -package Three; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/SuccessServlet") -public class SuccessServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.getWriter().write("登陆成功! admin欢迎您"); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} - diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/loginservlet.html" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/loginservlet.html" deleted file mode 100644 index 0abd6dc..0000000 --- "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Three/loginservlet.html" +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Title - - -
-
-
- -
- - \ No newline at end of file -- Gitee From b0bb1bfeec5b8b9e59969c93e78e571e312f8ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 10:48:27 +0000 Subject: [PATCH 411/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=99=E6=BD=87?= =?UTF-8?q?=E6=B6=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\231\346\275\207\346\266\265/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From e1a2830a1ea92c349cc89485128a8d20964bf0c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 10:49:32 +0000 Subject: [PATCH 412/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙潇涵 <1031002897@qq.com> --- .../FailServlet.java" | 23 ++++++++++ .../Loginservlet.java" | 42 +++++++++++++++++++ .../SuccessServlet.java" | 22 ++++++++++ .../loginservlet.html" | 14 +++++++ 4 files changed, 101 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Loginservlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/loginservlet.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/FailServlet.java" new file mode 100644 index 0000000..32dfb1c --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/FailServlet.java" @@ -0,0 +1,23 @@ +package Three; + + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + + @WebServlet("/FailServlet") + public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登入失败!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } + } + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Loginservlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Loginservlet.java" new file mode 100644 index 0000000..c2b3e11 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Loginservlet.java" @@ -0,0 +1,42 @@ +package Three; + + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + + @WebServlet("/loginservlet") + public class Loginservlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while((line = reader.readLine()) != null){ + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if("admin".equals(username) && "admin".equals(password)){ + System.out.println("登入成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + }else { + System.out.println("登入失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req,resp); + } + } + + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/SuccessServlet.java" new file mode 100644 index 0000000..2f14737 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/SuccessServlet.java" @@ -0,0 +1,22 @@ +package Three; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登陆成功! admin欢迎您"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/loginservlet.html" new file mode 100644 index 0000000..0abd6dc --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file -- Gitee From 9743181052025e089495113f200481d9122a1463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 10:55:57 +0000 Subject: [PATCH 413/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=99=E6=BD=87?= =?UTF-8?q?=E6=B6=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\231\346\275\207\346\266\265/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 8b8a241b739c2a72bb4808f445003866360341ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 10:56:36 +0000 Subject: [PATCH 414/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙潇涵 <1031002897@qq.com> --- .../CookieDemo01.java" | 49 ++++++++++++++ .../Step1.java" | 38 +++++++++++ .../Step2.java" | 34 ++++++++++ .../address.html" | 47 ++++++++++++++ .../books.html" | 40 ++++++++++++ .../confirm.html" | 43 ++++++++++++ .../confirm.jsp" | 65 +++++++++++++++++++ 7 files changed, 316 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/CookieDemo01.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Step1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Step2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/confirm.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/confirm.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/CookieDemo01.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/CookieDemo01.java" new file mode 100644 index 0000000..edde364 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/CookieDemo01.java" @@ -0,0 +1,49 @@ +package Four; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Cookie01") +public class CookieDemo01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie cookie = new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + cookie.setPath("/"); + //发送Cookie + resp.addCookie(cookie); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} + +@WebServlet("/Cookie02") +class CookieDemo02 extends HttpServlet{ + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doGet(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs = req.getCookies(); + //获取数据,遍历Cookie + if(cs != null){ + for(Cookie c:cs){ + String name = c.getName(); + String value = c.getValue(); + System.out.println(name + value); + } + } + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Step1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Step1.java" new file mode 100644 index 0000000..5ffc359 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Step1.java" @@ -0,0 +1,38 @@ +package Four; + + + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //String[] books = req.getParameterValues("books"); + //HttpSession session = req.getSession(); + //session.setAttribute("books",books); + //resp.sendRedirect("address.html"); + resp.setContentType("text/html;charset=UTF-8"); + String java = req.getParameter("java"); + String Oracle = req.getParameter("Oracle"); + String Struts = req.getParameter("Struts"); + + HttpSession session = req.getSession(); + session.setAttribute("java",java); + session.setAttribute("Oracle",Oracle); + session.setAttribute("Struts",Struts); + String contextPath = req.getContextPath(); + resp.sendRedirect("address.html"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Step2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Step2.java" new file mode 100644 index 0000000..1af6209 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Step2.java" @@ -0,0 +1,34 @@ +package Four; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); + String card = req.getParameter("card"); + + HttpSession session = req.getSession(); + session.setAttribute("card",card); + session.setAttribute("name",name); + session.setAttribute("address",address); + session.setAttribute("username",username); + resp.sendRedirect("confirm.jsp"); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/address.html" new file mode 100644 index 0000000..9e75159 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/address.html" @@ -0,0 +1,47 @@ + + + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类Master
Visa
卡号
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/books.html" new file mode 100644 index 0000000..4af8b29 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/books.html" @@ -0,0 +1,40 @@ + + + + + Title + + +

Step1想要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/confirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/confirm.html" new file mode 100644 index 0000000..bd39431 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/confirm.html" @@ -0,0 +1,43 @@ + + + + + Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print();%>
地址:<%=out.print(session.setAttribute("address"));%>
付款信息:
信用卡类型:<%out.print(session.setAttribute("types"));%>
卡号:<%out.print(session.setAttribute("username"));%>
订货信息:<%out.print(Arrays.toString((Objects[]) session.getAttribute("books")));%>
+ + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/confirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/confirm.jsp" new file mode 100644 index 0000000..f821d4b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/confirm.jsp" @@ -0,0 +1,65 @@ +<%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step3:订单确认

+ + + <% + HttpSession session1 = request.getSession(); + String name = String.valueOf(session1.getAttribute("name")); + String java = (String) session1.getAttribute("java"); + String Oracle = (String) session1.getAttribute("Oracle"); + String Struts = (String) session1.getAttribute("Struts"); + String address = String.valueOf(session1.getAttribute("address")); + String username= String.valueOf(session1.getAttribute("username")); + String card = String.valueOf(session1.getAttribute("card")); + + %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.write(name);%>
地址:<%out.write(address);%>
付款信息:
信用卡类型:<%out.write(card);%>
卡号:<%out.write(username);%>
订货项目
<%out.write(java);%>
<%out.print(Oracle);%>
<%out.print(Struts);%>
+ + -- Gitee From 36c7172826d09c2410ff521884769ac40a74a820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 10:58:12 +0000 Subject: [PATCH 415/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=99=E6=BD=87?= =?UTF-8?q?=E6=B6=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\231\346\275\207\346\266\265/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From abe50df8de31a7ffaa629a46817403796d5c86d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 10:58:38 +0000 Subject: [PATCH 416/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙潇涵 <1031002897@qq.com> --- .../txt.jsp" | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/txt.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/txt.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/txt.jsp" new file mode 100644 index 0000000..8546001 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/txt.jsp" @@ -0,0 +1,39 @@ +<%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][] array = {{"一","二","三"},{"四","五","六"},{"七","八","九"}}; +%> + + + + Title + + +

Java二维数组实例

+ + + + + + + <% + for(int i = 0;i < array.length;i++){ + %> + + <% + for(int j = 0;j < array[i].length;j++){ + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From 03fa63c1a20306d301f48bd51977ca876df55b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 11:02:22 +0000 Subject: [PATCH 417/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=99=E6=BD=87?= =?UTF-8?q?=E6=B6=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\231\346\275\207\346\266\265/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From bfb29b9737e886a9f46052c6cdea0549957789ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 11:03:04 +0000 Subject: [PATCH 418/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙潇涵 <1031002897@qq.com> --- .../Login.java" | 49 +++++++++++++++++++ .../Register.java" | 43 ++++++++++++++++ .../login.html" | 14 ++++++ .../register.html" | 18 +++++++ 4 files changed, 124 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Login.java" new file mode 100644 index 0000000..9a95ee2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Login.java" @@ -0,0 +1,49 @@ +package Two; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if("admin".equals(username) && "admin".equals(password)){ + System.out.println("登入成功!"); + }else { + System.out.println("登入失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while((line = reader.readLine()) != null){ + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if("admin".equals(username) && "admin".equals(password)){ + System.out.println("登入成功!"); + }else { + System.out.println("登入失败!"); + } + } + } +} + diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Register.java" new file mode 100644 index 0000000..2fc897f --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Register.java" @@ -0,0 +1,43 @@ +package Two; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get------------------"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post-----------"); + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for(String key:keySet){ + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/login.html" new file mode 100644 index 0000000..12ee1f5 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/login.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/register.html" new file mode 100644 index 0000000..c60bc4f --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/register.html" @@ -0,0 +1,18 @@ + + + + + 注册 + + +

注册界面

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + + \ No newline at end of file -- Gitee From 81f38e387f33c7be6572a166568e8a26635fc63e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 11:04:33 +0000 Subject: [PATCH 419/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=99=E6=BD=87?= =?UTF-8?q?=E6=B6=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\231\346\275\207\346\266\265/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From fa95a9e62863a25e877bedb230fac71685cd4c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 11:05:05 +0000 Subject: [PATCH 420/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙潇涵 <1031002897@qq.com> --- .../sdf.jsp" | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/sdf.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/sdf.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/sdf.jsp" new file mode 100644 index 0000000..0577715 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/sdf.jsp" @@ -0,0 +1,30 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + +

用户表格

+ +<% + List user = new ArrayList(); + user.add("田子夜"); + user.add("孙潇涵"); + user.add("王辉煌"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + -- Gitee From b204e6f0d8d5744653d007a1fff9e72173d4b2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 11:05:23 +0000 Subject: [PATCH 421/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=99=E6=BD=87?= =?UTF-8?q?=E6=B6=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\231\346\275\207\346\266\265/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From c5c2d90f9f2d400415ced83987e19b4b9d98160d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=AD=90=E5=A4=9C?= <10602884+tian-ziye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:09:11 +0000 Subject: [PATCH 422/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=94=B0=E5=AD=90?= =?UTF-8?q?=E5=A4=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\224\260\345\255\220\345\244\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 3bb5e16a0b8cb831f0adee760aae1043da56986e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=AD=90=E5=A4=9C?= <10602884+tian-ziye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:09:46 +0000 Subject: [PATCH 423/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=94=B0=E5=AD=90?= =?UTF-8?q?=E5=A4=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\224\260\345\255\220\345\244\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From c3b0241057e4b9748ad40200937aeb2b052b4b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=AD=90=E5=A4=9C?= <10602884+tian-ziye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:10:22 +0000 Subject: [PATCH 424/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 田子夜 <10602884+tian-ziye@user.noreply.gitee.com> --- .../Two/Login.java" | 49 +++++++++++++++++++ .../Two/Register.java" | 43 ++++++++++++++++ .../Two/login.html" | 14 ++++++ .../Two/register.html" | 18 +++++++ 4 files changed, 124 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Two/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Two/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Two/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Two/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Two/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Two/Login.java" new file mode 100644 index 0000000..9a95ee2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Two/Login.java" @@ -0,0 +1,49 @@ +package Two; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if("admin".equals(username) && "admin".equals(password)){ + System.out.println("登入成功!"); + }else { + System.out.println("登入失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while((line = reader.readLine()) != null){ + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if("admin".equals(username) && "admin".equals(password)){ + System.out.println("登入成功!"); + }else { + System.out.println("登入失败!"); + } + } + } +} + diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Two/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Two/Register.java" new file mode 100644 index 0000000..2fc897f --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Two/Register.java" @@ -0,0 +1,43 @@ +package Two; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get------------------"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post-----------"); + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for(String key:keySet){ + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Two/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Two/login.html" new file mode 100644 index 0000000..12ee1f5 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Two/login.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Two/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Two/register.html" new file mode 100644 index 0000000..c60bc4f --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Two/register.html" @@ -0,0 +1,18 @@ + + + + + 注册 + + +

注册界面

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + + \ No newline at end of file -- Gitee From fca4a6f3ddf41e934a7d8803f92b36f0e4ef73b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=AD=90=E5=A4=9C?= <10602884+tian-ziye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:11:24 +0000 Subject: [PATCH 425/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=94=B0=E5=AD=90?= =?UTF-8?q?=E5=A4=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\224\260\345\255\220\345\244\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From a4b65f26dcc0045689e2f53777cb5c522762369b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=AD=90=E5=A4=9C?= <10602884+tian-ziye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:12:34 +0000 Subject: [PATCH 426/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 田子夜 <10602884+tian-ziye@user.noreply.gitee.com> --- .../FailServlet.java" | 23 ++++++++++ .../Loginservlet.java" | 42 +++++++++++++++++++ .../SuccessServlet.java" | 22 ++++++++++ .../loginservlet.html" | 14 +++++++ 4 files changed, 101 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Loginservlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/loginservlet.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/FailServlet.java" new file mode 100644 index 0000000..32dfb1c --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/FailServlet.java" @@ -0,0 +1,23 @@ +package Three; + + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + + @WebServlet("/FailServlet") + public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登入失败!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } + } + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Loginservlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Loginservlet.java" new file mode 100644 index 0000000..c2b3e11 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Loginservlet.java" @@ -0,0 +1,42 @@ +package Three; + + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + + @WebServlet("/loginservlet") + public class Loginservlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while((line = reader.readLine()) != null){ + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if("admin".equals(username) && "admin".equals(password)){ + System.out.println("登入成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + }else { + System.out.println("登入失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req,resp); + } + } + + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/SuccessServlet.java" new file mode 100644 index 0000000..2f14737 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/SuccessServlet.java" @@ -0,0 +1,22 @@ +package Three; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登陆成功! admin欢迎您"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/loginservlet.html" new file mode 100644 index 0000000..0abd6dc --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file -- Gitee From 79d9cb39de3ae223c4d2b02a83417d34703a2d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=AD=90=E5=A4=9C?= <10602884+tian-ziye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:13:05 +0000 Subject: [PATCH 427/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=94=B0=E5=AD=90?= =?UTF-8?q?=E5=A4=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\224\260\345\255\220\345\244\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 5e271d437caa9ae93d48cf3a3346396cfce4d492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=AD=90=E5=A4=9C?= <10602884+tian-ziye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:13:24 +0000 Subject: [PATCH 428/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 田子夜 <10602884+tian-ziye@user.noreply.gitee.com> --- .../CookieDemo01.java" | 49 ++++++++++++++ .../Step1.java" | 38 +++++++++++ .../Step2.java" | 34 ++++++++++ .../address.html" | 47 ++++++++++++++ .../books.html" | 40 ++++++++++++ .../confirm.html" | 43 ++++++++++++ .../confirm.jsp" | 65 +++++++++++++++++++ 7 files changed, 316 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/CookieDemo01.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Step1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Step2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/confirm.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/confirm.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/CookieDemo01.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/CookieDemo01.java" new file mode 100644 index 0000000..edde364 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/CookieDemo01.java" @@ -0,0 +1,49 @@ +package Four; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Cookie01") +public class CookieDemo01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie cookie = new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + cookie.setPath("/"); + //发送Cookie + resp.addCookie(cookie); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} + +@WebServlet("/Cookie02") +class CookieDemo02 extends HttpServlet{ + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doGet(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs = req.getCookies(); + //获取数据,遍历Cookie + if(cs != null){ + for(Cookie c:cs){ + String name = c.getName(); + String value = c.getValue(); + System.out.println(name + value); + } + } + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Step1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Step1.java" new file mode 100644 index 0000000..5ffc359 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Step1.java" @@ -0,0 +1,38 @@ +package Four; + + + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //String[] books = req.getParameterValues("books"); + //HttpSession session = req.getSession(); + //session.setAttribute("books",books); + //resp.sendRedirect("address.html"); + resp.setContentType("text/html;charset=UTF-8"); + String java = req.getParameter("java"); + String Oracle = req.getParameter("Oracle"); + String Struts = req.getParameter("Struts"); + + HttpSession session = req.getSession(); + session.setAttribute("java",java); + session.setAttribute("Oracle",Oracle); + session.setAttribute("Struts",Struts); + String contextPath = req.getContextPath(); + resp.sendRedirect("address.html"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Step2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Step2.java" new file mode 100644 index 0000000..1af6209 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Step2.java" @@ -0,0 +1,34 @@ +package Four; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); + String card = req.getParameter("card"); + + HttpSession session = req.getSession(); + session.setAttribute("card",card); + session.setAttribute("name",name); + session.setAttribute("address",address); + session.setAttribute("username",username); + resp.sendRedirect("confirm.jsp"); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/address.html" new file mode 100644 index 0000000..9e75159 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/address.html" @@ -0,0 +1,47 @@ + + + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类Master
Visa
卡号
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/books.html" new file mode 100644 index 0000000..4af8b29 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/books.html" @@ -0,0 +1,40 @@ + + + + + Title + + +

Step1想要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/confirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/confirm.html" new file mode 100644 index 0000000..bd39431 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/confirm.html" @@ -0,0 +1,43 @@ + + + + + Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print();%>
地址:<%=out.print(session.setAttribute("address"));%>
付款信息:
信用卡类型:<%out.print(session.setAttribute("types"));%>
卡号:<%out.print(session.setAttribute("username"));%>
订货信息:<%out.print(Arrays.toString((Objects[]) session.getAttribute("books")));%>
+ + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/confirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/confirm.jsp" new file mode 100644 index 0000000..f821d4b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/confirm.jsp" @@ -0,0 +1,65 @@ +<%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step3:订单确认

+ + + <% + HttpSession session1 = request.getSession(); + String name = String.valueOf(session1.getAttribute("name")); + String java = (String) session1.getAttribute("java"); + String Oracle = (String) session1.getAttribute("Oracle"); + String Struts = (String) session1.getAttribute("Struts"); + String address = String.valueOf(session1.getAttribute("address")); + String username= String.valueOf(session1.getAttribute("username")); + String card = String.valueOf(session1.getAttribute("card")); + + %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.write(name);%>
地址:<%out.write(address);%>
付款信息:
信用卡类型:<%out.write(card);%>
卡号:<%out.write(username);%>
订货项目
<%out.write(java);%>
<%out.print(Oracle);%>
<%out.print(Struts);%>
+ + -- Gitee From 314c6e3ee4e798a936856816d657832d3e480647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=AD=90=E5=A4=9C?= <10602884+tian-ziye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:13:38 +0000 Subject: [PATCH 429/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=94=B0=E5=AD=90?= =?UTF-8?q?=E5=A4=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\224\260\345\255\220\345\244\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From cc413ea2ff1cae43a2bc1eabd0e7e576fbf76cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=AD=90=E5=A4=9C?= <10602884+tian-ziye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:13:53 +0000 Subject: [PATCH 430/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 田子夜 <10602884+tian-ziye@user.noreply.gitee.com> --- .../txt.jsp" | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/txt.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/txt.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/txt.jsp" new file mode 100644 index 0000000..8546001 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/txt.jsp" @@ -0,0 +1,39 @@ +<%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][] array = {{"一","二","三"},{"四","五","六"},{"七","八","九"}}; +%> + + + + Title + + +

Java二维数组实例

+ + + + + + + <% + for(int i = 0;i < array.length;i++){ + %> + + <% + for(int j = 0;j < array[i].length;j++){ + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From 07137c046e0074fdb69ba85a8add11ddafec2de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=AD=90=E5=A4=9C?= <10602884+tian-ziye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:14:11 +0000 Subject: [PATCH 431/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=94=B0=E5=AD=90?= =?UTF-8?q?=E5=A4=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\224\260\345\255\220\345\244\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 8cc6be405432b8173aa40626821b43bb355e0165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=AD=90=E5=A4=9C?= <10602884+tian-ziye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:14:25 +0000 Subject: [PATCH 432/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 田子夜 <10602884+tian-ziye@user.noreply.gitee.com> --- .../sdf.jsp" | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/sdf.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/sdf.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/sdf.jsp" new file mode 100644 index 0000000..0577715 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/sdf.jsp" @@ -0,0 +1,30 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + +

用户表格

+ +<% + List user = new ArrayList(); + user.add("田子夜"); + user.add("孙潇涵"); + user.add("王辉煌"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + -- Gitee From be7fc295f27f16dfe8415c34406c642d8b7b5a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=AD=90=E5=A4=9C?= <10602884+tian-ziye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:26:07 +0000 Subject: [PATCH 433/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=94=B0=E5=AD=90?= =?UTF-8?q?=E5=A4=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\224\260\345\255\220\345\244\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 5a742f32df301129a19074be27d594eeba79938d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=AD=90=E5=A4=9C?= <10602884+tian-ziye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:27:16 +0000 Subject: [PATCH 434/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 田子夜 <10602884+tian-ziye@user.noreply.gitee.com> --- .../filter.java" | 37 +++++++++++++++++++ .../filterServelet.java" | 28 ++++++++++++++ .../filterweb.html" | 12 ++++++ .../filterweb.jsp" | 24 ++++++++++++ .../webtest.jsp" | 20 ++++++++++ 5 files changed, 121 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/filter.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/filterServelet.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/filterweb.html" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/filterweb.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/webtest.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/filter.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/filter.java" new file mode 100644 index 0000000..09a5554 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/filter.java" @@ -0,0 +1,37 @@ +package Seven; + +import javax.servlet.*; +import javax.servlet.annotation.WebFilter; +import java.io.IOException; + +//配置Filter拦截路径 +@WebFilter("/test") +public class filter implements Filter { + @Override + public void init(FilterConfig filterConfig) throws ServletException { + + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { + request.setCharacterEncoding("utf-8"); + String[] str = new String[]{"sb","lz","2货"}; + String name = request.getParameter("name"); +// name = name.replaceAll("sb","**"); +// name = name.replaceAll("lz","**"); + for (int i = 0; i < str.length; i++) { + String index = str[i]; + name = name.replaceAll(index,"**"); + } + System.out.print("过滤后输出:"); + System.out.println(name); + request.setAttribute("name",name); + + + chain.doFilter(request,response); + } + @Override + public void destroy() { + + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/filterServelet.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/filterServelet.java" new file mode 100644 index 0000000..611affe --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/filterServelet.java" @@ -0,0 +1,28 @@ +package Seven; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/test") +public class filterServelet extends HttpServlet { + @Override + public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + String name = request.getParameter("name"); + System.out.print("原输入:"); + System.out.println(name); + + + } + + + @Override + public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request,response); + + } + +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/filterweb.html" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/filterweb.html" new file mode 100644 index 0000000..3b56155 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/filterweb.html" @@ -0,0 +1,12 @@ + + + + + Title + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/filterweb.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/filterweb.jsp" new file mode 100644 index 0000000..e6945eb --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/filterweb.jsp" @@ -0,0 +1,24 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/4 + Time: 15:49 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + + 过滤器应用---敏感词过滤 + + + +

过滤器应用---敏感词过滤

+
+ + +
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/webtest.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/webtest.jsp" new file mode 100644 index 0000000..3fba28b --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/webtest.jsp" @@ -0,0 +1,20 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/5 + Time: 14:53 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 过滤器应用---敏感词过滤 + + +

过滤器应用---敏感词过滤

+
+ + +
+ + \ No newline at end of file -- Gitee From f77157e3302e67b124a196d07bc5278286e57f38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=AD=90=E5=A4=9C?= <10602884+tian-ziye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:27:26 +0000 Subject: [PATCH 435/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=94=B0=E5=AD=90?= =?UTF-8?q?=E5=A4=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\224\260\345\255\220\345\244\234/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From f5f8cf51dd46c6018ee785616aa7aae9c197ba2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=AD=90=E5=A4=9C?= <10602884+tian-ziye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:27:53 +0000 Subject: [PATCH 436/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 田子夜 <10602884+tian-ziye@user.noreply.gitee.com> --- .../Brand.java" | 97 +++++++++++++++++++ .../ServletDemop1.java" | 39 ++++++++ .../ServletDemop2.java" | 37 +++++++ .../User.java" | 76 +++++++++++++++ .../jstl-foreach.jsp" | 60 ++++++++++++ .../jstl.jsp" | 67 +++++++++++++ .../test.jsp" | 44 +++++++++ 7 files changed, 420 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/ServletDemop1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/ServletDemop2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/jstl-foreach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Brand.java" new file mode 100644 index 0000000..3dcaa9b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/Brand.java" @@ -0,0 +1,97 @@ +package eight; + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/ServletDemop1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/ServletDemop1.java" new file mode 100644 index 0000000..d1a06e3 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/ServletDemop1.java" @@ -0,0 +1,39 @@ +package eight; + +import com.ittest.pojo.Brand; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/ServletDemop2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/ServletDemop2.java" new file mode 100644 index 0000000..ea9c74b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/ServletDemop2.java" @@ -0,0 +1,37 @@ +package eight; + +import com.ittest.pojo.Brand; +import com.ittest.pojo.User; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/User.java" new file mode 100644 index 0000000..8d7da41 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/User.java" @@ -0,0 +1,76 @@ +package eight; + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/jstl-foreach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/jstl-foreach.jsp" new file mode 100644 index 0000000..ee1c80b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/jstl-foreach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> + <%-- ${i}--%> + <%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/jstl.jsp" new file mode 100644 index 0000000..4db07ac --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/jstl.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/6 + Time: 20:20 + To change this template use File | Settings | File Templates. + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + +User + + +
+
+ + + + + + + + + + + + + + + +<%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/test.jsp" new file mode 100644 index 0000000..7bdd443 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\224\260\345\255\220\345\244\234/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; + %> + + + + +Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + +<% + for (int i = 0; i < array.length; i++) { + %> + +<% + for (int j = 0; j < array[i].length; j++) { + %> + +<% + } + %> + +<% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From c72f95eb504f9512b78fb5dac0d0d3d27e18b3d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 11:29:37 +0000 Subject: [PATCH 437/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=99=E6=BD=87?= =?UTF-8?q?=E6=B6=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\231\346\275\207\346\266\265/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 2be04399d46c82a13174b0e0f42fec931aebfe2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 11:30:15 +0000 Subject: [PATCH 438/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙潇涵 <1031002897@qq.com> --- .../filter.java" | 37 +++++++++++++++++++ .../filterServelet.java" | 28 ++++++++++++++ .../filterweb.html" | 12 ++++++ .../filterweb.jsp" | 24 ++++++++++++ .../webtest.jsp" | 20 ++++++++++ 5 files changed, 121 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/filter.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/filterServelet.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/filterweb.html" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/filterweb.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/webtest.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/filter.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/filter.java" new file mode 100644 index 0000000..09a5554 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/filter.java" @@ -0,0 +1,37 @@ +package Seven; + +import javax.servlet.*; +import javax.servlet.annotation.WebFilter; +import java.io.IOException; + +//配置Filter拦截路径 +@WebFilter("/test") +public class filter implements Filter { + @Override + public void init(FilterConfig filterConfig) throws ServletException { + + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { + request.setCharacterEncoding("utf-8"); + String[] str = new String[]{"sb","lz","2货"}; + String name = request.getParameter("name"); +// name = name.replaceAll("sb","**"); +// name = name.replaceAll("lz","**"); + for (int i = 0; i < str.length; i++) { + String index = str[i]; + name = name.replaceAll(index,"**"); + } + System.out.print("过滤后输出:"); + System.out.println(name); + request.setAttribute("name",name); + + + chain.doFilter(request,response); + } + @Override + public void destroy() { + + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/filterServelet.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/filterServelet.java" new file mode 100644 index 0000000..611affe --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/filterServelet.java" @@ -0,0 +1,28 @@ +package Seven; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/test") +public class filterServelet extends HttpServlet { + @Override + public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + String name = request.getParameter("name"); + System.out.print("原输入:"); + System.out.println(name); + + + } + + + @Override + public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request,response); + + } + +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/filterweb.html" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/filterweb.html" new file mode 100644 index 0000000..3b56155 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/filterweb.html" @@ -0,0 +1,12 @@ + + + + + Title + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/filterweb.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/filterweb.jsp" new file mode 100644 index 0000000..e6945eb --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/filterweb.jsp" @@ -0,0 +1,24 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/4 + Time: 15:49 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + + 过滤器应用---敏感词过滤 + + + +

过滤器应用---敏感词过滤

+
+ + +
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/webtest.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/webtest.jsp" new file mode 100644 index 0000000..3fba28b --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/webtest.jsp" @@ -0,0 +1,20 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/5 + Time: 14:53 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 过滤器应用---敏感词过滤 + + +

过滤器应用---敏感词过滤

+
+ + +
+ + \ No newline at end of file -- Gitee From 926b4143d317682171a1a5c7e596ffde07ecc8ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 11:30:42 +0000 Subject: [PATCH 439/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=AD=99=E6=BD=87?= =?UTF-8?q?=E6=B6=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\255\231\346\275\207\346\266\265/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 88499b67e9b65ec67ca1310778e432ab62a894eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=9C=A3=E7=83=A8?= <10602809+liu-shengye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:30:45 +0000 Subject: [PATCH 440/688] =?UTF-8?q?=E5=88=98=E5=9C=A3=E7=83=A820210340624?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘圣烨 <10602809+liu-shengye@user.noreply.gitee.com> --- .../FailServlet.java" | 21 +++++ .../LoginServlet.java" | 27 ++++++ .../SuccessServlet.java" | 21 +++++ .../loginservlet.html" | 14 +++ .../Login.java" | 51 +++++++++++ .../Register.java" | 87 +++++++++++++++++++ .../login.html" | 14 +++ .../register.html" | 17 ++++ .../Step1Servlet.java" | 21 +++++ .../Step2Servlet.java" | 25 ++++++ .../address.html" | 36 ++++++++ .../books.html" | 41 +++++++++ .../confirm.jsp" | 47 ++++++++++ 13 files changed, 422 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/loginservlet.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/register.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Step1Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Step2Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/confirm.jsp" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/FailServlet.java" new file mode 100644 index 0000000..3014aad --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/FailServlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("fail...................."); + Object username = req.getAttribute("username"); + System.out.println("登录失败,"+username+"或密码错误!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/LoginServlet.java" new file mode 100644 index 0000000..b6d304e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/LoginServlet.java" @@ -0,0 +1,27 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username = req.getParameter("username"); + String password = req.getParameter("password"); + req.setAttribute("username",username); + if("admin".equals(username)&&"admin".equals(password)){ + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + }else { + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/SuccessServlet.java" new file mode 100644 index 0000000..be26602 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/SuccessServlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("success...................."); + Object username = req.getAttribute("username"); + System.out.println("登录成功,"+username+"欢迎您!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/loginservlet.html" new file mode 100644 index 0000000..4a93bd7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Register.java" new file mode 100644 index 0000000..8b8b781 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/login.html" new file mode 100644 index 0000000..afd4139 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/login.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/register.html" new file mode 100644 index 0000000..f5eeff4 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Step1Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Step1Servlet.java" new file mode 100644 index 0000000..55cc198 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Step1Servlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/step1") +public class Step1Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[]books = req.getParameterValues("books"); + req.getSession().setAttribute("books",books); + resp.sendRedirect("/c4/address.html"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Step2Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Step2Servlet.java" new file mode 100644 index 0000000..6ce9f6d --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Step2Servlet.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/step2") +public class Step2Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String name = req.getParameter("name"); + String address = req.getParameter("address"); + HttpSession session = req.getSession(); + session.setAttribute("name",name); + session.setAttribute("address",address); + resp.sendRedirect("/c4/confirm.jsp"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/address.html" new file mode 100644 index 0000000..3725556 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/address.html" @@ -0,0 +1,36 @@ + + + + + Title + + + +

Step2:请输入寄送地址与信用卡信息

+
+ + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/books.html" new file mode 100644 index 0000000..b23035a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/books.html" @@ -0,0 +1,41 @@ + + + + + Title + + + +

Step1:选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/confirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/confirm.jsp" new file mode 100644 index 0000000..dac52fe --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/confirm.jsp" @@ -0,0 +1,47 @@ +<%@ page import="java.io.PrintWriter" %> +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/10/31 + Time: 20:42 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + HttpSession session1 = request.getSession(); + String[] books = (String[])session1.getAttribute("books"); + String name = (String)session1.getAttribute("name"); + String address = (String)session1.getAttribute("address"); + PrintWriter printWriter = response.getWriter(); +%> + + + Title + + + +
+ <%printWriter.print("

Step3:订单确认

");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("
顾客姓名"+name+"
地址"+address+"
订货项目"+ Arrays.toString(books) +"");%> + <%printWriter.print("
");%> + + + -- Gitee From 5c1b73fcefe883584032743c8012fe80128f86e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=BD=87=E6=B6=B5?= <1031002897@qq.com> Date: Tue, 13 Dec 2022 11:31:05 +0000 Subject: [PATCH 441/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙潇涵 <1031002897@qq.com> --- .../Brand.java" | 97 +++++++++++++++++++ .../ServletDemop1.java" | 39 ++++++++ .../ServletDemop2.java" | 37 +++++++ .../User.java" | 76 +++++++++++++++ .../jstl-foreach.jsp" | 60 ++++++++++++ .../jstl.jsp" | 67 +++++++++++++ .../test.jsp" | 44 +++++++++ 7 files changed, 420 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/ServletDemop1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/ServletDemop2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/jstl-foreach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Brand.java" new file mode 100644 index 0000000..3dcaa9b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/Brand.java" @@ -0,0 +1,97 @@ +package eight; + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/ServletDemop1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/ServletDemop1.java" new file mode 100644 index 0000000..d1a06e3 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/ServletDemop1.java" @@ -0,0 +1,39 @@ +package eight; + +import com.ittest.pojo.Brand; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/ServletDemop2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/ServletDemop2.java" new file mode 100644 index 0000000..ea9c74b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/ServletDemop2.java" @@ -0,0 +1,37 @@ +package eight; + +import com.ittest.pojo.Brand; +import com.ittest.pojo.User; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/User.java" new file mode 100644 index 0000000..8d7da41 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/User.java" @@ -0,0 +1,76 @@ +package eight; + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/jstl-foreach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/jstl-foreach.jsp" new file mode 100644 index 0000000..ee1c80b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/jstl-foreach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+
+ + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> + <%-- ${i}--%> + <%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/jstl.jsp" new file mode 100644 index 0000000..4db07ac --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/jstl.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/6 + Time: 20:20 + To change this template use File | Settings | File Templates. + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + +User + + +
+
+ + + + + + + + + + + + + + + +<%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/test.jsp" new file mode 100644 index 0000000..7bdd443 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\255\231\346\275\207\346\266\265/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; + %> + + + + +Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + +<% + for (int i = 0; i < array.length; i++) { + %> + +<% + for (int j = 0; j < array[i].length; j++) { + %> + +<% + } + %> + +<% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 4f700826a78f0a6c2ab7618dcb6d7fed6585b7a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=9C=A3=E7=83=A8?= <10602809+liu-shengye@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:31:14 +0000 Subject: [PATCH 442/688] =?UTF-8?q?=E5=88=98=E5=9C=A3=E7=83=A820210340624?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘圣烨 <10602809+liu-shengye@user.noreply.gitee.com> --- .../User.java" | 40 ++++++++ .../test.jsp" | 39 ++++++++ .../test.jsp" | 42 ++++++++ .../Brand.java" | 99 +++++++++++++++++++ .../ServletDemo01.java" | 35 +++++++ .../ServletDemo02.java" | 32 ++++++ .../User.java" | 74 ++++++++++++++ .../jstl.jsp" | 60 +++++++++++ .../jstlforeach.jsp" | 60 +++++++++++ .../test.jsp" | 37 +++++++ .../ShowTable.java" | 28 ++++++ 11 files changed, 546 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/test.jsp" create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/test.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/ServletDemo01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/ServletDemo02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/test.jsp" create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/ShowTable.java" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/User.java" new file mode 100644 index 0000000..b3e6146 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/User.java" @@ -0,0 +1,40 @@ +public class user { + private String name; + private int age; + private String address; + + public user(){ + + } + + public user(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getAddress() { + return address; + } + + public void setName(String name) { + this.name = name; + } + + public void setAge(int age) { + this.age = age; + } + + public void setAddress(String address) { + this.address = address; + } + +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/test.jsp" new file mode 100644 index 0000000..3998e4a --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/test.jsp" @@ -0,0 +1,39 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="com.example.Homework7.user" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new user("张三",22,"福建")); + list.add(new user("李四",23,"江西")); + list.add(new user("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.ardress} + +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/test.jsp" new file mode 100644 index 0000000..a88107d --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/test.jsp" @@ -0,0 +1,42 @@ +<%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/12/12 + Time: 21:01 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][] array = {{"一","二","三"},{"四","五","六"},{"七","八","九"}}; +%> + + + + Title + + +

Java二维数组实例

+ + + + + + + <% + for(int i = 0;i < array.length;i++){ + %> + + <% + for(int j = 0;j < array[i].length;j++){ + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Brand.java" new file mode 100644 index 0000000..c4f28f0 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/Brand.java" @@ -0,0 +1,99 @@ +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/ServletDemo01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/ServletDemo01.java" new file mode 100644 index 0000000..883981b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/ServletDemo01.java" @@ -0,0 +1,35 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/ServletDemo02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/ServletDemo02.java" new file mode 100644 index 0000000..4eb0408 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/ServletDemo02.java" @@ -0,0 +1,32 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/User.java" new file mode 100644 index 0000000..e3c34d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/User.java" @@ -0,0 +1,74 @@ +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/jstl.jsp" new file mode 100644 index 0000000..1eb2079 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/jstl.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/jstlforeach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/jstlforeach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/test.jsp" new file mode 100644 index 0000000..8977c06 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/ShowTable.java" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/ShowTable.java" new file mode 100644 index 0000000..63362ba --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\210\230\345\234\243\347\203\250/ShowTable.java" @@ -0,0 +1,28 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("张三"); + user.add("李四"); + user.add("老六"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From bd746855856b8358d69514c6e99e98b65a29356c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=95=8F=E5=BF=97?= <10602832+lin-minzhi@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:37:01 +0000 Subject: [PATCH 443/688] =?UTF-8?q?=E6=9E=97=E6=95=8F=E5=BF=9720210340619?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林敏志 <10602832+lin-minzhi@user.noreply.gitee.com> --- .../FailServlet.java" | 21 +++++ .../LoginServlet.java" | 27 ++++++ .../SuccessServlet.java" | 21 +++++ .../loginservlet.html" | 14 +++ .../Login.java" | 51 +++++++++++ .../Register.java" | 87 +++++++++++++++++++ .../login.html" | 14 +++ .../register.html" | 17 ++++ .../test.jsp" | 42 +++++++++ .../Step1Servlet.java" | 21 +++++ .../Step2Servlet.java" | 25 ++++++ .../address.html" | 36 ++++++++ .../books.html" | 41 +++++++++ .../confirm.jsp" | 47 ++++++++++ 14 files changed, 464 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/loginservlet.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/register.html" create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/test.jsp" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Step1Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Step2Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/confirm.jsp" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/FailServlet.java" new file mode 100644 index 0000000..3014aad --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/FailServlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("fail...................."); + Object username = req.getAttribute("username"); + System.out.println("登录失败,"+username+"或密码错误!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/LoginServlet.java" new file mode 100644 index 0000000..b6d304e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/LoginServlet.java" @@ -0,0 +1,27 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username = req.getParameter("username"); + String password = req.getParameter("password"); + req.setAttribute("username",username); + if("admin".equals(username)&&"admin".equals(password)){ + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + }else { + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/SuccessServlet.java" new file mode 100644 index 0000000..be26602 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/SuccessServlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("success...................."); + Object username = req.getAttribute("username"); + System.out.println("登录成功,"+username+"欢迎您!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/loginservlet.html" new file mode 100644 index 0000000..4a93bd7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Register.java" new file mode 100644 index 0000000..8b8b781 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/login.html" new file mode 100644 index 0000000..afd4139 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/login.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/register.html" new file mode 100644 index 0000000..f5eeff4 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/test.jsp" new file mode 100644 index 0000000..a88107d --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/test.jsp" @@ -0,0 +1,42 @@ +<%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/12/12 + Time: 21:01 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][] array = {{"一","二","三"},{"四","五","六"},{"七","八","九"}}; +%> + + + + Title + + +

Java二维数组实例

+ + + + + + + <% + for(int i = 0;i < array.length;i++){ + %> + + <% + for(int j = 0;j < array[i].length;j++){ + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Step1Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Step1Servlet.java" new file mode 100644 index 0000000..55cc198 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Step1Servlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/step1") +public class Step1Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[]books = req.getParameterValues("books"); + req.getSession().setAttribute("books",books); + resp.sendRedirect("/c4/address.html"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Step2Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Step2Servlet.java" new file mode 100644 index 0000000..6ce9f6d --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Step2Servlet.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/step2") +public class Step2Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String name = req.getParameter("name"); + String address = req.getParameter("address"); + HttpSession session = req.getSession(); + session.setAttribute("name",name); + session.setAttribute("address",address); + resp.sendRedirect("/c4/confirm.jsp"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/address.html" new file mode 100644 index 0000000..3725556 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/address.html" @@ -0,0 +1,36 @@ + + + + + Title + + + +

Step2:请输入寄送地址与信用卡信息

+
+ + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/books.html" new file mode 100644 index 0000000..b23035a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/books.html" @@ -0,0 +1,41 @@ + + + + + Title + + + +

Step1:选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/confirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/confirm.jsp" new file mode 100644 index 0000000..dac52fe --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/confirm.jsp" @@ -0,0 +1,47 @@ +<%@ page import="java.io.PrintWriter" %> +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/10/31 + Time: 20:42 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + HttpSession session1 = request.getSession(); + String[] books = (String[])session1.getAttribute("books"); + String name = (String)session1.getAttribute("name"); + String address = (String)session1.getAttribute("address"); + PrintWriter printWriter = response.getWriter(); +%> + + + Title + + + +
+ <%printWriter.print("

Step3:订单确认

");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("
顾客姓名"+name+"
地址"+address+"
订货项目"+ Arrays.toString(books) +"");%> + <%printWriter.print("
");%> + + + -- Gitee From 78fab49100ca0e919a1caab7947b2ebdfe165446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=95=8F=E5=BF=97?= <10602832+lin-minzhi@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 11:37:16 +0000 Subject: [PATCH 444/688] =?UTF-8?q?=E6=9E=97=E6=95=8F=E5=BF=9720210340619?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林敏志 <10602832+lin-minzhi@user.noreply.gitee.com> --- .../User.java" | 40 ++++++++ .../test.jsp" | 39 ++++++++ .../Brand.java" | 99 +++++++++++++++++++ .../ServletDemo01.java" | 35 +++++++ .../ServletDemo02.java" | 32 ++++++ .../User.java" | 74 ++++++++++++++ .../jstl.jsp" | 60 +++++++++++ .../jstlforeach.jsp" | 60 +++++++++++ .../test.jsp" | 37 +++++++ .../ShowTable.java" | 28 ++++++ 10 files changed, 504 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/test.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/ServletDemo01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/ServletDemo02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/test.jsp" create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/ShowTable.java" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/User.java" new file mode 100644 index 0000000..b3e6146 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/User.java" @@ -0,0 +1,40 @@ +public class user { + private String name; + private int age; + private String address; + + public user(){ + + } + + public user(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getAddress() { + return address; + } + + public void setName(String name) { + this.name = name; + } + + public void setAge(int age) { + this.age = age; + } + + public void setAddress(String address) { + this.address = address; + } + +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/test.jsp" new file mode 100644 index 0000000..3998e4a --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/test.jsp" @@ -0,0 +1,39 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="com.example.Homework7.user" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new user("张三",22,"福建")); + list.add(new user("李四",23,"江西")); + list.add(new user("王五",25,"浙江")); + request.setAttribute("list",list); +%> +
+ + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.ardress} + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Brand.java" new file mode 100644 index 0000000..c4f28f0 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/Brand.java" @@ -0,0 +1,99 @@ +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/ServletDemo01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/ServletDemo01.java" new file mode 100644 index 0000000..883981b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/ServletDemo01.java" @@ -0,0 +1,35 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/ServletDemo02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/ServletDemo02.java" new file mode 100644 index 0000000..4eb0408 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/ServletDemo02.java" @@ -0,0 +1,32 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/User.java" new file mode 100644 index 0000000..e3c34d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/User.java" @@ -0,0 +1,74 @@ +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/jstl.jsp" new file mode 100644 index 0000000..1eb2079 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/jstl.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/jstlforeach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/jstlforeach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/test.jsp" new file mode 100644 index 0000000..8977c06 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/ShowTable.java" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/ShowTable.java" new file mode 100644 index 0000000..63362ba --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\346\225\217\345\277\227/ShowTable.java" @@ -0,0 +1,28 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("张三"); + user.add("李四"); + user.add("老六"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From 9ee7a579328d0da84c941b73fa798c94132f0949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E9=91=AB=E6=9D=B0?= <18305932135@163.com> Date: Tue, 13 Dec 2022 11:47:09 +0000 Subject: [PATCH 445/688] =?UTF-8?q?=E6=9E=97=E9=91=AB=E6=9D=B020210340620?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林鑫杰 <18305932135@163.com> --- .../2022.9.25/FailServlet.java" | 20 +++++ .../2022.9.25/LoginServlet.java" | 39 +++++++++ .../2022.9.25/SuccessServlet.java" | 20 +++++ .../2022.9.25/register.html" | 23 +++++ .../2022.9.25/request.html" | 24 +++++ .../2022.9.30/fail.java" | 18 ++++ .../2022.9.30/login.HTML" | 17 ++++ .../2022.9.30/login.Java" | 34 ++++++++ .../2022.9.30/success.java" | 36 ++++++++ .../2022.9.24/Login.java" | 51 +++++++++++ .../2022.9.24/Register.java" | 87 +++++++++++++++++++ .../2022.9.24/login.html" | 15 ++++ .../2022.9.24/register.html" | 17 ++++ .../test.jsp" | 44 ++++++++++ .../cookie.java" | 0 .../test.java" | 55 ++++++++++++ 16 files changed, 500 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/register.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/request.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.30/fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.30/login.HTML" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.30/login.Java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.30/success.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\346\236\227\351\221\253\346\235\260/2022.9.24/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\346\236\227\351\221\253\346\235\260/2022.9.24/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\346\236\227\351\221\253\346\235\260/2022.9.24/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\346\236\227\351\221\253\346\235\260/2022.9.24/register.html" create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/test.jsp" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/cookie.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/test.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/FailServlet.java" new file mode 100644 index 0000000..b5c9f91 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/FailServlet.java" @@ -0,0 +1,20 @@ + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/LoginServlet.java" new file mode 100644 index 0000000..64f6438 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/LoginServlet.java" @@ -0,0 +1,39 @@ + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/SuccessServlet.java" new file mode 100644 index 0000000..17f4d8a --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/SuccessServlet.java" @@ -0,0 +1,20 @@ + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/register.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/register.html" new file mode 100644 index 0000000..8d6d07e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/register.html" @@ -0,0 +1,23 @@ + + + +  +  +register  + + + +
+Username:
+Password:
+Gender:男 +
+Hobby:画画 +唱歌 +跳舞 +写作 +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/request.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/request.html" new file mode 100644 index 0000000..1f08c8c --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.25/request.html" @@ -0,0 +1,24 @@ + + + +  +  +登陆界面 + + +
+Username:
+Password: +
+ + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.30/fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.30/fail.java" new file mode 100644 index 0000000..8206477 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.30/fail.java" @@ -0,0 +1,18 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail") +public class fail extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.30/login.HTML" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.30/login.HTML" new file mode 100644 index 0000000..70f8f2b --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.30/login.HTML" @@ -0,0 +1,17 @@ + + + + + 用户登录 + + +
+
+ 姓名:
+ 密码:
+ + +
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.30/login.Java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.30/login.Java" new file mode 100644 index 0000000..6d83de9 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.30/login.Java" @@ -0,0 +1,34 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.30/success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.30/success.java" new file mode 100644 index 0000000..c2cd68e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/2022.9.30/success.java" @@ -0,0 +1,36 @@ + + import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} + diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\346\236\227\351\221\253\346\235\260/2022.9.24/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\346\236\227\351\221\253\346\235\260/2022.9.24/Login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\346\236\227\351\221\253\346\235\260/2022.9.24/Login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\346\236\227\351\221\253\346\235\260/2022.9.24/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\346\236\227\351\221\253\346\235\260/2022.9.24/Register.java" new file mode 100644 index 0000000..8b8b781 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\346\236\227\351\221\253\346\235\260/2022.9.24/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\346\236\227\351\221\253\346\235\260/2022.9.24/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\346\236\227\351\221\253\346\235\260/2022.9.24/login.html" new file mode 100644 index 0000000..7993a7f --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\346\236\227\351\221\253\346\235\260/2022.9.24/login.html" @@ -0,0 +1,15 @@ + + + + + 用户登入 + + + +
+
+
+ + + + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\346\236\227\351\221\253\346\235\260/2022.9.24/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\346\236\227\351\221\253\346\235\260/2022.9.24/register.html" new file mode 100644 index 0000000..f5eeff4 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\346\236\227\351\221\253\346\235\260/2022.9.24/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+ + 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/test.jsp" new file mode 100644 index 0000000..7795ee3 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/cookie.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/cookie.java" new file mode 100644 index 0000000..e69de29 diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/test.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/test.java" new file mode 100644 index 0000000..cf1eac6 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/test.java" @@ -0,0 +1,55 @@ + +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; + @WebServlet("/test") +public class test extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + + resp.setContentType("text/html;charset=utf-8"); + + cookie[] cookies = req.getCookies(); + boolean flag=false; + if (cookies != null||cookies.length>0) { + for (cookie cookie:cookies) { + String name = cookie.getName(); + if ("lastTime".equals(name)) { + flag=true; + + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie cookie=new Cookie("lastTime",srt_date); + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} + -- Gitee From 776f71a1f0276ff336a31abf4f997ca14cecb59c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E9=91=AB=E6=9D=B0?= <18305932135@163.com> Date: Tue, 13 Dec 2022 11:47:41 +0000 Subject: [PATCH 446/688] =?UTF-8?q?=E6=9E=97=E9=91=AB=E6=9D=B020210340620?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林鑫杰 <18305932135@163.com> --- .../filter.java" | 35 ++++++ .../filterServelet.java" | 26 +++++ .../filterweb.html" | 12 +++ .../filterweb.jsp" | 24 +++++ .../webtest.jsp" | 20 ++++ .../Brand.java" | 101 ++++++++++++++++++ .../ServletDemo1.java" | 39 +++++++ .../ServletDemo2.java" | 37 +++++++ .../User.java" | 76 +++++++++++++ .../jstl-foreach.jsp" | 60 +++++++++++ .../jstl.jsp" | 67 ++++++++++++ .../test.jsp" | 44 ++++++++ .../zy.html" | 34 ++++++ 13 files changed, 575 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/filter.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/filterServelet.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/filterweb.html" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/filterweb.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/webtest.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/ServletDemo1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/ServletDemo2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/jstl-foreach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/test.jsp" create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/zy.html" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/filter.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/filter.java" new file mode 100644 index 0000000..2c82a03 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/filter.java" @@ -0,0 +1,35 @@ +import javax.servlet.*; +import javax.servlet.annotation.WebFilter; +import java.io.IOException; + +//配置Filter拦截路径 +@WebFilter("/test") +public class filter implements Filter { + @Override + public void init(FilterConfig filterConfig) throws ServletException { + + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { + request.setCharacterEncoding("utf-8"); + String[] str = new String[]{"sb","lz","2货"}; + String name = request.getParameter("name"); +// name = name.replaceAll("sb","**"); +// name = name.replaceAll("lz","**"); + for (int i = 0; i < str.length; i++) { + String index = str[i]; + name = name.replaceAll(index,"**"); + } + System.out.print("过滤后输出:"); + System.out.println(name); + request.setAttribute("name",name); + + + chain.doFilter(request,response); + } + @Override + public void destroy() { + + } +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/filterServelet.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/filterServelet.java" new file mode 100644 index 0000000..bb346d1 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/filterServelet.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/test") +public class filterServelet extends HttpServlet { + @Override + public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + String name = request.getParameter("name"); + System.out.print("原输入:"); + System.out.println(name); + + + } + + + @Override + public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request,response); + + } + +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/filterweb.html" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/filterweb.html" new file mode 100644 index 0000000..3b56155 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/filterweb.html" @@ -0,0 +1,12 @@ + + + + + Title + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/filterweb.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/filterweb.jsp" new file mode 100644 index 0000000..e6945eb --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/filterweb.jsp" @@ -0,0 +1,24 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/4 + Time: 15:49 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + + 过滤器应用---敏感词过滤 + + + +

过滤器应用---敏感词过滤

+
+ + +
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/webtest.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/webtest.jsp" new file mode 100644 index 0000000..55f167c --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/webtest.jsp" @@ -0,0 +1,20 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/5 + Time: 14:53 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 过滤器应用---敏感词过滤 + + +

过滤器应用---敏感词过滤

+
+ + +
+ + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/Brand.java" new file mode 100644 index 0000000..6ae9f9e --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/Brand.java" @@ -0,0 +1,101 @@ +package com.ittest.pojo; + +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/ServletDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/ServletDemo1.java" new file mode 100644 index 0000000..379d06f --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/ServletDemo1.java" @@ -0,0 +1,39 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/ServletDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/ServletDemo2.java" new file mode 100644 index 0000000..0edc5d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/ServletDemo2.java" @@ -0,0 +1,37 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; +import com.ittest.pojo.User; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/User.java" new file mode 100644 index 0000000..8ea795d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/User.java" @@ -0,0 +1,76 @@ +package com.ittest.pojo; + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/jstl-foreach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/jstl-foreach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/jstl-foreach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/jstl.jsp" new file mode 100644 index 0000000..9e324af --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/jstl.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/6 + Time: 20:20 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/test.jsp" new file mode 100644 index 0000000..7795ee3 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/\347\254\254\345\205\253\347\253\240/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/zy.html" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/zy.html" new file mode 100644 index 0000000..5d1e103 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\351\221\253\346\235\260/zy.html" @@ -0,0 +1,34 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: 15260319477 + Date: 2022/12/3 + Time: 21:28 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("zhu"); + user.add("yu妤"); + user.add("han涵"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From 00d749beeecc01629ad54dc54dc28346651f0f70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=B3=BD=E5=AE=B8?= <10602815+lin-zechen96@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 12:04:24 +0000 Subject: [PATCH 447/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E6=B3=BD?= =?UTF-8?q?=E5=AE=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\346\263\275\345\256\270/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From ca57236b7b5e0beaed3a94ec90e9f6b71fad4e0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=B3=BD=E5=AE=B8?= <10602815+lin-zechen96@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 12:06:13 +0000 Subject: [PATCH 448/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E6=B3=BD?= =?UTF-8?q?=E5=AE=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\346\263\275\345\256\270/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 291e3f7b6fcda3444805e08c7b9e21b9c81968a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=B3=BD=E5=AE=B8?= <10602815+lin-zechen96@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 12:06:28 +0000 Subject: [PATCH 449/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E6=B3=BD?= =?UTF-8?q?=E5=AE=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\346\263\275\345\256\270/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 881ade5c65daec3c0392943ba59260012bc09109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=B3=BD=E5=AE=B8?= <10602815+lin-zechen96@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 12:06:51 +0000 Subject: [PATCH 450/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E6=B3=BD?= =?UTF-8?q?=E5=AE=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\346\263\275\345\256\270/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From ea16086d05911311ee27b023f82f3bf83ce955bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=B3=BD=E5=AE=B8?= <10602815+lin-zechen96@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 12:07:04 +0000 Subject: [PATCH 451/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E6=B3=BD?= =?UTF-8?q?=E5=AE=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\346\263\275\345\256\270/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 92a045367db1502197aea6d75bcc68b3b37fbaa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=B3=BD=E5=AE=B8?= <10602815+lin-zechen96@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 12:07:17 +0000 Subject: [PATCH 452/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E6=B3=BD?= =?UTF-8?q?=E5=AE=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\346\263\275\345\256\270/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 2ce1179005fbe9aefd21f51aab072e107ea08003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=B3=BD=E5=AE=B8?= <10602815+lin-zechen96@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 12:08:14 +0000 Subject: [PATCH 453/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E6=B3=BD?= =?UTF-8?q?=E5=AE=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\346\263\275\345\256\270/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 87643f5906e61028fd31afd02ce685a9eb4324e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=B3=BD=E5=AE=B8?= <10602815+lin-zechen96@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 12:13:08 +0000 Subject: [PATCH 454/688] =?UTF-8?q?20210340621=E6=9E=97=E6=B3=BD=E5=AE=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林泽宸 <10602815+lin-zechen96@user.noreply.gitee.com> --- .../2022.9.25/FailServlet.java" | 20 +++++ .../2022.9.25/LoginServlet.java" | 39 +++++++++ .../2022.9.25/SuccessServlet.java" | 20 +++++ .../2022.9.25/register.html" | 23 +++++ .../2022.9.25/request.html" | 24 +++++ .../2022.9.30/fail.java" | 18 ++++ .../2022.9.30/login.HTML" | 17 ++++ .../2022.9.30/login.Java" | 34 ++++++++ .../2022.9.30/success.java" | 36 ++++++++ .../2022.9.24/Login.java" | 51 +++++++++++ .../2022.9.24/Register.java" | 87 +++++++++++++++++++ .../2022.9.24/login.html" | 15 ++++ .../2022.9.24/register.html" | 17 ++++ .../cookie.java" | 0 .../test.java" | 55 ++++++++++++ 15 files changed, 456 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/register.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/request.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.30/fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.30/login.HTML" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.30/login.Java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.30/success.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\346\236\227\351\221\253\346\235\260/2022.9.24/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\346\236\227\351\221\253\346\235\260/2022.9.24/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\346\236\227\351\221\253\346\235\260/2022.9.24/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\346\236\227\351\221\253\346\235\260/2022.9.24/register.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/cookie.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/test.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/FailServlet.java" new file mode 100644 index 0000000..b5c9f91 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/FailServlet.java" @@ -0,0 +1,20 @@ + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/LoginServlet.java" new file mode 100644 index 0000000..64f6438 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/LoginServlet.java" @@ -0,0 +1,39 @@ + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/SuccessServlet.java" new file mode 100644 index 0000000..17f4d8a --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/SuccessServlet.java" @@ -0,0 +1,20 @@ + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/register.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/register.html" new file mode 100644 index 0000000..8d6d07e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/register.html" @@ -0,0 +1,23 @@ + + + +  +  +register  + + + +
+Username:
+Password:
+Gender:男 +
+Hobby:画画 +唱歌 +跳舞 +写作 +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/request.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/request.html" new file mode 100644 index 0000000..1f08c8c --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.25/request.html" @@ -0,0 +1,24 @@ + + + +  +  +登陆界面 + + +
+Username:
+Password: +
+ + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.30/fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.30/fail.java" new file mode 100644 index 0000000..8206477 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.30/fail.java" @@ -0,0 +1,18 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail") +public class fail extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.30/login.HTML" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.30/login.HTML" new file mode 100644 index 0000000..70f8f2b --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.30/login.HTML" @@ -0,0 +1,17 @@ + + + + + 用户登录 + + +
+
+ 姓名:
+ 密码:
+ + +
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.30/login.Java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.30/login.Java" new file mode 100644 index 0000000..6d83de9 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.30/login.Java" @@ -0,0 +1,34 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.30/success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.30/success.java" new file mode 100644 index 0000000..c2cd68e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/2022.9.30/success.java" @@ -0,0 +1,36 @@ + + import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} + diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\346\236\227\351\221\253\346\235\260/2022.9.24/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\346\236\227\351\221\253\346\235\260/2022.9.24/Login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\346\236\227\351\221\253\346\235\260/2022.9.24/Login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\346\236\227\351\221\253\346\235\260/2022.9.24/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\346\236\227\351\221\253\346\235\260/2022.9.24/Register.java" new file mode 100644 index 0000000..8b8b781 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\346\236\227\351\221\253\346\235\260/2022.9.24/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\346\236\227\351\221\253\346\235\260/2022.9.24/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\346\236\227\351\221\253\346\235\260/2022.9.24/login.html" new file mode 100644 index 0000000..7993a7f --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\346\236\227\351\221\253\346\235\260/2022.9.24/login.html" @@ -0,0 +1,15 @@ + + + + + 用户登入 + + + +
+
+
+ + + + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\346\236\227\351\221\253\346\235\260/2022.9.24/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\346\236\227\351\221\253\346\235\260/2022.9.24/register.html" new file mode 100644 index 0000000..f5eeff4 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\346\236\227\351\221\253\346\235\260/2022.9.24/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+ + 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/cookie.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/cookie.java" new file mode 100644 index 0000000..e69de29 diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/test.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/test.java" new file mode 100644 index 0000000..cf1eac6 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/test.java" @@ -0,0 +1,55 @@ + +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; + @WebServlet("/test") +public class test extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + + resp.setContentType("text/html;charset=utf-8"); + + cookie[] cookies = req.getCookies(); + boolean flag=false; + if (cookies != null||cookies.length>0) { + for (cookie cookie:cookies) { + String name = cookie.getName(); + if ("lastTime".equals(name)) { + flag=true; + + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie cookie=new Cookie("lastTime",srt_date); + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} + -- Gitee From 0cb93fd92f6226b3fa82d1126f7e10abe5851a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=B3=BD=E5=AE=B8?= <10602815+lin-zechen96@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 12:13:48 +0000 Subject: [PATCH 455/688] =?UTF-8?q?20210340621=E6=9E=97=E6=B3=BD=E5=AE=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林泽宸 <10602815+lin-zechen96@user.noreply.gitee.com> --- .../filter.java" | 35 ++++++ .../filterServelet.java" | 26 +++++ .../filterweb.html" | 12 +++ .../filterweb.jsp" | 24 +++++ .../webtest.jsp" | 20 ++++ .../test.jsp" | 44 ++++++++ .../Brand.java" | 101 ++++++++++++++++++ .../ServletDemo1.java" | 39 +++++++ .../ServletDemo2.java" | 37 +++++++ .../User.java" | 76 +++++++++++++ .../jstl-foreach.jsp" | 60 +++++++++++ .../jstl.jsp" | 67 ++++++++++++ .../test.jsp" | 44 ++++++++ .../zy.html" | 34 ++++++ 14 files changed, 619 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/filter.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/filterServelet.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/filterweb.html" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/filterweb.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/webtest.jsp" create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/test.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/ServletDemo1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/ServletDemo2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/jstl-foreach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/test.jsp" create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/zy.html" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/filter.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/filter.java" new file mode 100644 index 0000000..2c82a03 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/filter.java" @@ -0,0 +1,35 @@ +import javax.servlet.*; +import javax.servlet.annotation.WebFilter; +import java.io.IOException; + +//配置Filter拦截路径 +@WebFilter("/test") +public class filter implements Filter { + @Override + public void init(FilterConfig filterConfig) throws ServletException { + + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { + request.setCharacterEncoding("utf-8"); + String[] str = new String[]{"sb","lz","2货"}; + String name = request.getParameter("name"); +// name = name.replaceAll("sb","**"); +// name = name.replaceAll("lz","**"); + for (int i = 0; i < str.length; i++) { + String index = str[i]; + name = name.replaceAll(index,"**"); + } + System.out.print("过滤后输出:"); + System.out.println(name); + request.setAttribute("name",name); + + + chain.doFilter(request,response); + } + @Override + public void destroy() { + + } +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/filterServelet.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/filterServelet.java" new file mode 100644 index 0000000..bb346d1 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/filterServelet.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/test") +public class filterServelet extends HttpServlet { + @Override + public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + String name = request.getParameter("name"); + System.out.print("原输入:"); + System.out.println(name); + + + } + + + @Override + public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request,response); + + } + +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/filterweb.html" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/filterweb.html" new file mode 100644 index 0000000..3b56155 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/filterweb.html" @@ -0,0 +1,12 @@ + + + + + Title + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/filterweb.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/filterweb.jsp" new file mode 100644 index 0000000..e6945eb --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/filterweb.jsp" @@ -0,0 +1,24 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/4 + Time: 15:49 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + + 过滤器应用---敏感词过滤 + + + +

过滤器应用---敏感词过滤

+
+ + +
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/webtest.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/webtest.jsp" new file mode 100644 index 0000000..55f167c --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/webtest.jsp" @@ -0,0 +1,20 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/5 + Time: 14:53 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 过滤器应用---敏感词过滤 + + +

过滤器应用---敏感词过滤

+
+ + +
+ + diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/test.jsp" new file mode 100644 index 0000000..7795ee3 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/Brand.java" new file mode 100644 index 0000000..6ae9f9e --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/Brand.java" @@ -0,0 +1,101 @@ +package com.ittest.pojo; + +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/ServletDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/ServletDemo1.java" new file mode 100644 index 0000000..379d06f --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/ServletDemo1.java" @@ -0,0 +1,39 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/ServletDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/ServletDemo2.java" new file mode 100644 index 0000000..0edc5d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/ServletDemo2.java" @@ -0,0 +1,37 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; +import com.ittest.pojo.User; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/User.java" new file mode 100644 index 0000000..8ea795d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/User.java" @@ -0,0 +1,76 @@ +package com.ittest.pojo; + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/jstl-foreach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/jstl-foreach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/jstl-foreach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/jstl.jsp" new file mode 100644 index 0000000..9e324af --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/jstl.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/6 + Time: 20:20 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/test.jsp" new file mode 100644 index 0000000..7795ee3 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/\347\254\254\345\205\253\347\253\240/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/zy.html" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/zy.html" new file mode 100644 index 0000000..5d1e103 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\346\263\275\345\256\270/zy.html" @@ -0,0 +1,34 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: 15260319477 + Date: 2022/12/3 + Time: 21:28 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("zhu"); + user.add("yu妤"); + user.add("han涵"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From 1855dd1ac210ad07fb2debb2323b776586d06d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=BB=94=E8=B1=AB?= <10602872+weirdozhao@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 13:58:52 +0000 Subject: [PATCH 456/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E8=B5=B5=E9=BB=94?= =?UTF-8?q?=E8=B1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\350\265\265\351\273\224\350\261\253/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From a6b8d9c35fae5be2f4e851274eb9262ce707eaa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=BB=94=E8=B1=AB?= <10602872+weirdozhao@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 13:59:34 +0000 Subject: [PATCH 457/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E8=B5=B5=E9=BB=94?= =?UTF-8?q?=E8=B1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\350\265\265\351\273\224\350\261\253/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 352dd7196e86697051c5da7a54f55d0bcb7adb20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Tue, 13 Dec 2022 14:01:46 +0000 Subject: [PATCH 458/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邹晓民2002 <862619160@qq.com> --- .../test.jsp" | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/test.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/test.jsp" new file mode 100644 index 0000000..7795ee3 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From c803bb9104cf67ce3ff49b5e25c0ddff9854eea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Tue, 13 Dec 2022 14:02:47 +0000 Subject: [PATCH 459/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=82=B9=E6=99=93?= =?UTF-8?q?=E6=B0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\202\271\346\231\223\346\260\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 3ff5b05bc9c09a532cb4971ed2eaeab1da888b22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Tue, 13 Dec 2022 14:04:39 +0000 Subject: [PATCH 460/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=82=B9=E6=99=93?= =?UTF-8?q?=E6=B0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\202\271\346\231\223\346\260\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 2d2981350796197078773d320c9ecca037d3e831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Tue, 13 Dec 2022 14:05:23 +0000 Subject: [PATCH 461/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邹晓民2002 <862619160@qq.com> --- .../filter.java" | 35 +++++++++++++++++++ .../filterServelet.java" | 26 ++++++++++++++ .../filterweb.html" | 12 +++++++ .../filterweb.jsp" | 24 +++++++++++++ .../webtest.jsp" | 20 +++++++++++ 5 files changed, 117 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/filter.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/filterServelet.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/filterweb.html" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/filterweb.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/webtest.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/filter.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/filter.java" new file mode 100644 index 0000000..2c82a03 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/filter.java" @@ -0,0 +1,35 @@ +import javax.servlet.*; +import javax.servlet.annotation.WebFilter; +import java.io.IOException; + +//配置Filter拦截路径 +@WebFilter("/test") +public class filter implements Filter { + @Override + public void init(FilterConfig filterConfig) throws ServletException { + + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { + request.setCharacterEncoding("utf-8"); + String[] str = new String[]{"sb","lz","2货"}; + String name = request.getParameter("name"); +// name = name.replaceAll("sb","**"); +// name = name.replaceAll("lz","**"); + for (int i = 0; i < str.length; i++) { + String index = str[i]; + name = name.replaceAll(index,"**"); + } + System.out.print("过滤后输出:"); + System.out.println(name); + request.setAttribute("name",name); + + + chain.doFilter(request,response); + } + @Override + public void destroy() { + + } +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/filterServelet.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/filterServelet.java" new file mode 100644 index 0000000..bb346d1 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/filterServelet.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/test") +public class filterServelet extends HttpServlet { + @Override + public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + String name = request.getParameter("name"); + System.out.print("原输入:"); + System.out.println(name); + + + } + + + @Override + public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request,response); + + } + +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/filterweb.html" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/filterweb.html" new file mode 100644 index 0000000..3b56155 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/filterweb.html" @@ -0,0 +1,12 @@ + + + + + Title + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/filterweb.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/filterweb.jsp" new file mode 100644 index 0000000..e6945eb --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/filterweb.jsp" @@ -0,0 +1,24 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/4 + Time: 15:49 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + + 过滤器应用---敏感词过滤 + + + +

过滤器应用---敏感词过滤

+
+ + +
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/webtest.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/webtest.jsp" new file mode 100644 index 0000000..55f167c --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/webtest.jsp" @@ -0,0 +1,20 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/5 + Time: 14:53 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 过滤器应用---敏感词过滤 + + +

过滤器应用---敏感词过滤

+
+ + +
+ + -- Gitee From 5d0292d46d29e7b26fd422de9826d3c6913a6560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Tue, 13 Dec 2022 14:06:16 +0000 Subject: [PATCH 462/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=82=B9=E6=99=93?= =?UTF-8?q?=E6=B0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\202\271\346\231\223\346\260\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 3e690ed1258327b232f0d3ad54b6bc68dd735fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Tue, 13 Dec 2022 14:07:00 +0000 Subject: [PATCH 463/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邹晓民2002 <862619160@qq.com> --- .../CheckCodeServlet.java" | 30 ++++++++++ .../register.html" | 48 +++++++++++++++ .../register.jsp" | 60 +++++++++++++++++++ 3 files changed, 138 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/CheckCodeServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/register.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/register.jsp" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/CheckCodeServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/CheckCodeServlet.java" new file mode 100644 index 0000000..f4f75d7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/CheckCodeServlet.java" @@ -0,0 +1,30 @@ +package com.itheima.web; + +import com.itheima.util.CheckCodeUtil; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStream; +@WebServlet("/CheckCodeServlet") +public class CheckCodeServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + ServletOutputStream os = resp.getOutputStream(); + String checkcode = CheckCodeUtil.outputVerifyImage(80, 40, os, 4); + //存入Sessio + HttpSession session = req.getSession(); + session.setAttribute("checkCodeGen",checkcode); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doGet(req,resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/register.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/register.html" new file mode 100644 index 0000000..a2bf762 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/register.html" @@ -0,0 +1,48 @@ + + + + + 欢迎注册 + + + + +
+
+

欢迎注册

+ 已有帐号? 登录 +
+
+ + + + + + + + + + + + + + +
用户名 + +
+ +
密码 + +
+ +
+ +
+ +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/register.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/register.jsp" new file mode 100644 index 0000000..b6394c8 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/register.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + + + 欢迎注册 + + + + +
+
+

欢迎注册

+ 已有帐号? 登录 +
+
+ + + + + + + + + + + + + + + + + +
用户名 + +
+ +
密码 + +
+ +
验证码 + + + 看不清 +
+ +
+ +
+
+
+
+ + + -- Gitee From ffbfbf555e87d72f35797408dcb707f902156981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Tue, 13 Dec 2022 14:07:40 +0000 Subject: [PATCH 464/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=82=B9=E6=99=93?= =?UTF-8?q?=E6=B0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\202\271\346\231\223\346\260\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 4bd6bf331fb5379deee5bca47aeee0c3666f8396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Tue, 13 Dec 2022 14:08:56 +0000 Subject: [PATCH 465/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=82=B9=E6=99=93?= =?UTF-8?q?=E6=B0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\202\271\346\231\223\346\260\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 5e69095d776cd94e11dee2076efd16fd863f8719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Tue, 13 Dec 2022 14:09:42 +0000 Subject: [PATCH 466/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邹晓民2002 <862619160@qq.com> --- .../Brand.java" | 101 ++++++++++++++++++ .../ServletDemo1.java" | 39 +++++++ .../ServletDemo2.java" | 37 +++++++ .../User.java" | 76 +++++++++++++ .../jstl-foreach.jsp" | 60 +++++++++++ .../jstl.jsp" | 67 ++++++++++++ .../test.jsp" | 44 ++++++++ 7 files changed, 424 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/ServletDemo1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/ServletDemo2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/jstl-foreach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/Brand.java" new file mode 100644 index 0000000..6ae9f9e --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/Brand.java" @@ -0,0 +1,101 @@ +package com.ittest.pojo; + +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/ServletDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/ServletDemo1.java" new file mode 100644 index 0000000..379d06f --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/ServletDemo1.java" @@ -0,0 +1,39 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/ServletDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/ServletDemo2.java" new file mode 100644 index 0000000..0edc5d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/ServletDemo2.java" @@ -0,0 +1,37 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; +import com.ittest.pojo.User; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/User.java" new file mode 100644 index 0000000..8ea795d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/User.java" @@ -0,0 +1,76 @@ +package com.ittest.pojo; + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/jstl-foreach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/jstl-foreach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/jstl-foreach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/jstl.jsp" new file mode 100644 index 0000000..9e324af --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/jstl.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/6 + Time: 20:20 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/test.jsp" new file mode 100644 index 0000000..7795ee3 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From ed4cc4528547c6270a373c4b37e6441ca423bd71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Tue, 13 Dec 2022 14:10:07 +0000 Subject: [PATCH 467/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=82=B9=E6=99=93?= =?UTF-8?q?=E6=B0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\202\271\346\231\223\346\260\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From db1ece1d678e235028e86fd5bd2fa5a87e0db393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Tue, 13 Dec 2022 14:10:53 +0000 Subject: [PATCH 468/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=82=B9=E6=99=93?= =?UTF-8?q?=E6=B0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\202\271\346\231\223\346\260\221/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\202\271\346\231\223\346\260\221/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 0f1971e28aeb5a122760429b18c53ccc5b5c6c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Tue, 13 Dec 2022 14:11:26 +0000 Subject: [PATCH 469/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邹晓民2002 <862619160@qq.com> --- .../addressServlet.java" | 34 +++++++++ .../shopcarServlet.java" | 46 ++++++++++++ .../step1.html" | 35 +++++++++ .../step2.html" | 44 +++++++++++ .../step3.jsp" | 73 +++++++++++++++++++ 5 files changed, 232 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/addressServlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/shopcarServlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step1.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step2.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step3.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/addressServlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/addressServlet.java" new file mode 100644 index 0000000..3760bde --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/addressServlet.java" @@ -0,0 +1,34 @@ +package com.web; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.net.URLEncoder; + +@WebServlet("/addressServlet") +public class addressServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("UTF-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = new String(req.getParameter("address").getBytes("ISO-8859-1"),"UTF-8"); + String cardcheck = req.getParameter("cardcheck"); + String cardnumber = req.getParameter("cardnumber"); + HttpSession session = req.getSession(); + session.setAttribute("name",name); + session.setAttribute("address",address); + session.setAttribute("cardcheck",cardcheck); + session.setAttribute("cardnumber",cardnumber); + resp.sendRedirect("/webWork/step3.jsp"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doGet(req,resp); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/shopcarServlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/shopcarServlet.java" new file mode 100644 index 0000000..5a47470 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/shopcarServlet.java" @@ -0,0 +1,46 @@ +package com.web; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/shopcarServlet") +public class shopcarServlet extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=UTF-8"); + String javacheck = req.getParameter("javacheck"); + String Oraclecheck = req.getParameter("Oraclecheck"); + String Strutscheck = req.getParameter("Strutscheck"); +// if ("java".equals(javacheck)){ +// Cookie check1 = new Cookie("check1", javacheck); +// check1.setMaxAge(60*60*24*7); +// resp.addCookie(check1); +// } +// if ("Oracle".equals(Oraclecheck)){ +// Cookie check2 = new Cookie("check2", Oraclecheck); +// check2.setMaxAge(60*60*24*7); +// resp.addCookie(check2); +// } +// if ("Struts".equals(Strutscheck)){ +// Cookie check3 = new Cookie("check3", Strutscheck); +// check3.setMaxAge(60*60*24*7); +// resp.addCookie(check3); +// } + HttpSession session = req.getSession(); + session.setAttribute("javacheck",javacheck); + session.setAttribute("Oraclecheck",Oraclecheck); + session.setAttribute("Strutscheck",Strutscheck); + String contextPath = req.getContextPath(); + resp.sendRedirect("/webWork/step2.html"); +// req.getRequestDispatcher("/step2.html").forward(req,resp); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step1.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step1.html" new file mode 100644 index 0000000..f8f1376 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step1.html" @@ -0,0 +1,35 @@ + + + + + 购物车 + + +
+ +

Step1:选择要购买的书籍

+ + + + + + + + + + + + + + + + + + + + + +
书名购买
Java

Oraclecheck

Strutscheck

+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step2.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step2.html" new file mode 100644 index 0000000..2ab8b4e --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step2.html" @@ -0,0 +1,44 @@ + + + + + 订单信息 + + +

请输入寄送地址与信用卡信息

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
信用卡信息
种类Master
Visa
卡号
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step3.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step3.jsp" new file mode 100644 index 0000000..bf53de8 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step3.jsp" @@ -0,0 +1,73 @@ +<%-- + Created by IntelliJ IDEA. + User: ɶ + Date: 2022/10/31 + Time: 17:07 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" pageEncoding="gb2312"%> +<%@ page contentType="text/html;charset=gb2312"%> +<%@ page import="java.net.URLEncoder" %> +<%@ page import="java.net.URLDecoder" %> + + + + ȷ + + +
+ + + <% + request.setCharacterEncoding("utf-8"); + %> + + + <% +// response.setContentType("test/http;charset=UTF-8"); + HttpSession session1 = request.getSession(); + String name = String.valueOf(session1.getAttribute("name")); + String javacheck = (String) session1.getAttribute("javacheck"); + String Oraclecheck = (String) session1.getAttribute("Oraclecheck"); + String Strutscheck = (String) session1.getAttribute("Strutscheck"); + String address = String.valueOf(session1.getAttribute("address")); + String cardcheck = String.valueOf(session1.getAttribute("cardcheck")); + String cardnumber = String.valueOf(session1.getAttribute("cardnumber")); + + %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
˿<%out.write(name);%>
ַ<%URLDecoder.decode(address,"UTF-8");%> + <%out.print(address);%>
Ϣ
ÿ<%out.write(cardcheck);%>
<%out.write(cardnumber);%>
Ŀ
<%out.write(javacheck);%>
<%out.print(Oraclecheck);%>
<%out.print(Strutscheck);%>
+
+ + -- Gitee From 8c4308021c1de2616442803f7f362fc9cadda05c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=BB=94=E8=B1=AB?= <10602872+weirdozhao@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 14:17:59 +0000 Subject: [PATCH 470/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 赵黔豫 <10602872+weirdozhao@user.noreply.gitee.com> --- .../Login.html" | 26 ++++++++ .../Login.java" | 48 ++++++++++++++ .../Register.html" | 34 ++++++++++ .../Register.java" | 63 +++++++++++++++++++ 4 files changed, 171 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Register.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Register.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Login.html" new file mode 100644 index 0000000..edeb256 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Login.html" @@ -0,0 +1,26 @@ + + + + + Title + + +

登录页面

+
+ + + + + + + + + + + + + +
用户名:
密码:
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Login.java" new file mode 100644 index 0000000..8418d5b --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Login.java" @@ -0,0 +1,48 @@ +package jsp; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get。。。。。"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post。。。。"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Register.html" new file mode 100644 index 0000000..7ef38ab --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Register.html" @@ -0,0 +1,34 @@ + + + + + Title + + +

注册页面

+
+ + + + + + + + + + + + + + + + + + + + + +
用户名:
密码:
性别:
爱好:打游戏读书运动
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Register.java" new file mode 100644 index 0000000..b4485f0 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Register.java" @@ -0,0 +1,63 @@ +package jsp; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; + + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("servlet.........get........."); + req.setCharacterEncoding("utf-8"); + String parameterString = req.getQueryString(); + System.out.println(parameterString); + String[] parametersArr = parameterString.split("&"); + String username = parametersArr[0].split("=")[1]; + String password = parametersArr[1].split("=")[1]; + String gander = parametersArr[2].split("=")[1]; + String[] hobbies = req.getParameterValues("hobby"); + + System.out.println(username); + System.out.println(password); + System.out.println(gander); + System.out.println(Arrays.toString(hobbies)); + + // for (int i = 0; i Date: Tue, 13 Dec 2022 14:41:35 +0000 Subject: [PATCH 471/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=83=91=E4=BD=B3?= =?UTF-8?q?=E7=86=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\203\221\344\275\263\347\206\240/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 4a6fff29906f6b74ad4f172388089c598bca8de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=B3=E7=86=A0?= <10602834+Anyi-Zheng@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 14:43:16 +0000 Subject: [PATCH 472/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 郑佳熠 <10602834+Anyi-Zheng@user.noreply.gitee.com> --- .../Login.java" | 46 ++++++++++++++ .../Register.java" | 61 +++++++++++++++++++ .../login.html" | 26 ++++++++ .../register.html" | 34 +++++++++++ 4 files changed, 167 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Login.java" new file mode 100644 index 0000000..b50557c --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Login.java" @@ -0,0 +1,46 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get。。。。。"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post。。。。"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Register.java" new file mode 100644 index 0000000..8be1732 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Register.java" @@ -0,0 +1,61 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; + + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("servlet.........get........."); + req.setCharacterEncoding("utf-8"); + String parameterString = req.getQueryString(); + System.out.println(parameterString); + String[] parametersArr = parameterString.split("&"); + String username = parametersArr[0].split("=")[1]; + String password = parametersArr[1].split("=")[1]; + String gander = parametersArr[2].split("=")[1]; + String[] hobbies = req.getParameterValues("hobby"); + + System.out.println(username); + System.out.println(password); + System.out.println(gander); + System.out.println(Arrays.toString(hobbies)); + + // for (int i = 0; i + + + + Title + + +

登录页面

+
+ + + + + + + + + + + + + +
用户名:
密码:
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/register.html" new file mode 100644 index 0000000..7ef38ab --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/register.html" @@ -0,0 +1,34 @@ + + + + + Title + + +

注册页面

+
+ + + + + + + + + + + + + + + + + + + + + +
用户名:
密码:
性别:
爱好:打游戏读书运动
+
+ + \ No newline at end of file -- Gitee From 739af62273615223a4b1a8f33bddeb6eff4466ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=B3=E7=86=A0?= <10602834+Anyi-Zheng@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 15:36:33 +0000 Subject: [PATCH 473/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=83=91=E4=BD=B3?= =?UTF-8?q?=E7=86=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\203\221\344\275\263\347\206\240/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 7a81c67e0ef17a99c3036ec92eee8e0575b753e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=B3=E7=86=A0?= <10602834+Anyi-Zheng@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 15:37:20 +0000 Subject: [PATCH 474/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 郑佳熠 <10602834+Anyi-Zheng@user.noreply.gitee.com> --- .../FailServlet.java" | 21 +++++++++++++++ .../LoginServlet.java" | 27 +++++++++++++++++++ .../SuccessServlet.java" | 21 +++++++++++++++ .../loginservlet.html" | 14 ++++++++++ 4 files changed, 83 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/loginservlet.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/FailServlet.java" new file mode 100644 index 0000000..a10f150 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/FailServlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("fail...................."); + Object username = req.getAttribute("username"); + System.out.println("登录失败,"+username+"或密码错误!"); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/LoginServlet.java" new file mode 100644 index 0000000..b6d304e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/LoginServlet.java" @@ -0,0 +1,27 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username = req.getParameter("username"); + String password = req.getParameter("password"); + req.setAttribute("username",username); + if("admin".equals(username)&&"admin".equals(password)){ + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + }else { + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/SuccessServlet.java" new file mode 100644 index 0000000..be26602 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/SuccessServlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("success...................."); + Object username = req.getAttribute("username"); + System.out.println("登录成功,"+username+"欢迎您!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/loginservlet.html" new file mode 100644 index 0000000..4a93bd7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file -- Gitee From da321c12a87be33edec3bcac48b2cf5862ea0f21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=B3=E7=86=A0?= <10602834+Anyi-Zheng@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 15:38:30 +0000 Subject: [PATCH 475/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=83=91=E4=BD=B3?= =?UTF-8?q?=E7=86=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\203\221\344\275\263\347\206\240/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 712e704147955d2de7bd03ed2839e5c6a91bed3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=B3=E7=86=A0?= <10602834+Anyi-Zheng@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 15:39:00 +0000 Subject: [PATCH 476/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 郑佳熠 <10602834+Anyi-Zheng@user.noreply.gitee.com> --- .../Step1Servlet.java" | 21 +++++++++ .../Step2Servlet.java" | 25 ++++++++++ .../address.html" | 36 ++++++++++++++ .../books.html" | 41 ++++++++++++++++ .../confirm.jsp" | 47 +++++++++++++++++++ 5 files changed, 170 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Step1Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Step2Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/confirm.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Step1Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Step1Servlet.java" new file mode 100644 index 0000000..55cc198 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Step1Servlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/step1") +public class Step1Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[]books = req.getParameterValues("books"); + req.getSession().setAttribute("books",books); + resp.sendRedirect("/c4/address.html"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Step2Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Step2Servlet.java" new file mode 100644 index 0000000..6ce9f6d --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Step2Servlet.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/step2") +public class Step2Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String name = req.getParameter("name"); + String address = req.getParameter("address"); + HttpSession session = req.getSession(); + session.setAttribute("name",name); + session.setAttribute("address",address); + resp.sendRedirect("/c4/confirm.jsp"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/address.html" new file mode 100644 index 0000000..3725556 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/address.html" @@ -0,0 +1,36 @@ + + + + + Title + + + +

Step2:请输入寄送地址与信用卡信息

+
+ + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/books.html" new file mode 100644 index 0000000..b23035a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/books.html" @@ -0,0 +1,41 @@ + + + + + Title + + + +

Step1:选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/confirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/confirm.jsp" new file mode 100644 index 0000000..23d6816 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/confirm.jsp" @@ -0,0 +1,47 @@ +<%@ page import="java.io.PrintWriter" %> +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/10/31 + Time: 20:42 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + HttpSession session1 = request.getSession(); + String[] books = (String[])session1.getAttribute("books"); + String name = (String)session1.getAttribute("name"); + String address = (String)session1.getAttribute("address"); + PrintWriter printWriter = response.getWriter(); +%> + + + Title + + + +
+ <%printWriter.print("

Step3:订单确认

");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("
顾客姓名"+name+"
地址"+address+"
订货项目"+ Arrays.toString(books) +"");%> + <%printWriter.print("
");%> + + + \ No newline at end of file -- Gitee From cd36abe75bc39660358aa828bda1994638b159a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=B3=E7=86=A0?= <10602834+Anyi-Zheng@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 23:15:36 +0000 Subject: [PATCH 477/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=83=91=E4=BD=B3?= =?UTF-8?q?=E7=86=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\203\221\344\275\263\347\206\240/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 3195bfafb352d35511544e033fef9908328ff7c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=B3=E7=86=A0?= <10602834+Anyi-Zheng@user.noreply.gitee.com> Date: Tue, 13 Dec 2022 23:16:20 +0000 Subject: [PATCH 478/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 郑佳熠 <10602834+Anyi-Zheng@user.noreply.gitee.com> --- .../test.jsp" | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/test.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/test.jsp" new file mode 100644 index 0000000..136f997 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/test.jsp" @@ -0,0 +1,42 @@ +<%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/12/12 + Time: 21:01 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][] array = {{"一","二","三"},{"四","五","六"},{"七","八","九"}}; +%> + + + + Title + + +

Java二维数组实例

+
+ + + + + + <% + for(int i = 0;i < array.length;i++){ + %> + + <% + for(int j = 0;j < array[i].length;j++){ + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 448d02f0dacf41b6ae12324491bf58ea9f004a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=B3=E7=86=A0?= <10602834+Anyi-Zheng@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 01:37:08 +0000 Subject: [PATCH 479/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=83=91=E4=BD=B3?= =?UTF-8?q?=E7=86=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\203\221\344\275\263\347\206\240/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 3285308b3a31d3c12b1018250e8662faa138f0d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=B3=E7=86=A0?= <10602834+Anyi-Zheng@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 01:37:39 +0000 Subject: [PATCH 480/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 郑佳熠 <10602834+Anyi-Zheng@user.noreply.gitee.com> --- .../test.jsp" | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/test.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/test.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/test.jsp" new file mode 100644 index 0000000..6c14bbf --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/test.jsp" @@ -0,0 +1,35 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %><%-- +<%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/11/13 + Time: 21:24 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("妙蛙种子"); + user.add("小火龙"); + user.add("杰尼龟"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From 7526cd0705553d42d9de597a90faaea640ccb55f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=BB=94=E8=B1=AB?= <10602872+weirdozhao@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 03:52:07 +0000 Subject: [PATCH 481/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E8=B5=B5=E9=BB=94?= =?UTF-8?q?=E8=B1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\350\265\265\351\273\224\350\261\253/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 65164d79d019d12e9a4e78171d01fce962d2c033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=BB=94=E8=B1=AB?= <10602872+weirdozhao@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 03:53:29 +0000 Subject: [PATCH 482/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 赵黔豫 <10602872+weirdozhao@user.noreply.gitee.com> --- .../FailSevlet.java" | 22 +++++++++++++++ .../LoginServlet.java" | 28 +++++++++++++++++++ .../SuccessServlet.java" | 22 +++++++++++++++ .../loginservlet.html" | 14 ++++++++++ 4 files changed, 86 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/FailSevlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/loginservlet.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/FailSevlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/FailSevlet.java" new file mode 100644 index 0000000..c29b421 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/FailSevlet.java" @@ -0,0 +1,22 @@ +package jsp; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("fail...................."); + Object username = req.getAttribute("username"); + System.out.println("登录失败,"+username+"或密码错误!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/LoginServlet.java" new file mode 100644 index 0000000..91a454c --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/LoginServlet.java" @@ -0,0 +1,28 @@ +package jsp; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username = req.getParameter("username"); + String password = req.getParameter("password"); + req.setAttribute("username",username); + if("admin".equals(username)&&"admin".equals(password)){ + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + }else { + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/SuccessServlet.java" new file mode 100644 index 0000000..46003ee --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/SuccessServlet.java" @@ -0,0 +1,22 @@ +package jsp; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("success...................."); + Object username = req.getAttribute("username"); + System.out.println("登录成功,"+username+"欢迎您!"); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/loginservlet.html" new file mode 100644 index 0000000..4a93bd7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file -- Gitee From 0fba5c867141097cb9b4824499508ec3554a4493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=BB=94=E8=B1=AB?= <10602872+weirdozhao@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 03:54:02 +0000 Subject: [PATCH 483/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E8=B5=B5=E9=BB=94?= =?UTF-8?q?=E8=B1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\350\265\265\351\273\224\350\261\253/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From a752f9b2ca3093b4f2155a9594e71b3d17c58707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=B3=E7=86=A0?= <10602834+Anyi-Zheng@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 03:59:26 +0000 Subject: [PATCH 484/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=83=91=E4=BD=B3?= =?UTF-8?q?=E7=86=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\203\221\344\275\263\347\206\240/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 2fc7f3deed9cd3628218c1a022a75af7d18959f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=B3=E7=86=A0?= <10602834+Anyi-Zheng@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 03:59:54 +0000 Subject: [PATCH 485/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 郑佳熠 <10602834+Anyi-Zheng@user.noreply.gitee.com> --- .../test.jsp" | 39 ++++++++++++++++++ .../user.jsp" | 40 +++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/test.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/user.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/test.jsp" new file mode 100644 index 0000000..3998e4a --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/test.jsp" @@ -0,0 +1,39 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="com.example.Homework7.user" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new user("张三",22,"福建")); + list.add(new user("李四",23,"江西")); + list.add(new user("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.ardress} + +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/user.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/user.jsp" new file mode 100644 index 0000000..b3e6146 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/user.jsp" @@ -0,0 +1,40 @@ +public class user { + private String name; + private int age; + private String address; + + public user(){ + + } + + public user(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getAddress() { + return address; + } + + public void setName(String name) { + this.name = name; + } + + public void setAge(int age) { + this.age = age; + } + + public void setAddress(String address) { + this.address = address; + } + +} \ No newline at end of file -- Gitee From d8e3e069758af63d8ff50a2ce79d8180af51ac5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=BB=94=E8=B1=AB?= <10602872+weirdozhao@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 04:00:04 +0000 Subject: [PATCH 486/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 赵黔豫 <10602872+weirdozhao@user.noreply.gitee.com> --- .../Step1Servlet.java" | 22 +++++++++ .../Step2Servlet.java" | 26 ++++++++++ .../address.html" | 36 ++++++++++++++ .../books.html" | 41 ++++++++++++++++ .../comfirm.jsp" | 47 +++++++++++++++++++ 5 files changed, 172 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Step1Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Step2Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/comfirm.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Step1Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Step1Servlet.java" new file mode 100644 index 0000000..c17408c --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Step1Servlet.java" @@ -0,0 +1,22 @@ +package jsp; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/step1") +public class Step1Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[]books = req.getParameterValues("books"); + req.getSession().setAttribute("books",books); + resp.sendRedirect("/c4/address.html"); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Step2Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Step2Servlet.java" new file mode 100644 index 0000000..598f123 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Step2Servlet.java" @@ -0,0 +1,26 @@ +package jsp; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/step2") +public class Step2Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String name = req.getParameter("name"); + String address = req.getParameter("address"); + HttpSession session = req.getSession(); + session.setAttribute("name",name); + session.setAttribute("address",address); + resp.sendRedirect("/c4/confirm.jsp"); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/address.html" new file mode 100644 index 0000000..370f02e --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/address.html" @@ -0,0 +1,36 @@ + + + + + Title + + + +

Step2:请输入寄送地址与信用卡信息

+
+ + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/books.html" new file mode 100644 index 0000000..b23035a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/books.html" @@ -0,0 +1,41 @@ + + + + + Title + + + +

Step1:选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/comfirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/comfirm.jsp" new file mode 100644 index 0000000..23d6816 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/comfirm.jsp" @@ -0,0 +1,47 @@ +<%@ page import="java.io.PrintWriter" %> +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/10/31 + Time: 20:42 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + HttpSession session1 = request.getSession(); + String[] books = (String[])session1.getAttribute("books"); + String name = (String)session1.getAttribute("name"); + String address = (String)session1.getAttribute("address"); + PrintWriter printWriter = response.getWriter(); +%> + + + Title + + + +
+ <%printWriter.print("

Step3:订单确认

");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("
顾客姓名"+name+"
地址"+address+"
订货项目"+ Arrays.toString(books) +"");%> + <%printWriter.print("
");%> + + + \ No newline at end of file -- Gitee From 8576093d714e7baf78e5cbe7ae15e8d5d084e55d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=BB=94=E8=B1=AB?= <10602872+weirdozhao@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 04:00:19 +0000 Subject: [PATCH 487/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E8=B5=B5=E9=BB=94?= =?UTF-8?q?=E8=B1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\350\265\265\351\273\224\350\261\253/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 90fb7de7371d22a4f0593c94029e2279de229883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=B3=E7=86=A0?= <10602834+Anyi-Zheng@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 04:00:30 +0000 Subject: [PATCH 488/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=83=91=E4=BD=B3?= =?UTF-8?q?=E7=86=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\203\221\344\275\263\347\206\240/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 6f24cc839ac89967d828f273dd8d0c32907917cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=B3=E7=86=A0?= <10602834+Anyi-Zheng@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 04:01:03 +0000 Subject: [PATCH 489/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 郑佳熠 <10602834+Anyi-Zheng@user.noreply.gitee.com> --- .../Brand.java" | 99 +++++++++++++++++++ .../ServletDemo01.java" | 35 +++++++ .../ServletDemo02.java" | 32 ++++++ .../User.java" | 74 ++++++++++++++ .../jstl.jsp" | 60 +++++++++++ .../jstlforeach.jsp" | 60 +++++++++++ .../test.jsp" | 37 +++++++ 7 files changed, 397 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/ServletDemo01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/ServletDemo02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Brand.java" new file mode 100644 index 0000000..9b6c429 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/Brand.java" @@ -0,0 +1,99 @@ +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/ServletDemo01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/ServletDemo01.java" new file mode 100644 index 0000000..883981b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/ServletDemo01.java" @@ -0,0 +1,35 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/ServletDemo02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/ServletDemo02.java" new file mode 100644 index 0000000..4eb0408 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/ServletDemo02.java" @@ -0,0 +1,32 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/User.java" new file mode 100644 index 0000000..e3c34d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/User.java" @@ -0,0 +1,74 @@ +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/jstl.jsp" new file mode 100644 index 0000000..1eb2079 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/jstl.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+
+ + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/jstlforeach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/jstlforeach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/test.jsp" new file mode 100644 index 0000000..8977c06 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\221\344\275\263\347\206\240/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 09ffbda6529bc2b1d55c02eda8bcfd60a54b673e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=BB=94=E8=B1=AB?= <10602872+weirdozhao@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 04:01:24 +0000 Subject: [PATCH 490/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 赵黔豫 <10602872+weirdozhao@user.noreply.gitee.com> --- .../test.jsp" | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/test.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/test.jsp" new file mode 100644 index 0000000..136f997 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/test.jsp" @@ -0,0 +1,42 @@ +<%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/12/12 + Time: 21:01 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][] array = {{"一","二","三"},{"四","五","六"},{"七","八","九"}}; +%> + + + + Title + + +

Java二维数组实例

+ + + + + + + <% + for(int i = 0;i < array.length;i++){ + %> + + <% + for(int j = 0;j < array[i].length;j++){ + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 025d9035f63a92516a3b978c07f9830a38b3ab03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=BB=94=E8=B1=AB?= <10602872+weirdozhao@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 04:01:40 +0000 Subject: [PATCH 491/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E8=B5=B5=E9=BB=94?= =?UTF-8?q?=E8=B1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\350\265\265\351\273\224\350\261\253/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 4aa6bfded39357075d9f425509e481bf7567abcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=BB=94=E8=B1=AB?= <10602872+weirdozhao@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 04:03:10 +0000 Subject: [PATCH 492/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 赵黔豫 <10602872+weirdozhao@user.noreply.gitee.com> --- .../test.jsp" | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/test.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/test.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/test.jsp" new file mode 100644 index 0000000..6c14bbf --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/test.jsp" @@ -0,0 +1,35 @@ +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %><%-- +<%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/11/13 + Time: 21:24 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("妙蛙种子"); + user.add("小火龙"); + user.add("杰尼龟"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From 4909515f44c7a5e1730d8ed9c87e787f8803468b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=BB=94=E8=B1=AB?= <10602872+weirdozhao@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 04:07:17 +0000 Subject: [PATCH 493/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E8=B5=B5=E9=BB=94?= =?UTF-8?q?=E8=B1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\350\265\265\351\273\224\350\261\253/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 6745b73688ca63bb1cf1317ffc1b2d98e5736b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=BB=94=E8=B1=AB?= <10602872+weirdozhao@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 04:07:50 +0000 Subject: [PATCH 494/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 赵黔豫 <10602872+weirdozhao@user.noreply.gitee.com> --- .../User.java" | 41 +++++++++++++++++++ .../test.jsp" | 39 ++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/User.java" new file mode 100644 index 0000000..3052719 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/User.java" @@ -0,0 +1,41 @@ +package jsp; +public class User { + private String name; + private int age; + private String address; + + public User(){ + + } + + public User(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getAddress() { + return address; + } + + public void setName(String name) { + this.name = name; + } + + public void setAge(int age) { + this.age = age; + } + + public void setAddress(String address) { + this.address = address; + } + +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/test.jsp" new file mode 100644 index 0000000..3998e4a --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/test.jsp" @@ -0,0 +1,39 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="com.example.Homework7.user" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new user("张三",22,"福建")); + list.add(new user("李四",23,"江西")); + list.add(new user("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.ardress} + +
+ + \ No newline at end of file -- Gitee From a7b6e0eabd11f00c453c9b6fd4003e2d500e6664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=BB=94=E8=B1=AB?= <10602872+weirdozhao@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 04:08:44 +0000 Subject: [PATCH 495/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E8=B5=B5=E9=BB=94?= =?UTF-8?q?=E8=B1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\350\265\265\351\273\224\350\261\253/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 2e838a54b8445904b89729a38c803bed9079d8fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=BB=94=E8=B1=AB?= <10602872+weirdozhao@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 04:13:37 +0000 Subject: [PATCH 496/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 赵黔豫 <10602872+weirdozhao@user.noreply.gitee.com> --- .../Brand.java" | 96 +++++++++++++++++++ .../ServletDemo01.java" | 37 +++++++ .../ServletDemo02.java" | 34 +++++++ .../User.java" | 76 +++++++++++++++ .../jstl.jsp" | 60 ++++++++++++ .../jstlforeach.jsp" | 60 ++++++++++++ .../test.jsp" | 37 +++++++ 7 files changed, 400 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/ServletDemo01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/ServletDemo02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Brand.java" new file mode 100644 index 0000000..791fb97 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/Brand.java" @@ -0,0 +1,96 @@ +package jsp; +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/ServletDemo01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/ServletDemo01.java" new file mode 100644 index 0000000..b9e249a --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/ServletDemo01.java" @@ -0,0 +1,37 @@ +package jsp; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/ServletDemo02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/ServletDemo02.java" new file mode 100644 index 0000000..b3d3b80 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/ServletDemo02.java" @@ -0,0 +1,34 @@ +package jsp; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/User.java" new file mode 100644 index 0000000..538b7f7 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/User.java" @@ -0,0 +1,76 @@ +package jsp; + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/jstl.jsp" new file mode 100644 index 0000000..1eb2079 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/jstl.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/jstlforeach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/jstlforeach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/test.jsp" new file mode 100644 index 0000000..8977c06 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\350\265\265\351\273\224\350\261\253/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 76bdca1b85f2f658b933057121c3c7d8f419a6e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 04:52:31 +0000 Subject: [PATCH 497/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王旭 <10602891+wx1927910504@user.noreply.gitee.com> --- .../\347\216\213\346\227\255/Filter01.java" | 17 +++++ .../\347\216\213\346\227\255/Listener01.java" | 69 +++++++++++++++++++ .../OnlineNumber.java" | 21 ++++++ .../\347\216\213\346\227\255/exit.jsp" | 18 +++++ .../\347\216\213\346\227\255/online.jsp" | 18 +++++ .../\347\216\213\346\227\255/page2.jsp" | 25 +++++++ 6 files changed, 168 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Filter01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Listener01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/OnlineNumber.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/exit.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/online.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/page2.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Filter01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Filter01.java" new file mode 100644 index 0000000..2c69d9c --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Filter01.java" @@ -0,0 +1,17 @@ +import javax.servlet.*; +import java.io.IOException; + +public class Filter01 implements Filter { + public void destroy() { + System.out.println("filter01......destroy........."); + } + + public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException { + System.out.println("filter01......doFilter......."); + } + + public void init(FilterConfig config) throws ServletException { + System.out.println("filter01......init........."); + } + +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Listener01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Listener01.java" new file mode 100644 index 0000000..9581aca --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/Listener01.java" @@ -0,0 +1,69 @@ +package week14; + +import javax.servlet.ServletContextEvent; +import javax.servlet.ServletContextListener; +import javax.servlet.http.HttpSessionAttributeListener; +import javax.servlet.http.HttpSessionEvent; +import javax.servlet.http.HttpSessionListener; +import javax.servlet.http.HttpSessionBindingEvent; + +public class Listener01 implements ServletContextListener, + HttpSessionListener, HttpSessionAttributeListener { + + // Public constructor is required by servlet spec + public Listener01() { + } + + // ------------------------------------------------------- + // ServletContextListener implementation + // ------------------------------------------------------- + public void contextInitialized(ServletContextEvent sce) { + /* This method is called when the servlet context is + initialized(when the Web application is deployed). + You can initialize servlet context related data here. + */ + System.out.println("ServletContextListener.......contextInitialized............"); + } + + public void contextDestroyed(ServletContextEvent sce) { + /* This method is invoked when the Servlet Context + (the Web application) is undeployed or + Application Server shuts down. + */ + System.out.println("ServletContextListener.......contextDestroyed.............."); + } + + // ------------------------------------------------------- + // HttpSessionListener implementation + // ------------------------------------------------------- + public void sessionCreated(HttpSessionEvent se) { + /* Session is created. */ + + } + + public void sessionDestroyed(HttpSessionEvent se) { + /* Session is destroyed. */ + } + + // ------------------------------------------------------- + // HttpSessionAttributeListener implementation + // ------------------------------------------------------- + + public void attributeAdded(HttpSessionBindingEvent sbe) { + /* This method is called when an attribute + is added to a session. + */ + } + + public void attributeRemoved(HttpSessionBindingEvent sbe) { + /* This method is called when an attribute + is removed from a session. + */ + } + + public void attributeReplaced(HttpSessionBindingEvent sbe) { + /* This method is invoked when an attribute + is replaced in a session. + */ + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/OnlineNumber.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/OnlineNumber.java" new file mode 100644 index 0000000..4be6918 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/OnlineNumber.java" @@ -0,0 +1,21 @@ +package week14; + +import javax.servlet.http.HttpSessionEvent; +import javax.servlet.http.HttpSessionListener; + +public class OnlineNumber implements HttpSessionListener { + private int onlineNum = 0; + @Override + public void sessionCreated(HttpSessionEvent httpSessionEvent) { + System.out.println("有一个用户登录了。。。。。。。"); + onlineNum++; + httpSessionEvent.getSession().getServletContext().setAttribute("onlineNum",onlineNum); + } + + @Override + public void sessionDestroyed(HttpSessionEvent httpSessionEvent) { + System.out.println("有一个用户离开了。。。。。。。"); + onlineNum--; + httpSessionEvent.getSession().getServletContext().setAttribute("onlineNum",onlineNum); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/exit.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/exit.jsp" new file mode 100644 index 0000000..62fd6cf --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/exit.jsp" @@ -0,0 +1,18 @@ +<%-- + Created by IntelliJ IDEA. + User: WX1927910504 + Date: 2022/11/28 + Time: 19:36 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +<% + session.invalidate(); +%> + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/online.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/online.jsp" new file mode 100644 index 0000000..4178f0b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/online.jsp" @@ -0,0 +1,18 @@ + +<%-- + Created by IntelliJ IDEA. + User: WX1927910504 + Date: 2022/11/28 + Time: 18:50 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

在线人数:${applicationScope.onlineNum}

+退出 + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/page2.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/page2.jsp" new file mode 100644 index 0000000..3bc56da --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/page2.jsp" @@ -0,0 +1,25 @@ +<%-- + Created by IntelliJ IDEA. + User: WX1927910504 + Date: 2022/11/22 + Time: 13:08 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + + + <% + int a = 10/0; + %> + +
+
+
+
+ + -- Gitee From d168af834cb8673323fa04d1ed8297be3123cd18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=97=AD?= <10602891+wx1927910504@user.noreply.gitee.com> Date: Wed, 14 Dec 2022 04:52:38 +0000 Subject: [PATCH 498/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=8E=8B?= =?UTF-8?q?=E6=97=AD/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\216\213\346\227\255/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\346\227\255/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 1652506c737f2ef1c606cb79bb8095f2cac6e81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Wed, 14 Dec 2022 12:17:12 +0000 Subject: [PATCH 499/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 危媛芳 <1638067417@qq.com> --- .../Login.html" | 15 ++++ .../Login.java" | 49 +++++++++++ .../Register.html" | 17 ++++ .../Register.java" | 85 +++++++++++++++++++ 4 files changed, 166 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\345\215\261\345\252\233\350\212\263/Login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\345\215\261\345\252\233\350\212\263/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\345\215\261\345\252\233\350\212\263/Register.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\345\215\261\345\252\233\350\212\263/Register.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\345\215\261\345\252\233\350\212\263/Login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\345\215\261\345\252\233\350\212\263/Login.html" new file mode 100644 index 0000000..7993a7f --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\345\215\261\345\252\233\350\212\263/Login.html" @@ -0,0 +1,15 @@ + + + + + 用户登入 + + + +
+
+
+ + + + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\345\215\261\345\252\233\350\212\263/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\345\215\261\345\252\233\350\212\263/Login.java" new file mode 100644 index 0000000..fb3e0ea --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\345\215\261\345\252\233\350\212\263/Login.java" @@ -0,0 +1,49 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\345\215\261\345\252\233\350\212\263/Register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\345\215\261\345\252\233\350\212\263/Register.html" new file mode 100644 index 0000000..26af32d --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\345\215\261\345\252\233\350\212\263/Register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+ + 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\345\215\261\345\252\233\350\212\263/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\345\215\261\345\252\233\350\212\263/Register.java" new file mode 100644 index 0000000..8f92d25 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\345\215\261\345\252\233\350\212\263/Register.java" @@ -0,0 +1,85 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} -- Gitee From 3dcce0c91975a803b6a2dd9814fab51022f96fb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Wed, 14 Dec 2022 12:21:39 +0000 Subject: [PATCH 500/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 危媛芳 <1638067417@qq.com> --- .../\344\275\234\344\270\2321/.idea/misc.xml" | 6 ++ .../.idea/modules.xml" | 8 +++ .../.idea/workspace.xml" | 42 ++++++++++++ .../.idea/\344\275\234\344\270\2321.iml" | 11 +++ .../CookieDemo1.java" | 24 +++++++ .../CookieDemo2.java" | 28 ++++++++ .../CookieTest.java" | 68 +++++++++++++++++++ .../.idea/Comfirn.html" | 47 +++++++++++++ .../\344\275\234\344\270\2322/.idea/misc.xml" | 6 ++ .../.idea/modules.xml" | 8 +++ .../.idea/workspace.xml" | 44 ++++++++++++ .../.idea/\344\275\234\344\270\2322.iml" | 11 +++ .../\344\275\234\344\270\2322/Books.html" | 47 +++++++++++++ .../\344\275\234\344\270\2322/Step1.java" | 25 +++++++ .../\344\275\234\344\270\2322/Step2.java" | 34 ++++++++++ .../\344\275\234\344\270\2322/adress.html" | 47 +++++++++++++ 16 files changed, 456 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/.idea/misc.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/.idea/modules.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/.idea/workspace.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/.idea/\344\275\234\344\270\2321.iml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/CookieTest.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/Comfirn.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/misc.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/modules.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/workspace.xml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/\344\275\234\344\270\2322.iml" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/Books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/Step1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/Step2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/adress.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/.idea/misc.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/.idea/misc.xml" new file mode 100644 index 0000000..d3c9b3d --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/.idea/misc.xml" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/.idea/modules.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/.idea/modules.xml" new file mode 100644 index 0000000..af50b17 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/.idea/modules.xml" @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/.idea/workspace.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/.idea/workspace.xml" new file mode 100644 index 0000000..4ae249a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/.idea/workspace.xml" @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + 1670892899540 + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/.idea/\344\275\234\344\270\2321.iml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/.idea/\344\275\234\344\270\2321.iml" new file mode 100644 index 0000000..1de981c --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/.idea/\344\275\234\344\270\2321.iml" @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/CookieDemo1.java" new file mode 100644 index 0000000..b40a2f7 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/CookieDemo1.java" @@ -0,0 +1,24 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/CookieDemo2.java" new file mode 100644 index 0000000..649287f --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/CookieDemo2.java" @@ -0,0 +1,28 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo2") +public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/CookieTest.java" new file mode 100644 index 0000000..55242e4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2321/CookieTest.java" @@ -0,0 +1,68 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/Comfirn.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/Comfirn.html" new file mode 100644 index 0000000..4b92a1a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/Comfirn.html" @@ -0,0 +1,47 @@ + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/misc.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/misc.xml" new file mode 100644 index 0000000..d3c9b3d --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/misc.xml" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/modules.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/modules.xml" new file mode 100644 index 0000000..bdb2244 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/modules.xml" @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/workspace.xml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/workspace.xml" new file mode 100644 index 0000000..bad4498 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/workspace.xml" @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + 1670893123035 + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/\344\275\234\344\270\2322.iml" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/\344\275\234\344\270\2322.iml" new file mode 100644 index 0000000..1de981c --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/.idea/\344\275\234\344\270\2322.iml" @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/Books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/Books.html" new file mode 100644 index 0000000..141af57 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/Books.html" @@ -0,0 +1,47 @@ + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/Step1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/Step1.java" new file mode 100644 index 0000000..ce548ff --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/Step1.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/Step2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/Step2.java" new file mode 100644 index 0000000..063d3b9 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/Step2.java" @@ -0,0 +1,34 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/adress.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/adress.html" new file mode 100644 index 0000000..4b92a1a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/\344\275\234\344\270\2322/adress.html" @@ -0,0 +1,47 @@ + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + -- Gitee From a8f6ead8a17149c51f58ae65340df5cbf5225ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Wed, 14 Dec 2022 12:23:38 +0000 Subject: [PATCH 501/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 危媛芳 <1638067417@qq.com> --- .../\345\215\261\345\252\233\350\212\263/text.html" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/text.html" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/text.html" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/text.html" new file mode 100644 index 0000000..e69de29 -- Gitee From a0aa55164fddc07c244499eb843efe3168593928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Wed, 14 Dec 2022 12:24:25 +0000 Subject: [PATCH 502/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 危媛芳 <1638067417@qq.com> --- .../\345\215\261\345\252\233\350\212\263/text.html" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/text.html" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/text.html" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/text.html" new file mode 100644 index 0000000..e69de29 -- Gitee From db4607212e22bb84c1bcf3a8e9dfe3b88594d899 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Wed, 14 Dec 2022 12:25:20 +0000 Subject: [PATCH 503/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 危媛芳 <1638067417@qq.com> --- .../\345\215\261\345\252\233\350\212\263/filter.java" | 0 .../\345\215\261\345\252\233\350\212\263/filterServelet.java" | 0 .../\345\215\261\345\252\233\350\212\263/filterweb.html" | 0 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/filter.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/filterServelet.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/filterweb.html" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/filter.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/filter.java" new file mode 100644 index 0000000..e69de29 diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/filterServelet.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/filterServelet.java" new file mode 100644 index 0000000..e69de29 diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/filterweb.html" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/filterweb.html" new file mode 100644 index 0000000..e69de29 -- Gitee From bba2f96753a88b212d6ae7b5bcd8c96876ff670b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E5=AA=9B=E8=8A=B3?= <1638067417@qq.com> Date: Wed, 14 Dec 2022 12:26:41 +0000 Subject: [PATCH 504/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 危媛芳 <1638067417@qq.com> --- .../\345\215\261\345\252\233\350\212\263/Brand.java" | 0 .../\345\215\261\345\252\233\350\212\263/ServletDemo1.java" | 0 .../\345\215\261\345\252\233\350\212\263/ServletDemo2.java" | 0 .../\345\215\261\345\252\233\350\212\263/User.java" | 0 .../\345\215\261\345\252\233\350\212\263/jstl-foreach.html" | 0 .../\345\215\261\345\252\233\350\212\263/jstl.html" | 0 .../\345\215\261\345\252\233\350\212\263/text.html" | 0 7 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/ServletDemo1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/ServletDemo2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/jstl-foreach.html" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/jstl.html" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/text.html" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/Brand.java" new file mode 100644 index 0000000..e69de29 diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/ServletDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/ServletDemo1.java" new file mode 100644 index 0000000..e69de29 diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/ServletDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/ServletDemo2.java" new file mode 100644 index 0000000..e69de29 diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/User.java" new file mode 100644 index 0000000..e69de29 diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/jstl-foreach.html" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/jstl-foreach.html" new file mode 100644 index 0000000..e69de29 diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/jstl.html" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/jstl.html" new file mode 100644 index 0000000..e69de29 diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/text.html" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\215\261\345\252\233\350\212\263/text.html" new file mode 100644 index 0000000..e69de29 -- Gitee From 78eae066e1b9fd0e7851f2ae2ed0c5bd7a8f8b0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:18:35 +0000 Subject: [PATCH 505/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 049b04838b00760e4e546ee9b4b84fb3c5273210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:20:35 +0000 Subject: [PATCH 506/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨佳佳 <3600378145@qq.com> --- .../Step1.java" | 27 +++++++++ .../Step2.java" | 35 ++++++++++++ .../address.html.java" | 55 +++++++++++++++++++ .../books.html.java" | 47 ++++++++++++++++ .../confirm.html.java" | 50 +++++++++++++++++ 5 files changed, 214 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step1.java" new file mode 100644 index 0000000..1837eee --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step1.java" @@ -0,0 +1,27 @@ +package 四章2; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step2.java" new file mode 100644 index 0000000..19a3731 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step2.java" @@ -0,0 +1,35 @@ +package 四章2; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html.java" new file mode 100644 index 0000000..4a5b8b8 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html.java" @@ -0,0 +1,55 @@ +<%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/1 + Time: 19:18 + To change this template use File | Settings | File Templates. + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + +Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ +基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 +VisaMaster
卡号
+ + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html.java" new file mode 100644 index 0000000..0568277 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html.java" @@ -0,0 +1,47 @@ +<%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/1 + Time: 19:01 + To change this template use File | Settings | File Templates. + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + +$Title$ + + +

Step1选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html.java" new file mode 100644 index 0000000..772e8ff --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html.java" @@ -0,0 +1,50 @@ +<%@ page import="java.lang.reflect.Array" %> +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/1 + Time: 20:27 + To change this template use File | Settings | File Templates. + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + +Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print(session.getAttribute("name"));%>
地址:<%out.print(session.getAttribute("address"));%>
付款信息
信用卡类型<%out.print(Arrays.toString((Object[]) session.getAttribute("types")));%>
卡号:<%out.print(session.getAttribute("username"));%>
订货项目<% out.print(Arrays.toString((Object[]) session.getAttribute("books")));%>
+ + + -- Gitee From 758100e293fa12dd6e26120f02f218fdf7af8343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:20:44 +0000 Subject: [PATCH 507/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/=E7=AC=AC=E4=BA=8C=E6=AC=A1=E4=BD=9C=E4=B8=9A/address?= =?UTF-8?q?.html.java=20=E4=B8=BA=20=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A/address.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../address.html" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html.java" => "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" (100%) diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" similarity index 100% rename from "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html.java" rename to "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" -- Gitee From 0d36e31da0ca41f0c723948a185a8019e29ebf77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:20:52 +0000 Subject: [PATCH 508/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/=E7=AC=AC=E4=BA=8C=E6=AC=A1=E4=BD=9C=E4=B8=9A/books.h?= =?UTF-8?q?tml.java=20=E4=B8=BA=20=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A/books.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../books.html" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html.java" => "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" (100%) diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" similarity index 100% rename from "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html.java" rename to "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" -- Gitee From 1b46d1b9a311866dbb707858e7291848e2e0c16e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:21:01 +0000 Subject: [PATCH 509/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/=E7=AC=AC=E4=BA=8C=E6=AC=A1=E4=BD=9C=E4=B8=9A/confirm?= =?UTF-8?q?.html.java=20=E4=B8=BA=20=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A/confirm.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../confirm.html" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html.java" => "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" (100%) diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" similarity index 100% rename from "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html.java" rename to "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" -- Gitee From f4e5f5967e9e9f71455030b2a4b1f9a4d7e94eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:23:43 +0000 Subject: [PATCH 510/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From ed98b54ad53ca24bae16bc6d254ddebc65d4bfb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:24:25 +0000 Subject: [PATCH 511/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨佳佳 <3600378145@qq.com> --- .../Numbers.jsp.java" | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp.java" new file mode 100644 index 0000000..29dcb79 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp.java" @@ -0,0 +1,56 @@ +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/5 + Time: 16:54 + To change this template use File | Settings | File Templates. + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + +Title + + +<% + String [][]a={{"一"},{"二"},{"三"}}; + String [][]b={{"四"},{"五"},{"六"}}; + String [][]c={{"七"},{"八"},{"九"}}; +// String a="一"; +// String b="二"; +// String c="三"; +// String d="四"; +// String e="五"; +// String f="六"; +// String g="七"; +// String h="八"; +// String i="九"; + %> +

JSP数组内容

+ + + + + + + + + + + + + + + + + +
<%out.print(Arrays.toString(a[0]));%><%out.print(Arrays.toString(a[1]));%><%out.print(Arrays.toString(a[2]));%>
<%out.print(Arrays.toString(b[0]));%><%out.print(Arrays.toString(b[1]));%><%out.print(Arrays.toString(b[2]));%>
<%out.print(Arrays.toString(c[0]));%><%out.print(Arrays.toString(c[1]));%><%out.print(Arrays.toString(c[2]));%>
+ + + -- Gitee From c7eff83892c0ffc223b3d0dcbc39271225e9fd3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:24:44 +0000 Subject: [PATCH 512/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/=E7=AC=AC=E4=B8=89=E6=AC=A1=E4=BD=9C=E4=B8=9A/Numbers?= =?UTF-8?q?.jsp.java=20=E4=B8=BA=20=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A/Numbers.jsp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Numbers.jsp" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp.java" => "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" (100%) diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" similarity index 100% rename from "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp.java" rename to "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" -- Gitee From 10be06ac0bb9f5c1e8952464cce8899561725f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:27:57 +0000 Subject: [PATCH 513/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 3cd39c9ac663ee47719d4b4cbc391953c173411c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 03:36:54 +0000 Subject: [PATCH 514/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=A5=B6=E5=87=A4?= =?UTF-8?q?=E5=A9=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\245\266\345\207\244\345\251\267/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From e59f467bea18604741902cbe49f070756fcbf379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 03:37:57 +0000 Subject: [PATCH 515/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=A5=B6=E5=87=A4?= =?UTF-8?q?=E5=A9=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\245\266\345\207\244\345\251\267/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 0228f1c0067320eef1048bfd7e7b71d4713a3cdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 03:38:17 +0000 Subject: [PATCH 516/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=A5=B6=E5=87=A4?= =?UTF-8?q?=E5=A9=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\245\266\345\207\244\345\251\267/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 7fca8bda9bc60d07dda1b47d2a38861a69a3c4ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:38:33 +0000 Subject: [PATCH 517/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From a709c542bb736fdfa300c9d7d9e112030d022507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 03:39:06 +0000 Subject: [PATCH 518/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=A5=B6=E5=87=A4?= =?UTF-8?q?=E5=A9=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\245\266\345\207\244\345\251\267/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 9ce8a3d7cac528c96f64c58ebfb960fdf8a9bdb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:39:08 +0000 Subject: [PATCH 519/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨佳佳 <3600378145@qq.com> --- .../FailServlet.java" | 23 +++++++++++ .../Servlet1.java" | 41 +++++++++++++++++++ .../Servlet2.java" | 32 +++++++++++++++ .../Servlet3.java" | 38 +++++++++++++++++ .../SuccessServlet.java" | 23 +++++++++++ 5 files changed, 157 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/Servlet1.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/Servlet2.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/Servlet3.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/SuccessServlet.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/FailServlet.java" new file mode 100644 index 0000000..ef7fcb4 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/FailServlet.java" @@ -0,0 +1,23 @@ +package 第三; + + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/fail3") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("登陆失败!!!!!!!!!!!!!!!!!!!!!!!!"); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/Servlet1.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/Servlet1.java" new file mode 100644 index 0000000..d715bcf --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/Servlet1.java" @@ -0,0 +1,41 @@ +package 第三; + + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +@WebServlet("/s0") +public class Servlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username=req.getParameter("username"); + String password=req.getParameter("password"); + System.out.println(req.getQueryString()); + if ("admin".equals(username)&&"admin".equals(password)) { + System.out.println("登陆成功!"); + }else { + System.out.println("登陆失败"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + BufferedReader reader=req.getReader(); + String line; + while ((line=reader.readLine())!=null){ + String[] parametersArr=line.split("&"); + String username=parametersArr[0].split("=")[1]; + String password=parametersArr[1].split("=")[1]; + System.out.println(line); + if ("admin".equals(username)&&"admin".equals(password)) { + System.out.println("登陆成功!"); + }else { + System.out.println("登陆失败"); + } + } + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/Servlet2.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/Servlet2.java" new file mode 100644 index 0000000..bf49b43 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/Servlet2.java" @@ -0,0 +1,32 @@ +package 第三; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/s1") +public class Servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("UTF-8"); + + System.out.println("do....................post"); + String username=req.getParameter("username"); + String password=req.getParameter("password"); + String hobby=req.getParameter("hobby"); + String gender=req.getParameter("gender"); + + System.out.println("账号:"+username); + System.out.println("密码:"+password); + System.out.println("性别:"+gender); + System.out.println("爱好:"+hobby); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/Servlet3.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/Servlet3.java" new file mode 100644 index 0000000..7648af0 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/Servlet3.java" @@ -0,0 +1,38 @@ +package 第三; + + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +@WebServlet("/s3") +public class Servlet3 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + BufferedReader reader=req.getReader(); + String line; + while ((line=reader.readLine())!=null){ + String []arr=line.split("&"); + String username=arr[0].split("=")[1]; + String password=arr[1].split("=")[1]; + if ("admin".equals(username)&&"admin".equals(password)) { + req.getRequestDispatcher("/success3").forward(req,resp); + System.out.println(line); + } + else { + req.getRequestDispatcher("/fail3").forward(req,resp); + } + + } + + + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/SuccessServlet.java" new file mode 100644 index 0000000..c69238f --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/SuccessServlet.java" @@ -0,0 +1,23 @@ +package 第三; + + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/success3") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("登陆成功!!!!!!!!!!!!!!!!!!!!!!!!!"); + } +} -- Gitee From e4154adb4b9388f248edef1e2ceb524526db276a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 03:39:58 +0000 Subject: [PATCH 520/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=A5=B6=E5=87=A4?= =?UTF-8?q?=E5=A9=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\245\266\345\207\244\345\251\267/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From f2daf3168ea5246b1c0105d6de7d527971159241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:49:17 +0000 Subject: [PATCH 521/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 3f494a036902045ce503ea400b7c79c53ad6cab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:50:13 +0000 Subject: [PATCH 522/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨佳佳 <3600378145@qq.com> --- .../Fail01.java" | 25 +++++++++++++++++ .../Fail02.java" | 24 ++++++++++++++++ .../Servlet1.java" | 28 +++++++++++++++++++ .../Servlet2.java" | 28 +++++++++++++++++++ .../Success01.java" | 24 ++++++++++++++++ .../Success02.java" | 24 ++++++++++++++++ .../index.jsp.java" | 16 +++++++++++ .../login.html.java" | 14 ++++++++++ .../login2.html.java" | 14 ++++++++++ .../web.xml.java" | 7 +++++ 10 files changed, 204 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail01.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet1.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet2.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success01.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/web.xml.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail01.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail01.java" new file mode 100644 index 0000000..407fa78 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail01.java" @@ -0,0 +1,25 @@ +package 第三; + + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail01") +public class Fail01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" new file mode 100644 index 0000000..276bfab --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" @@ -0,0 +1,24 @@ +package 第三; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail02") +public class Fail02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet1.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet1.java" new file mode 100644 index 0000000..3c0d063 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet1.java" @@ -0,0 +1,28 @@ +package 第三; + + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/s1") +public class Servlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username=req.getParameter("username"); + String password=req.getParameter("password"); + if ("admin".equals(username)&&"admin".equals(password)) { + req.getRequestDispatcher("/Success01").forward(req,resp); + } + else { + req.getRequestDispatcher("/Fail01").forward(req,resp); + } + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet2.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet2.java" new file mode 100644 index 0000000..3bcea1e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet2.java" @@ -0,0 +1,28 @@ +package 第三; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/s2") +public class Servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String uname=req.getParameter("uname"); + String password=req.getParameter("password"); + if ("admin".equals(uname)&&"admin".equals(password)) { + resp.sendRedirect("Success02"); + } + else { + resp.sendRedirect("Fail02"); + } + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success01.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success01.java" new file mode 100644 index 0000000..5b672bb --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success01.java" @@ -0,0 +1,24 @@ +package 第三; + + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Success01") +public class Success01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" new file mode 100644 index 0000000..39559cc --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" @@ -0,0 +1,24 @@ +package 第三; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Success02") +public class Success02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp.java" new file mode 100644 index 0000000..4e7c5e2 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp.java" @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/9/27 + Time: 11:16 + To change this template use File | Settings | File Templates. + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + +$Title$ + + + $END$ + + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html.java" new file mode 100644 index 0000000..498bb39 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html.java" @@ -0,0 +1,14 @@ + + + + +Title + +
+ 账号:
+ 密码:
+
+
+ + + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html.java" new file mode 100644 index 0000000..0efa991 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html.java" @@ -0,0 +1,14 @@ + + + + +Title + +
+ 账号:
+ 密码:
+
+
+ + + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/web.xml.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/web.xml.java" new file mode 100644 index 0000000..3aa4490 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/web.xml.java" @@ -0,0 +1,7 @@ + + + + -- Gitee From 1e5c57f8a3c704fa7a1400869fc662bd6062ac92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:50:23 +0000 Subject: [PATCH 523/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/=E7=AC=AC=E4=BA=8C=E6=AC=A1=E4=BD=9C=E4=B8=9A/login2.?= =?UTF-8?q?html.java=20=E4=B8=BA=20=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A/login2.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../login2.html" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html.java" => "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" (100%) diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" similarity index 100% rename from "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html.java" rename to "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" -- Gitee From 30dc674c4dd552c1152d335627b8f59341051837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:50:33 +0000 Subject: [PATCH 524/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/=E7=AC=AC=E4=BA=8C=E6=AC=A1=E4=BD=9C=E4=B8=9A/index.j?= =?UTF-8?q?sp.java=20=E4=B8=BA=20=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A/index.jsp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../index.jsp" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp.java" => "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" (100%) diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" similarity index 100% rename from "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp.java" rename to "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" -- Gitee From 67915da3bfd8c007cf86ab7e0d840c20664a89b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:50:44 +0000 Subject: [PATCH 525/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/=E7=AC=AC=E4=BA=8C=E6=AC=A1=E4=BD=9C=E4=B8=9A/login.h?= =?UTF-8?q?tml.java=20=E4=B8=BA=20=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A/login.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../login.html" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html.java" => "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" (100%) diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" similarity index 100% rename from "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html.java" rename to "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" -- Gitee From db020e36af6ec1c7d88a7c1a8bd8267b9f2cacd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:50:54 +0000 Subject: [PATCH 526/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/=E7=AC=AC=E4=BA=8C=E6=AC=A1=E4=BD=9C=E4=B8=9A/web.xml?= =?UTF-8?q?.java=20=E4=B8=BA=20=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A/web.xml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web.xml" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/web.xml.java" => "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/web.xml" (100%) diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/web.xml.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/web.xml" similarity index 100% rename from "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/web.xml.java" rename to "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/web.xml" -- Gitee From 94b9b1512e00ca684682e934a3126335bd5c1975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:51:16 +0000 Subject: [PATCH 527/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 389953ae39ec3edae2756867d8477029dd03f682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 03:55:00 +0000 Subject: [PATCH 528/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=B8=93?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Login.java" | 51 +++++++++++ .../Register.java" | 87 +++++++++++++++++++ .../login.html" | 14 +++ .../register.html" | 17 ++++ 4 files changed, 169 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Register.java" new file mode 100644 index 0000000..8b8b781 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/login.html" new file mode 100644 index 0000000..5381a96 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/login.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/register.html" new file mode 100644 index 0000000..4d01421 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + -- Gitee From 20193d94cffe91d8fc2150c7f7d1a83fe2ca538d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:55:42 +0000 Subject: [PATCH 529/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨佳佳 <3600378145@qq.com> --- .../DownloadServlet1.java" | 47 +++++++++++++ .../LoginCheckServlet.java" | 47 +++++++++++++ .../ValidateCodeServlet.java" | 70 +++++++++++++++++++ .../download.html.java" | 11 +++ .../login3.html.java" | 21 ++++++ 5 files changed, 196 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet1.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/download.html.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login3.html.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet1.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet1.java" new file mode 100644 index 0000000..ddaefd7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet1.java" @@ -0,0 +1,47 @@ +package 第三; + +import javax.activation.MimeType; +import javax.servlet.ServletContext; +import javax.servlet.ServletException; +import javax.servlet.ServletInputStream; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/DownloadServlet1") +public class DownloadServlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取请求参数,文件名 + String filename=req.getParameter("filename"); + //1.使用字节流加载文件进内存 + //1.1找到服务器路径 + ServletContext servletContext=this.getServletContext(); + String realPath = servletContext.getRealPath("/img/"+filename); + //1.2用字节流关联 + ServletInputStream fis=req.getInputStream(); + + //2.设置response响应头 + //2.1设置响应头:content-type= ; + String mimeType = servletContext.getMimeType(filename); + resp.setHeader("content-type",mimeType); + //2.2设置响应头打开方式:content-disposition + resp.setHeader("content-disposition","attachment;filename="+filename); + //将输入流的数据写到输出流 + ServletOutputStream sos=resp.getOutputStream(); + byte [] buff=new byte[1024*8]; + int len=0; + while ((len=fis.read(buff))!=-1){ + sos.write(buff,0,len); + } + fis.close(); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" new file mode 100644 index 0000000..7bae264 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" @@ -0,0 +1,47 @@ +package 第三; + + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.nio.charset.StandardCharsets; + +@WebServlet("/LoginCheckServlet") +public class LoginCheckServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //接收账号,密码,验证码 + String username=req.getParameter("username"); + String password=req.getParameter("password"); + String userCode=req.getParameter("userCode"); + //从session中取出正确验证码 + HttpSession session=req.getSession(); + String vCode= (String) session.getAttribute("vCode"); + //将用户输入的验证码和从session中的正确验证码进行对比 + resp.setContentType("text/html;charset=UTF-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + if (userCode.equals(vCode)) { + if ("admin".equals(username)&&"admin".equals(password)){ + + outputStream.write("登陆成功".getBytes("UTF-8")); + }else { + + outputStream.write("登陆失败,密码错误".getBytes("UTF-8")); + } + }else { + + outputStream.write("登陆失败,验证码错误".getBytes("UTF-8")); + } + + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" new file mode 100644 index 0000000..f75c3d7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" @@ -0,0 +1,70 @@ +package 第三; + + +import javax.imageio.ImageIO; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import javax.xml.ws.spi.http.HttpContext; +import java.awt.*; +import java.awt.image.BufferedImage; +import java.io.IOException; +import java.util.Random; +@WebServlet("/ValidateCodeServlet") +public class ValidateCodeServlet extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建一张图片 + int width=300;//验证码宽度 + int height=90;//验证码高度 + BufferedImage image=new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); + //绘制图片 + //从图片对象中获取绘制图片的“笔” + Graphics pen=image.createGraphics(); + //绘制背景 + pen.setColor(getRandomColor()); + //fillRect:绘制实心矩形 + pen.fillRect(0,0,width,height); + //绘制验证码字符串 + int letterNum=4;//验证码图片上的字符的个数 + int space=20;//验证码图片上两个字母之间的空隙 + int letterWidth=(width-(letterNum+1)*space)/letterNum;//计算每个字母占据的宽度 + //for循环每循环一次,绘制一个字母(小写字母的ASCII码97-122) + String vCode=""; + Random random=new Random(); + for(int i=0;i + + + +Title + +图片
+视频 + + + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login3.html.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login3.html.java" new file mode 100644 index 0000000..0375158 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login3.html.java" @@ -0,0 +1,21 @@ + + + + +用户登录 + +
+ 账号:
+ 密码:
+ 验证码: +
+
+
+ + + -- Gitee From 34477d8b892c02ed41aa5fc47de6f4796676a39c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:55:53 +0000 Subject: [PATCH 530/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/=E7=AC=AC=E4=B8=89=E6=AC=A1=E4=BD=9C=E4=B8=9A/downloa?= =?UTF-8?q?d.html.java=20=E4=B8=BA=20=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A/download.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../download.html" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/download.html.java" => "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/download.html" (100%) diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/download.html.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/download.html" similarity index 100% rename from "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/download.html.java" rename to "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/download.html" -- Gitee From 6d22e4be0fa6c24ee941a62a49d3b2b31af53396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:56:00 +0000 Subject: [PATCH 531/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/=E7=AC=AC=E4=B8=89=E6=AC=A1=E4=BD=9C=E4=B8=9A/login3.?= =?UTF-8?q?html.java=20=E4=B8=BA=20=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A/login3.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../login3.html" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login3.html.java" => "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login3.html" (100%) diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login3.html.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login3.html" similarity index 100% rename from "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login3.html.java" rename to "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login3.html" -- Gitee From d6a9cbaf0f2982eca9672b3a405ca86a542e355e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 03:56:29 +0000 Subject: [PATCH 532/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=A5=B6?= =?UTF-8?q?=E5=87=A4=E5=A9=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 .../Login.java" | 51 ----------- .../Register.java" | 87 ------------------- .../login.html" | 14 --- .../register.html" | 17 ---- 5 files changed, 169 deletions(-) delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Login.java" delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Register.java" delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/login.html" delete mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" deleted file mode 100644 index e69de29..0000000 diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Login.java" deleted file mode 100644 index 8985de2..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Login.java" +++ /dev/null @@ -1,51 +0,0 @@ -package com.example.homework; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; -import java.util.Arrays; -import java.util.Map; -import java.util.Set; - -@WebServlet("/login") -public class Login extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - System.out.println("get >>>"); - String paramsStr = req.getQueryString(); - String[] paramsArr = paramsStr.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - - if ("admin".equals(username) && "admin".equals(password)) { - System.out.println("登录成功!"); - } else { - System.out.println("登录失败!"); - } - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - System.out.println("post >>>"); - BufferedReader reader = req.getReader(); - String line; - while ((line = reader.readLine()) != null) { - System.out.println(line); - String[] paramsArr = line.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - - if ("admin".equals(username) && "admin".equals(password)) { - System.out.println("登录成功!"); - } else { - System.out.println("登录失败!"); - } - } - } -} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Register.java" deleted file mode 100644 index 8b8b781..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Register.java" +++ /dev/null @@ -1,87 +0,0 @@ -package com.example.homework; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; -import java.util.Arrays; -import java.util.Enumeration; -import java.util.Map; -import java.util.Set; - -@WebServlet("/register") -public class Register extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - System.out.println("get-----------------------"); - String paramsStr = req.getQueryString(); -// System.out.println(paramsStr); - String[] paramsArr = paramsStr.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - String gender = paramsArr[2].split("=")[1]; - String hobby = paramsArr[3].split("=")[1]; - - System.out.println("用户名" + username); - System.out.println("密码" + password); - System.out.println("性别" + gender); - System.out.println("爱好" + hobby); - - -// for (int i = 0; i < paramsStr.length() ; i++){ -// System.out.println(paramsArr[i]); -// String[] paramArr = paramsArr[i].split("="); -// for (int j = 0; j < paramArr.length; j++) { -// System.out.println(paramArr[j]); -// } -// } - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.setCharacterEncoding("utf-8"); - System.out.println("post--------------"); - /*BufferedReader reader = req.getReader(); - String line; - while ((line = reader.readLine()) != null) { - System.out.println(line); - String[] paramsArr = line.split("&"); - - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - String gender = paramsArr[2].split("=")[1]; - String hobby = paramsArr[3].split("=")[1]; - - System.out.println("用户名" + username); - System.out.println("密码" + password); - System.out.println("性别" + gender); - System.out.println("爱好" + hobby); - }*/ - -// String username = req.getParameter("username"); -// String password = req.getParameter("password"); -// String gender = req.getParameter("gender"); -// String hobby = req.getParameter("hobby"); -// -// System.out.println(username); -// System.out.println(password); -// System.out.println(gender); -// System.out.println(hobby); - -// Enumeration paramNames = req.getParameterNames(); -// while (paramNames.hasMoreElements()){ -// String name = paramNames.nextElement(); -// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); -// } - - Map paramMap = req.getParameterMap(); - Set keySet = paramMap.keySet(); - for (String key : keySet) { - System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); - } - } -} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/login.html" deleted file mode 100644 index 5381a96..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/login.html" +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Title - - -
-
-
- -
- - diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/register.html" deleted file mode 100644 index 4d01421..0000000 --- "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/register.html" +++ /dev/null @@ -1,17 +0,0 @@ - - - - - 注册 - - -

注册界面

-
- 用户名:
- 密码:   
- 性别:   
- 爱好:   
- -
- - -- Gitee From 921576b478b9c249584d25e5426fc6292878b546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 03:56:39 +0000 Subject: [PATCH 533/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From b4312b954bed779ec55d2e4119c7e46d3d7d446c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 03:56:47 +0000 Subject: [PATCH 534/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=A5=B6=E5=87=A4?= =?UTF-8?q?=E5=A9=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\245\266\345\207\244\345\251\267/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 5a5ff2fd81f2d3bd69d9dc3cb568a741c0beb56b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 04:01:22 +0000 Subject: [PATCH 535/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 饶凤婷 <577553583@qq.com> --- .../Login.java" | 51 +++++++++++ .../Register.java" | 87 +++++++++++++++++++ .../login.html" | 14 +++ .../register.html" | 17 ++++ 4 files changed, 169 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Register.java" new file mode 100644 index 0000000..8b8b781 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/login.html" new file mode 100644 index 0000000..5381a96 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/login.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/register.html" new file mode 100644 index 0000000..4d01421 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + -- Gitee From f80f01950410948dd761deb06d14086dc6f03bf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:01:43 +0000 Subject: [PATCH 536/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨佳佳 <3600378145@qq.com> --- .../Login.java" | 52 +++++++++++ .../Register.java" | 88 +++++++++++++++++++ .../login.html.java" | 14 +++ .../register.html.java" | 18 ++++ 4 files changed, 172 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/login.html.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/register.html.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/Login.java" new file mode 100644 index 0000000..447cca3 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/Login.java" @@ -0,0 +1,52 @@ +package 第二; + + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/Register.java" new file mode 100644 index 0000000..3384dc8 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/Register.java" @@ -0,0 +1,88 @@ +package 第二; + + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/login.html.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/login.html.java" new file mode 100644 index 0000000..af309b9 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/login.html.java" @@ -0,0 +1,14 @@ + + + + +Title + + +
+
+
+ +
+ + diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/register.html.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/register.html.java" new file mode 100644 index 0000000..ff3228a --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/register.html.java" @@ -0,0 +1,18 @@ + + + + + +注册 + + +

注册界面

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + -- Gitee From b51c7b586eac92f17932e473d7fb2174746064a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:01:52 +0000 Subject: [PATCH 537/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/login.html.java=20=E4=B8=BA=20=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/login.h?= =?UTF-8?q?tml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/login.html" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/login.html.java" => "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/login.html" (100%) diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/login.html.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/login.html" similarity index 100% rename from "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/login.html.java" rename to "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/login.html" -- Gitee From d64272ff8d63979196f1e628dc1233e16d9d2e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:02:08 +0000 Subject: [PATCH 538/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/register.html.java=20=E4=B8=BA=20=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/registe?= =?UTF-8?q?r.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/register.html" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/register.html.java" => "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/register.html" (100%) diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/register.html.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/register.html" similarity index 100% rename from "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/register.html.java" rename to "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/register.html" -- Gitee From 8de8b395ca2389b68f6dbc175f771651fe8dbe1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:02:53 +0000 Subject: [PATCH 539/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 1babdf3dfdb8e3e297c552fc4324fe7fde526532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:05:54 +0000 Subject: [PATCH 540/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨佳佳 <3600378145@qq.com> --- .../TwoDoimensional.java" | 36 +++++++++++++++ .../test.jsp.java" | 44 +++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/TwoDoimensional.java" create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp.java" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/TwoDoimensional.java" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/TwoDoimensional.java" new file mode 100644 index 0000000..14782d6 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/TwoDoimensional.java" @@ -0,0 +1,36 @@ +package 第五; + +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][]array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; + %> + + +Title + + +

二维数组

+ + + + + + +<% + for (int i = 0; i + +<% + for (int j = 0; j + +<% + } + %> + +<% + } + %> +
第一列第二列第三列
<%=array[i][j]%>
+ + diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp.java" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp.java" new file mode 100644 index 0000000..108fdaa --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp.java" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; + %> + + + + +Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + +<% + for (int i = 0; i < array.length; i++) { + %> + +<% + for (int j = 0; j < array[i].length; j++) { + %> + +<% + } + %> + +<% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From 9b2536dbe1887527e2913e52a0e8b03fedfa4cc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:06:04 +0000 Subject: [PATCH 541/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=BA=94=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/test.jsp.java=20=E4=B8=BA=20=E7=AC=AC=E4=BA=94?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/test.js?= =?UTF-8?q?p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/test.jsp" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp.java" => "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp" (100%) diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp.java" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp" similarity index 100% rename from "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp.java" rename to "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp" -- Gitee From 88292ba379f4e6dfcb571ebca03d09e9219e5546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:06:36 +0000 Subject: [PATCH 542/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From b856db9d3beacdda88bd12d4ab10c076b985d77f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:10:18 +0000 Subject: [PATCH 543/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨佳佳 <3600378145@qq.com> --- .../jstlwork1.jsp.java" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstlwork1.jsp.java" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstlwork1.jsp.java" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstlwork1.jsp.java" new file mode 100644 index 0000000..9a7c481 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstlwork1.jsp.java" @@ -0,0 +1,34 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/12 + Time: 21:27 + To change this template use File | Settings | File Templates. + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + +Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("陈恒辉"); + user.add("邹晓民"); + user.add("细狗"); + request.setAttribute("user",user); + %> + + + + + + +
+ ${str} +
+ + + -- Gitee From 06bf0bf123891ce2ed0fa87c48d7688cbb2f7e5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:10:25 +0000 Subject: [PATCH 544/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E5=85=AD=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/jstlwork1.jsp.java=20=E4=B8=BA=20=E7=AC=AC=E5=85=AD?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/jstlwor?= =?UTF-8?q?k1.jsp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/jstlwork1.jsp" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstlwork1.jsp.java" => "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstlwork1.jsp" (100%) diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstlwork1.jsp.java" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstlwork1.jsp" similarity index 100% rename from "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstlwork1.jsp.java" rename to "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstlwork1.jsp" -- Gitee From c10d2a34ccc8564364d4999dd665c6199403782c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:10:47 +0000 Subject: [PATCH 545/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 12c8d41316381cbdccb5f274dad1812a1c31fd92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:48:13 +0000 Subject: [PATCH 546/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨佳佳 <3600378145@qq.com> --- .../filter.java" | 37 +++++++++++++++++++ .../filterServelet.java" | 28 ++++++++++++++ .../filterweb.html.txt" | 12 ++++++ .../filterweb.jsp.txt" | 24 ++++++++++++ .../webtest.jsp.txt" | 20 ++++++++++ 5 files changed, 121 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filter.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterServelet.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.html.txt" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.jsp.txt" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/webtest.jsp.txt" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filter.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filter.java" new file mode 100644 index 0000000..1dcb6c5 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filter.java" @@ -0,0 +1,37 @@ +package 第七; + +import javax.servlet.*; +import javax.servlet.annotation.WebFilter; +import java.io.IOException; + +//配置Filter拦截路径 +@WebFilter("/test") +public class filter implements Filter { + @Override + public void init(FilterConfig filterConfig) throws ServletException { + + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { + request.setCharacterEncoding("utf-8"); + String[] str = new String[]{"sb","lz","2货"}; + String name = request.getParameter("name"); +// name = name.replaceAll("sb","**"); +// name = name.replaceAll("lz","**"); + for (int i = 0; i < str.length; i++) { + String index = str[i]; + name = name.replaceAll(index,"**"); + } + System.out.print("过滤后输出:"); + System.out.println(name); + request.setAttribute("name",name); + + + chain.doFilter(request,response); + } + @Override + public void destroy() { + + } +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterServelet.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterServelet.java" new file mode 100644 index 0000000..23bbf0b --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterServelet.java" @@ -0,0 +1,28 @@ +package 第七; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/test") +public class filterServelet extends HttpServlet { + @Override + public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + String name = request.getParameter("name"); + System.out.print("原输入:"); + System.out.println(name); + + + } + + + @Override + public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request,response); + + } + +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.html.txt" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.html.txt" new file mode 100644 index 0000000..0ace037 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.html.txt" @@ -0,0 +1,12 @@ + + + + + Title + + + + + + + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.jsp.txt" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.jsp.txt" new file mode 100644 index 0000000..93ac837 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.jsp.txt" @@ -0,0 +1,24 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/4 + Time: 15:49 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + + 过滤器应用---敏感词过滤 + + + +

过滤器应用---敏感词过滤

+
+ + +
+ + + diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/webtest.jsp.txt" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/webtest.jsp.txt" new file mode 100644 index 0000000..55f167c --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/webtest.jsp.txt" @@ -0,0 +1,20 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/5 + Time: 14:53 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 过滤器应用---敏感词过滤 + + +

过滤器应用---敏感词过滤

+
+ + +
+ + -- Gitee From 46df986d9fdf38e111e0f20a957358816a48c9c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:48:22 +0000 Subject: [PATCH 547/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=B8=83=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/filterweb.html.txt=20=E4=B8=BA=20=E7=AC=AC=E4=B8=83?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/filterw?= =?UTF-8?q?eb.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/filterweb.html" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.html.txt" => "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.html" (100%) diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.html.txt" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.html" similarity index 100% rename from "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.html.txt" rename to "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.html" -- Gitee From fec273f8551de757eabfd42d104b0ffcc65eff8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:48:32 +0000 Subject: [PATCH 548/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=B8=83=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/filterweb.jsp.txt=20=E4=B8=BA=20=E7=AC=AC=E4=B8=83?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/filterw?= =?UTF-8?q?eb.jsp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/filterweb.jsp" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.jsp.txt" => "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.jsp" (100%) diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.jsp.txt" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.jsp" similarity index 100% rename from "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.jsp.txt" rename to "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/filterweb.jsp" -- Gitee From b8a55beee75507b0775dcc67aaab151a9d6b81d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:48:38 +0000 Subject: [PATCH 549/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E4=B8=83=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/webtest.jsp.txt=20=E4=B8=BA=20=E7=AC=AC=E4=B8=83?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/webtest?= =?UTF-8?q?.jsp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/webtest.jsp" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/webtest.jsp.txt" => "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/webtest.jsp" (100%) diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/webtest.jsp.txt" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/webtest.jsp" similarity index 100% rename from "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/webtest.jsp.txt" rename to "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/webtest.jsp" -- Gitee From d1a6f07ea030a8a660ff885d5b92f801ceaef5cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:49:12 +0000 Subject: [PATCH 550/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From f754c792b8b27f5e17f8dd2f121dee24872a2367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:56:28 +0000 Subject: [PATCH 551/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨佳佳 <3600378145@qq.com> --- .../Brand.java" | 102 ++++++++++++++++++ .../ServletDemo1.java" | 39 +++++++ .../ServletDemo2.java" | 38 +++++++ .../User.java" | 77 +++++++++++++ .../jstl-foreach.jsp.txt" | 60 +++++++++++ .../jstl.jsp.txt" | 67 ++++++++++++ .../test.jsp.txt" | 44 ++++++++ 7 files changed, 427 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/ServletDemo1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/ServletDemo2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl-foreach.jsp.txt" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl.jsp.txt" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp.txt" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/Brand.java" new file mode 100644 index 0000000..043ff22 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/Brand.java" @@ -0,0 +1,102 @@ +package 第八; + + +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/ServletDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/ServletDemo1.java" new file mode 100644 index 0000000..0648e56 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/ServletDemo1.java" @@ -0,0 +1,39 @@ +package 第八; + +import com.ittest.pojo.Brand; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/ServletDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/ServletDemo2.java" new file mode 100644 index 0000000..a3a94f2 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/ServletDemo2.java" @@ -0,0 +1,38 @@ +package 第八; + + +import com.ittest.pojo.Brand; +import com.ittest.pojo.User; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/User.java" new file mode 100644 index 0000000..a9f8ee5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/User.java" @@ -0,0 +1,77 @@ +package 第八; + + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl-foreach.jsp.txt" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl-foreach.jsp.txt" new file mode 100644 index 0000000..0011b84 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl-foreach.jsp.txt" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl.jsp.txt" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl.jsp.txt" new file mode 100644 index 0000000..9e324af --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl.jsp.txt" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/6 + Time: 20:20 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp.txt" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp.txt" new file mode 100644 index 0000000..7795ee3 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp.txt" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From 1101a83633560d14c62ad2faa628175f21da1010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:56:39 +0000 Subject: [PATCH 552/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E5=85=AB=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/jstl-foreach.jsp.txt=20=E4=B8=BA=20=E7=AC=AC=E5=85=AB?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/jstl-fo?= =?UTF-8?q?reach.jsp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/jstl-foreach.jsp" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl-foreach.jsp.txt" => "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl-foreach.jsp" (100%) diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl-foreach.jsp.txt" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl-foreach.jsp" similarity index 100% rename from "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl-foreach.jsp.txt" rename to "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl-foreach.jsp" -- Gitee From 2c0ef212ff1cd5d29ee6c76b47d4b2bc94567e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:56:47 +0000 Subject: [PATCH 553/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E5=85=AB=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/jstl.jsp.txt=20=E4=B8=BA=20=E7=AC=AC=E5=85=AB?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/jstl.js?= =?UTF-8?q?p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/jstl.jsp" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl.jsp.txt" => "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl.jsp" (100%) diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl.jsp.txt" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl.jsp" similarity index 100% rename from "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl.jsp.txt" rename to "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/jstl.jsp" -- Gitee From 637b2f842918df5c399e0843f57fc97ae8551782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BD=B3=E4=BD=B3?= <3600378145@qq.com> Date: Thu, 15 Dec 2022 04:56:57 +0000 Subject: [PATCH 554/688] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=AC?= =?UTF-8?q?=E5=85=AB=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3?= =?UTF-8?q?=E4=BD=B3/test.jsp.txt=20=E4=B8=BA=20=E7=AC=AC=E5=85=AB?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E6=9D=A8=E4=BD=B3=E4=BD=B3/test.js?= =?UTF-8?q?p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\250\344\275\263\344\275\263/test.jsp" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp.txt" => "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp" (100%) diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp.txt" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp" similarity index 100% rename from "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp.txt" rename to "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\344\275\263\344\275\263/test.jsp" -- Gitee From ace2c960e67555d3d66e38ea9ac4b5bb365e908a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 05:16:00 +0000 Subject: [PATCH 555/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From b71a8cf14affad1328be70f846b4dfcd2aced9c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 05:16:29 +0000 Subject: [PATCH 556/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 39e6399a54cf2bdf5da259b0910cf6a06f0801de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 05:16:43 +0000 Subject: [PATCH 557/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 4150d385021701dc9daeb807e40b2b694d6afe51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 05:17:27 +0000 Subject: [PATCH 558/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 饶凤婷 <577553583@qq.com> --- .../FailServlet.java" | 21 ++++++++++ .../LoginServlet.java" | 40 +++++++++++++++++++ .../SuccessServlet.java" | 21 ++++++++++ .../loginservlet.html" | 14 +++++++ 4 files changed, 96 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/loginservlet.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/FailServlet.java" new file mode 100644 index 0000000..4b76b8e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/FailServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/LoginServlet.java" new file mode 100644 index 0000000..74f00ac --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/LoginServlet.java" @@ -0,0 +1,40 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/SuccessServlet.java" new file mode 100644 index 0000000..cfaf017 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/SuccessServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/loginservlet.html" new file mode 100644 index 0000000..f23af1f --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + -- Gitee From 11dea52d0f12f9b40b19accdc6d41dd57b7483d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 05:18:07 +0000 Subject: [PATCH 559/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 饶凤婷 <577553583@qq.com> --- .../Fail.java" | 22 ++++++++++++++++ .../Fail02.java" | 22 ++++++++++++++++ .../Servlet.java" | 25 ++++++++++++++++++ .../Servlet02.java" | 26 +++++++++++++++++++ .../Success.java" | 21 +++++++++++++++ .../Success02.java" | 22 ++++++++++++++++ .../index.jsp" | 9 +++++++ .../login.html" | 14 ++++++++++ .../login2.html" | 14 ++++++++++ 9 files changed, 175 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" new file mode 100644 index 0000000..6088ffd --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail01") +public class Fail01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" new file mode 100644 index 0000000..1bf1213 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail02") +public class Fail02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" new file mode 100644 index 0000000..a7117e0 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/s1") +public class Servlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username=req.getParameter("username"); + String password=req.getParameter("password"); + if ("admin".equals(username)&&"admin".equals(password)) { + req.getRequestDispatcher("/Success01").forward(req,resp); + } + else { + req.getRequestDispatcher("/Fail01").forward(req,resp); + } + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" new file mode 100644 index 0000000..6a80aa4 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/s2") +public class Servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String uname=req.getParameter("uname"); + String password=req.getParameter("password"); + if ("admin".equals(uname)&&"admin".equals(password)) { + resp.sendRedirect("Success02"); + } + else { + resp.sendRedirect("Fail02"); + } + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" new file mode 100644 index 0000000..3bda979 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Success01") +public class Success01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" new file mode 100644 index 0000000..22234bb --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Success02") +public class Success02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" new file mode 100644 index 0000000..07a093c --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" @@ -0,0 +1,9 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + $END$ + + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" new file mode 100644 index 0000000..96ade1e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" new file mode 100644 index 0000000..4933096 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + -- Gitee From 5c773997f201e6edd1775a078b1d440f411706a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 05:18:39 +0000 Subject: [PATCH 560/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 饶凤婷 <577553583@qq.com> --- .../DownloadServlet.java" | 45 +++++++++++++ .../LoginCheckServlet.java" | 44 ++++++++++++ .../ValidateCodeServlet.java" | 67 +++++++++++++++++++ .../download.html" | 11 +++ .../login.html" | 21 ++++++ 5 files changed, 188 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/download.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" new file mode 100644 index 0000000..604abae --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" @@ -0,0 +1,45 @@ +import javax.activation.MimeType; +import javax.servlet.ServletContext; +import javax.servlet.ServletException; +import javax.servlet.ServletInputStream; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/DownloadServlet1") +public class DownloadServlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取请求参数,文件名 + String filename=req.getParameter("filename"); + //1.使用字节流加载文件进内存 + //1.1找到服务器路径 + ServletContext servletContext=this.getServletContext(); + String realPath = servletContext.getRealPath("/img/"+filename); + //1.2用字节流关联 + ServletInputStream fis=req.getInputStream(); + + //2.设置response响应头 + //2.1设置响应头:content-type= ; + String mimeType = servletContext.getMimeType(filename); + resp.setHeader("content-type",mimeType); + //2.2设置响应头打开方式:content-disposition + resp.setHeader("content-disposition","attachment;filename="+filename); + //将输入流的数据写到输出流 + ServletOutputStream sos=resp.getOutputStream(); + byte [] buff=new byte[1024*8]; + int len=0; + while ((len=fis.read(buff))!=-1){ + sos.write(buff,0,len); + } + fis.close(); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" new file mode 100644 index 0000000..f90a14d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" @@ -0,0 +1,44 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.nio.charset.StandardCharsets; + +@WebServlet("/LoginCheckServlet") +public class LoginCheckServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //接收账号,密码,验证码 + String username=req.getParameter("username"); + String password=req.getParameter("password"); + String userCode=req.getParameter("userCode"); + //从session中取出正确验证码 + HttpSession session=req.getSession(); + String vCode= (String) session.getAttribute("vCode"); + //将用户输入的验证码和从session中的正确验证码进行对比 + resp.setContentType("text/html;charset=UTF-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + if (userCode.equals(vCode)) { + if ("admin".equals(username)&&"admin".equals(password)){ + + outputStream.write("登陆成功".getBytes("UTF-8")); + }else { + + outputStream.write("登陆失败,密码错误".getBytes("UTF-8")); + } + }else { + + outputStream.write("登陆失败,验证码错误".getBytes("UTF-8")); + } + + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" new file mode 100644 index 0000000..6138033 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" @@ -0,0 +1,67 @@ +import javax.imageio.ImageIO; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import javax.xml.ws.spi.http.HttpContext; +import java.awt.*; +import java.awt.image.BufferedImage; +import java.io.IOException; +import java.util.Random; +@WebServlet("/ValidateCodeServlet") +public class ValidateCodeServlet extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建一张图片 + int width=300;//验证码宽度 + int height=90;//验证码高度 + BufferedImage image=new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); + //绘制图片 + //从图片对象中获取绘制图片的“笔” + Graphics pen=image.createGraphics(); + //绘制背景 + pen.setColor(getRandomColor()); + //fillRect:绘制实心矩形 + pen.fillRect(0,0,width,height); + //绘制验证码字符串 + int letterNum=4;//验证码图片上的字符的个数 + int space=20;//验证码图片上两个字母之间的空隙 + int letterWidth=(width-(letterNum+1)*space)/letterNum;//计算每个字母占据的宽度 + //for循环每循环一次,绘制一个字母(小写字母的ASCII码97-122) + String vCode=""; + Random random=new Random(); + for(int i=0;i + + + + Title + +图片
+视频 + + + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" new file mode 100644 index 0000000..c37c745 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" @@ -0,0 +1,21 @@ + + + + + 用户登录 + +
+ 账号:
+ 密码:
+ 验证码: +
+
+
+ + + -- Gitee From c5311f9e32a1552c23c76d2bfeb337db7678aa42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 05:29:02 +0000 Subject: [PATCH 561/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 44763e3e7e11b67cfcf02a993d721799ce2008cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 05:29:16 +0000 Subject: [PATCH 562/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From e6265cb2c2b330108b9181493fc66d00894e89d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 05:29:26 +0000 Subject: [PATCH 563/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 430cfb305ee82b5aae953ca09530a25e0714e7f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 05:30:09 +0000 Subject: [PATCH 564/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 饶凤婷 <577553583@qq.com> --- .../CookieDemo1.java" | 24 +++++++ .../CookieDemo2.java" | 28 ++++++++ .../CookieTest.java" | 68 +++++++++++++++++++ 3 files changed, 120 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" new file mode 100644 index 0000000..b40a2f7 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" @@ -0,0 +1,24 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" new file mode 100644 index 0000000..7d0639a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" @@ -0,0 +1,28 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo2") +public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" new file mode 100644 index 0000000..3f99783 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" @@ -0,0 +1,68 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet(CookieTest) +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + 设置响应的消息体和数据格式以及编码 + resp.setContentType(texthtml;charset=utf-8); + + 获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;没有Cookie为lastTime + 遍历Cookie + if (cookies != nullcookies.length0) { + for (Cookie cookiecookies) { + 获取Cookie名称 + String name = cookie.getName(); + 判断是否是:lastTime + if (lastTime.equals(name)) { + 有该Cookie,不是第一次访问 + flag=true;有lastTime的Cookie + + + 设置Cookie的value + 获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat(yyyy年MM月dd日HHmmss); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + 设置Cookie的存活时间 + cookie.setMaxAge(60602430); + resp.addCookie(cookie); + + 响应数据 + 获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write(h1欢迎回来,您上次访问的时间为+value+h1); + break; + } + } + } + if (cookies==nullcookies.length==0flag==false) { + 没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat(yyyy年MM月dd日HHmmss); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie(lastTime,srt_date); + 设置Cookie的存活时间 + cookie.setMaxAge(60602430); + resp.addCookie(cookie); + + resp.getWriter().write(h1您好,欢迎您首次访问h1); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} -- Gitee From 7d8fd905d86c6c40da3690be248b343386a0056a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 05:30:39 +0000 Subject: [PATCH 565/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 饶凤婷 <577553583@qq.com> --- .../Step01.java" | 25 ++++++++++ .../Step02.java" | 33 +++++++++++++ .../address.html" | 48 +++++++++++++++++++ .../books.html" | 40 ++++++++++++++++ .../confirm.html" | 42 ++++++++++++++++ 5 files changed, 188 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step01.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step02.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step01.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step01.java" new file mode 100644 index 0000000..466ae45 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step01.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step02.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step02.java" new file mode 100644 index 0000000..c42f6cf --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step02.java" @@ -0,0 +1,33 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" new file mode 100644 index 0000000..cb09607 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" @@ -0,0 +1,48 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" new file mode 100644 index 0000000..3345749 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" @@ -0,0 +1,40 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + +

Step1选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" new file mode 100644 index 0000000..8d77c52 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" @@ -0,0 +1,42 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print(session.getAttribute("name"));%>
地址:<%out.print(session.getAttribute("address"));%>
付款信息
信用卡类型<%out.print(Arrays.toString((Object[]) session.getAttribute("types")));%>
卡号:<%out.print(session.getAttribute("username"));%>
订货项目<% out.print(Arrays.toString((Object[]) session.getAttribute("books")));%>
+ + + -- Gitee From 5c20b659e8084cadad7bb64055f05c8291c88a5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 05:31:03 +0000 Subject: [PATCH 566/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 饶凤婷 <577553583@qq.com> --- .../Numbers.jsp" | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" new file mode 100644 index 0000000..9a8cb07 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" @@ -0,0 +1,56 @@ +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/5 + Time: 16:54 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +<% + String [][]a={{"一"},{"二"},{"三"}}; + String [][]b={{"四"},{"五"},{"六"}}; + String [][]c={{"七"},{"八"},{"九"}}; +// String a="一"; +// String b="二"; +// String c="三"; +// String d="四"; +// String e="五"; +// String f="六"; +// String g="七"; +// String h="八"; +// String i="九"; +%> +

JSP数组内容

+ + + + + + + + + + + + + + + + + +
<%out.print(Arrays.toString(a[0]));%><%out.print(Arrays.toString(a[1]));%><%out.print(Arrays.toString(a[2]));%>
<%out.print(Arrays.toString(b[0]));%><%out.print(Arrays.toString(b[1]));%><%out.print(Arrays.toString(b[2]));%>
<%out.print(Arrays.toString(c[0]));%><%out.print(Arrays.toString(c[1]));%><%out.print(Arrays.toString(c[2]));%>
+ + + -- Gitee From 79db66babb82b11d8252f05dc55312828db2a23d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 05:34:05 +0000 Subject: [PATCH 567/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 饶凤婷 <577553583@qq.com> --- .../test.jsp" | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/test.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/test.jsp" new file mode 100644 index 0000000..7795ee3 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From ee481e3a42ee6dfcd6d392582e1fd97a81867b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 05:35:59 +0000 Subject: [PATCH 568/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 饶凤婷 <577553583@qq.com> --- .../text.html" | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/text.html" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/text.html" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/text.html" new file mode 100644 index 0000000..8bb8036 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/text.html" @@ -0,0 +1,26 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% +List user=new ArrayList(); +user.add("张三"); +user.add("李四"); +user.add("王五"); +request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + -- Gitee From 6afe2119f927c6f241417ac7fe83725c90f944f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 05:39:44 +0000 Subject: [PATCH 569/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 饶凤婷 <577553583@qq.com> --- .../filter.java" | 35 +++++++++++++++++++ .../filterServelet.java" | 26 ++++++++++++++ .../filterweb.html" | 12 +++++++ 3 files changed, 73 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/filter.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/filterServelet.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/filterweb.html" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/filter.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/filter.java" new file mode 100644 index 0000000..2c82a03 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/filter.java" @@ -0,0 +1,35 @@ +import javax.servlet.*; +import javax.servlet.annotation.WebFilter; +import java.io.IOException; + +//配置Filter拦截路径 +@WebFilter("/test") +public class filter implements Filter { + @Override + public void init(FilterConfig filterConfig) throws ServletException { + + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { + request.setCharacterEncoding("utf-8"); + String[] str = new String[]{"sb","lz","2货"}; + String name = request.getParameter("name"); +// name = name.replaceAll("sb","**"); +// name = name.replaceAll("lz","**"); + for (int i = 0; i < str.length; i++) { + String index = str[i]; + name = name.replaceAll(index,"**"); + } + System.out.print("过滤后输出:"); + System.out.println(name); + request.setAttribute("name",name); + + + chain.doFilter(request,response); + } + @Override + public void destroy() { + + } +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/filterServelet.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/filterServelet.java" new file mode 100644 index 0000000..bb346d1 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/filterServelet.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/test") +public class filterServelet extends HttpServlet { + @Override + public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + String name = request.getParameter("name"); + System.out.print("原输入:"); + System.out.println(name); + + + } + + + @Override + public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request,response); + + } + +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/filterweb.html" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/filterweb.html" new file mode 100644 index 0000000..0ace037 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/filterweb.html" @@ -0,0 +1,12 @@ + + + + + Title + + + + + + + -- Gitee From 1ae2993a0ee23db548e45558d66c6d699e16a409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E5=87=A4=E5=A9=B7?= <577553583@qq.com> Date: Thu, 15 Dec 2022 05:45:03 +0000 Subject: [PATCH 570/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 饶凤婷 <577553583@qq.com> --- .../Brand.java" | 99 +++++++++++++++++++ .../ServletDemo01.java" | 35 +++++++ .../ServletDemo02.java" | 32 ++++++ .../User.java" | 74 ++++++++++++++ .../jstl.jsp" | 60 +++++++++++ .../jstlforeach.jsp" | 60 +++++++++++ .../test.jsp" | 37 +++++++ 7 files changed, 397 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/ServletDemo01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/ServletDemo02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Brand.java" new file mode 100644 index 0000000..9b6c429 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/Brand.java" @@ -0,0 +1,99 @@ +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/ServletDemo01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/ServletDemo01.java" new file mode 100644 index 0000000..02063d1 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/ServletDemo01.java" @@ -0,0 +1,35 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/ServletDemo02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/ServletDemo02.java" new file mode 100644 index 0000000..71fc27a --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/ServletDemo02.java" @@ -0,0 +1,32 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/User.java" new file mode 100644 index 0000000..d9e3caf --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/User.java" @@ -0,0 +1,74 @@ +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/jstl.jsp" new file mode 100644 index 0000000..7a435f6 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/jstl.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/jstlforeach.jsp" new file mode 100644 index 0000000..0011b84 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/jstlforeach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/test.jsp" new file mode 100644 index 0000000..1aa14e9 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\245\266\345\207\244\345\251\267/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From b9ddd331cde82458d3014198be1496fad31fb4b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Thu, 15 Dec 2022 06:28:45 +0000 Subject: [PATCH 571/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/step3.jsp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../step3.jsp" | 73 ------------------- 1 file changed, 73 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step3.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step3.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step3.jsp" deleted file mode 100644 index bf53de8..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step3.jsp" +++ /dev/null @@ -1,73 +0,0 @@ -<%-- - Created by IntelliJ IDEA. - User: ɶ - Date: 2022/10/31 - Time: 17:07 - To change this template use File | Settings | File Templates. ---%> -<%@ page language="java" pageEncoding="gb2312"%> -<%@ page contentType="text/html;charset=gb2312"%> -<%@ page import="java.net.URLEncoder" %> -<%@ page import="java.net.URLDecoder" %> - - - - ȷ - - -
- - - <% - request.setCharacterEncoding("utf-8"); - %> - - - <% -// response.setContentType("test/http;charset=UTF-8"); - HttpSession session1 = request.getSession(); - String name = String.valueOf(session1.getAttribute("name")); - String javacheck = (String) session1.getAttribute("javacheck"); - String Oraclecheck = (String) session1.getAttribute("Oraclecheck"); - String Strutscheck = (String) session1.getAttribute("Strutscheck"); - String address = String.valueOf(session1.getAttribute("address")); - String cardcheck = String.valueOf(session1.getAttribute("cardcheck")); - String cardnumber = String.valueOf(session1.getAttribute("cardnumber")); - - %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
˿<%out.write(name);%>
ַ<%URLDecoder.decode(address,"UTF-8");%> - <%out.print(address);%>
Ϣ
ÿ<%out.write(cardcheck);%>
<%out.write(cardnumber);%>
Ŀ
<%out.write(javacheck);%>
<%out.print(Oraclecheck);%>
<%out.print(Strutscheck);%>
-
- - -- Gitee From e84824c01e1d2e2d8c0592f1dd971a77470611cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Thu, 15 Dec 2022 06:28:55 +0000 Subject: [PATCH 572/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/step2.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../step2.html" | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step2.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step2.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step2.html" deleted file mode 100644 index 2ab8b4e..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step2.html" +++ /dev/null @@ -1,44 +0,0 @@ - - - - - 订单信息 - - -

请输入寄送地址与信用卡信息

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
基本信息
姓名
寄送地址
信用卡信息
种类Master
Visa
卡号
-
- - \ No newline at end of file -- Gitee From b10530a98bea4c31df0671632c4199e93af4d094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Thu, 15 Dec 2022 06:29:06 +0000 Subject: [PATCH 573/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/shopcarServlet.ja?= =?UTF-8?q?va?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shopcarServlet.java" | 46 ------------------- 1 file changed, 46 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/shopcarServlet.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/shopcarServlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/shopcarServlet.java" deleted file mode 100644 index 5a47470..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/shopcarServlet.java" +++ /dev/null @@ -1,46 +0,0 @@ -package com.web; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.servlet.http.HttpSession; -import java.io.IOException; -@WebServlet("/shopcarServlet") -public class shopcarServlet extends HttpServlet { - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.setContentType("text/html;charset=UTF-8"); - String javacheck = req.getParameter("javacheck"); - String Oraclecheck = req.getParameter("Oraclecheck"); - String Strutscheck = req.getParameter("Strutscheck"); -// if ("java".equals(javacheck)){ -// Cookie check1 = new Cookie("check1", javacheck); -// check1.setMaxAge(60*60*24*7); -// resp.addCookie(check1); -// } -// if ("Oracle".equals(Oraclecheck)){ -// Cookie check2 = new Cookie("check2", Oraclecheck); -// check2.setMaxAge(60*60*24*7); -// resp.addCookie(check2); -// } -// if ("Struts".equals(Strutscheck)){ -// Cookie check3 = new Cookie("check3", Strutscheck); -// check3.setMaxAge(60*60*24*7); -// resp.addCookie(check3); -// } - HttpSession session = req.getSession(); - session.setAttribute("javacheck",javacheck); - session.setAttribute("Oraclecheck",Oraclecheck); - session.setAttribute("Strutscheck",Strutscheck); - String contextPath = req.getContextPath(); - resp.sendRedirect("/webWork/step2.html"); -// req.getRequestDispatcher("/step2.html").forward(req,resp); - } - - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } -} -- Gitee From fccab2729ba7b53fe57e2c61b597ce1807a3478f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Thu, 15 Dec 2022 06:29:20 +0000 Subject: [PATCH 574/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/addressServlet.ja?= =?UTF-8?q?va?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../addressServlet.java" | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/addressServlet.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/addressServlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/addressServlet.java" deleted file mode 100644 index 3760bde..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/addressServlet.java" +++ /dev/null @@ -1,34 +0,0 @@ -package com.web; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.servlet.http.HttpSession; -import java.io.IOException; -import java.net.URLEncoder; - -@WebServlet("/addressServlet") -public class addressServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.setCharacterEncoding("UTF-8"); - resp.setContentType("text/html;charset=UTF-8"); - String name = req.getParameter("name"); - String address = new String(req.getParameter("address").getBytes("ISO-8859-1"),"UTF-8"); - String cardcheck = req.getParameter("cardcheck"); - String cardnumber = req.getParameter("cardnumber"); - HttpSession session = req.getSession(); - session.setAttribute("name",name); - session.setAttribute("address",address); - session.setAttribute("cardcheck",cardcheck); - session.setAttribute("cardnumber",cardnumber); - resp.sendRedirect("/webWork/step3.jsp"); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doGet(req,resp); - } -} -- Gitee From 7b9a13599dade44e0e77322fe430605e279d1585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E6=B0=912002?= <862619160@qq.com> Date: Thu, 15 Dec 2022 06:29:27 +0000 Subject: [PATCH 575/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/step1.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../step1.html" | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step1.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step1.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step1.html" deleted file mode 100644 index f8f1376..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/step1.html" +++ /dev/null @@ -1,35 +0,0 @@ - - - - - 购物车 - - -
- -

Step1:选择要购买的书籍

- - - - - - - - - - - - - - - - - - - - - -
书名购买
Java

Oraclecheck

Strutscheck

-
- - \ No newline at end of file -- Gitee From 2c76b0e951f3bc450559d5544bb6c4d875d133cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=96=87=E8=B6=853=2E31?= <10602840+huang-wenchao-331@user.noreply.gitee.com> Date: Thu, 15 Dec 2022 07:56:20 +0000 Subject: [PATCH 576/688] =?UTF-8?q?add=20=E7=AC=AC=E4=B8=80=E7=AB=A0?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A/=E9=BB=84=E6=96=87=E8=B6=85.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄文超3.31 <10602840+huang-wenchao-331@user.noreply.gitee.com> --- .../\351\273\204\346\226\207\350\266\205" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\273\204\346\226\207\350\266\205" diff --git "a/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\273\204\346\226\207\350\266\205" "b/\347\254\254\344\270\200\347\253\240\344\275\234\344\270\232/\351\273\204\346\226\207\350\266\205" new file mode 100644 index 0000000..e69de29 -- Gitee From 2282fdeacea94e411126b44839c6b954fe5a0e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Fri, 16 Dec 2022 02:20:24 +0000 Subject: [PATCH 577/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=82=93=E7=BE=8E?= =?UTF-8?q?=E8=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\202\223\347\276\216\350\220\215/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From c8fcb77ca9911602aaa23d64755fad04dabd4162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Fri, 16 Dec 2022 07:38:32 +0000 Subject: [PATCH 578/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邓美萍 <479405703@qq.com> --- .../jwwork5.html" | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/jwwork5.html" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/jwwork5.html" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/jwwork5.html" new file mode 100644 index 0000000..352ff5b --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/jwwork5.html" @@ -0,0 +1,44 @@ +<%-- +Created by IntelliJ IDEA. +User: DMP +Date: 2022/12/7 +Time: 15:27 +To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% +String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From 08cd821a47b462c37a1f4dd7d2d114e7d6ba4d10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Fri, 16 Dec 2022 07:46:48 +0000 Subject: [PATCH 579/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=82=93?= =?UTF-8?q?=E7=BE=8E=E8=90=8D/jwwork5.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jwwork5.html" | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/jwwork5.html" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/jwwork5.html" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/jwwork5.html" deleted file mode 100644 index 352ff5b..0000000 --- "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/jwwork5.html" +++ /dev/null @@ -1,44 +0,0 @@ -<%-- -Created by IntelliJ IDEA. -User: DMP -Date: 2022/12/7 -Time: 15:27 -To change this template use File | Settings | File Templates. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ page language="java" %> -<% -String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; -%> - - - - - Java 二维数组示例 - - -

Java 二维数组内容

- - - - - - - <% - for (int i = 0; i < array.length; i++) { - %> - - <% - for (int j = 0; j < array[i].length; j++) { - %> - - <% - } - %> - - <% - } - %> -
第一列第二列第三列
<%= array[i][j] %>
- - -- Gitee From f7bff7d4e5390beb658ded79f292b2104662f804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Fri, 16 Dec 2022 07:49:59 +0000 Subject: [PATCH 580/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=82=93=E7=BE=8E?= =?UTF-8?q?=E8=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\202\223\347\276\216\350\220\215/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From ce53317e5947098c2869cbb5af988be8e85efcfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Fri, 16 Dec 2022 07:50:26 +0000 Subject: [PATCH 581/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邓美萍 <479405703@qq.com> --- .../jstlwork1.jsp" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/jstlwork1.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/jstlwork1.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/jstlwork1.jsp" new file mode 100644 index 0000000..38fd3d2 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/jstlwork1.jsp" @@ -0,0 +1,34 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/12 + Time: 21:27 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("陈恒辉"); + user.add("邹晓民"); + user.add("细狗"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + -- Gitee From 9169273b5b614ce4f371f5f4eaadef1c6acb2a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Fri, 16 Dec 2022 07:53:20 +0000 Subject: [PATCH 582/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邓美萍 <479405703@qq.com> --- .../Demo5.jsp" | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/Demo5.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/Demo5.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/Demo5.jsp" new file mode 100644 index 0000000..988f40c --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/Demo5.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: DMP + Date: 2022/12/7 + Time: 12:16 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From ef9abb5e249f2569866900224683da3d7bc49044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Fri, 16 Dec 2022 07:54:34 +0000 Subject: [PATCH 583/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=82=93=E7=BE=8E?= =?UTF-8?q?=E8=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\202\223\347\276\216\350\220\215/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 9a41a4f4907a8a0bbfc636b024157c176c74e5ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Fri, 16 Dec 2022 08:05:38 +0000 Subject: [PATCH 584/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邓美萍 <479405703@qq.com> --- .../Filter.java" | 35 +++++++++++++++++++ .../FilterServelet.java" | 26 ++++++++++++++ .../Filterweb.html" | 12 +++++++ .../Filterweb.jsp" | 24 +++++++++++++ .../Webtest.jsp" | 20 +++++++++++ 5 files changed, 117 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/Filter.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/FilterServelet.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/Filterweb.html" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/Filterweb.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/Webtest.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/Filter.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/Filter.java" new file mode 100644 index 0000000..062c312 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/Filter.java" @@ -0,0 +1,35 @@ +import javax.servlet.*; +import javax.servlet.annotation.WebFilter; +import java.io.IOException; + +//配置Filter拦截路径 +@WebFilter("/test") +public class Filter implements Filter { + @Override + public void init(FilterConfig FilterConfig) throws ServletException { + + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { + request.setCharacterEncoding("utf-8"); + String[] str = new String[]{"sb","lz","2货"}; + String name = request.getParameter("name"); +// name = name.replaceAll("sb","**"); +// name = name.replaceAll("lz","**"); + for (int i = 0; i < str.length; i++) { + String index = str[i]; + name = name.replaceAll(index,"**"); + } + System.out.print("过滤后输出:"); + System.out.println(name); + request.setAttribute("name",name); + + + chain.doFilter(request,response); + } + @Override + public void destroy() { + + } +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/FilterServelet.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/FilterServelet.java" new file mode 100644 index 0000000..bb346d1 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/FilterServelet.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/test") +public class filterServelet extends HttpServlet { + @Override + public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + String name = request.getParameter("name"); + System.out.print("原输入:"); + System.out.println(name); + + + } + + + @Override + public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request,response); + + } + +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/Filterweb.html" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/Filterweb.html" new file mode 100644 index 0000000..3b56155 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/Filterweb.html" @@ -0,0 +1,12 @@ + + + + + Title + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/Filterweb.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/Filterweb.jsp" new file mode 100644 index 0000000..e6945eb --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/Filterweb.jsp" @@ -0,0 +1,24 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/4 + Time: 15:49 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + + 过滤器应用---敏感词过滤 + + + +

过滤器应用---敏感词过滤

+
+ + +
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/Webtest.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/Webtest.jsp" new file mode 100644 index 0000000..3181cc6 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/Webtest.jsp" @@ -0,0 +1,20 @@ +<%-- + Created by IntelliJ IDEA. + User: DMP + Date: 2022/12/16 + Time: 16:04 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 过滤器应用---敏感词过滤 + + +

过滤器应用---敏感词过滤

+
+ + +
+ + -- Gitee From 82354ff040a2e363cdb790e0908157d636de07ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Fri, 16 Dec 2022 08:07:41 +0000 Subject: [PATCH 585/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=82=93=E7=BE=8E?= =?UTF-8?q?=E8=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\202\223\347\276\216\350\220\215/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 1e5b05f6093e2b6f3b5fdec2061c4b2727d797a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=BE=8E=E8=90=8D?= <479405703@qq.com> Date: Fri, 16 Dec 2022 08:17:54 +0000 Subject: [PATCH 586/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邓美萍 <479405703@qq.com> --- .../Eight/Brand.java" | 103 ++++++++++++++++++ .../Eight/ServeltDemo1.java" | 37 +++++++ .../Eight/ServeltDemo2.java" | 34 ++++++ .../Eight/User.java" | 77 +++++++++++++ .../Test.jsp" | 37 +++++++ 5 files changed, 288 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Eight/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Eight/ServeltDemo1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Eight/ServeltDemo2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Eight/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Eight/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Eight/Brand.java" new file mode 100644 index 0000000..66f1c52 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Eight/Brand.java" @@ -0,0 +1,103 @@ +package Eight; + +public class Brand { + + /** + * 品牌实体类 + */ + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } + } + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Eight/ServeltDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Eight/ServeltDemo1.java" new file mode 100644 index 0000000..76359a1 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Eight/ServeltDemo1.java" @@ -0,0 +1,37 @@ +package Eight; + +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + + @WebServlet("/demo1") + public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Eight/ServeltDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Eight/ServeltDemo2.java" new file mode 100644 index 0000000..a5245d1 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Eight/ServeltDemo2.java" @@ -0,0 +1,34 @@ +package Eight; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Eight/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Eight/User.java" new file mode 100644 index 0000000..e04c5ad --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Eight/User.java" @@ -0,0 +1,77 @@ +package Eight; + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Test.jsp" new file mode 100644 index 0000000..8977c06 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\202\223\347\276\216\350\220\215/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/Test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From a2a2e932ddc1cc802aa00f422c3a7c965c00d200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:13:53 +0000 Subject: [PATCH 587/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=99=88?= =?UTF-8?q?=E6=96=AF=E9=9B=85/fail.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fail.java" | 21 ------------------- 1 file changed, 21 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/fail.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/fail.java" deleted file mode 100644 index eed2ce7..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/fail.java" +++ /dev/null @@ -1,21 +0,0 @@ -package third; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/Fail") -public class fail extends HttpServlet { - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.getWriter().write("登录失败,用户名或密码错误!"); - } -} - -- Gitee From 2575130bfbd7ad7d08b7ea6441a55b66cf00623e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:13:59 +0000 Subject: [PATCH 588/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=99=88?= =?UTF-8?q?=E6=96=AF=E9=9B=85/login.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../login.html" | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.html" deleted file mode 100644 index 70f8f2b..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.html" +++ /dev/null @@ -1,17 +0,0 @@ - - - - - 用户登录 - - -
-
- 姓名:
- 密码:
- - -
-
- - \ No newline at end of file -- Gitee From eb5b14ab9571427e840b39a06244c74cf38d3484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:14:05 +0000 Subject: [PATCH 589/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=99=88?= =?UTF-8?q?=E6=96=AF=E9=9B=85/login.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../login.java" | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.java" deleted file mode 100644 index 56829f5..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/login.java" +++ /dev/null @@ -1,36 +0,0 @@ -package third; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.IOException; - -@WebServlet("/login") -public class login extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.setCharacterEncoding("utf-8"); - BufferedReader reader = req.getReader(); - String line; - while ((line = reader.readLine()) != null) { - System.out.println(line); - String[] paramsArr = line.split("&"); - String username = paramsArr[0].split("=")[1]; - String password = paramsArr[1].split("=")[1]; - if ("admin".equals(username) && "admin".equals(password)) { - System.out.println("登录成功!"); - req.getRequestDispatcher("/Success").forward(req,resp); - } else { - System.out.println("登录失败!"); - req.getRequestDispatcher("/Fail").forward(req,resp); - } - } - } - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } -} -- Gitee From c1b68ee4aef5c67c55f8188a554c000ee3d9e120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:14:13 +0000 Subject: [PATCH 590/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=99=88?= =?UTF-8?q?=E6=96=AF=E9=9B=85/success.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../success.java" | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/success.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/success.java" deleted file mode 100644 index 5b7de3e..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/success.java" +++ /dev/null @@ -1,20 +0,0 @@ -package third; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/Success") -public class success extends HttpServlet { - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - super.doPost(req, resp); - } - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.getWriter().write("登录成功! admin欢迎您!"); - } -} -- Gitee From 6f0429148e8d10cee7605c7debe3a4d08660baae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:14:36 +0000 Subject: [PATCH 591/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈斯雅 <435508900@qq.com> --- .../fail.java" | 20 +++++++++++ .../login.html" | 17 +++++++++ .../login.java" | 36 +++++++++++++++++++ .../success.java" | 20 +++++++++++ 4 files changed, 93 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/login.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/success.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/fail.java" new file mode 100644 index 0000000..b5e7e2d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/fail.java" @@ -0,0 +1,20 @@ +package com.third; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail") +public class fail extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/login.html" new file mode 100644 index 0000000..70f8f2b --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/login.html" @@ -0,0 +1,17 @@ + + + + + 用户登录 + + +
+
+ 姓名:
+ 密码:
+ + +
+
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/login.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/login.java" new file mode 100644 index 0000000..97fffe6 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/login.java" @@ -0,0 +1,36 @@ +package com.third; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/login") +public class login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/Success").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/Fail").forward(req,resp); + } + } + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/success.java" new file mode 100644 index 0000000..8f59e70 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/success.java" @@ -0,0 +1,20 @@ +package com.third; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Success") +public class success extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } +} \ No newline at end of file -- Gitee From 1d98982aa451636598486117aaca84332880e540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:14:47 +0000 Subject: [PATCH 592/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\254\254\344\272\214\346\254\241/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 0f5370ec842e0bfb7dd5db4409a05f93fb044052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:48:16 +0000 Subject: [PATCH 593/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\254\254\344\270\211\346\254\241/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/.keep" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/.keep" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From aa85b8f4583d623c6d64cc12eb36c2dd4fbc3da9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:51:34 +0000 Subject: [PATCH 594/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈斯雅 <435508900@qq.com> --- .../fail.java" | 24 ++++++++++++++++ .../fail2.java" | 24 ++++++++++++++++ .../index.js" | 9 ++++++ .../login.html" | 14 ++++++++++ .../login2.html" | 14 ++++++++++ .../servlet.java" | 27 ++++++++++++++++++ .../servlet2.java" | 28 +++++++++++++++++++ .../success.java" | 23 +++++++++++++++ .../success2.java" | 24 ++++++++++++++++ 9 files changed, 187 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/fail2.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/index.js" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/login2.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/servlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/servlet2.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/success.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/success2.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/fail.java" new file mode 100644 index 0000000..2adbe7c --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/fail.java" @@ -0,0 +1,24 @@ +package com.third.second; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail1") +public class fail extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/fail2.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/fail2.java" new file mode 100644 index 0000000..3e24497 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/fail2.java" @@ -0,0 +1,24 @@ +package com.third.second; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail2") +public class fail2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/index.js" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/index.js" new file mode 100644 index 0000000..53a3f3e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/index.js" @@ -0,0 +1,9 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + +$END$ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/login.html" new file mode 100644 index 0000000..c19aa58 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/login.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/login2.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/login2.html" new file mode 100644 index 0000000..3a32640 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/login2.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/servlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/servlet.java" new file mode 100644 index 0000000..591e846 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/servlet.java" @@ -0,0 +1,27 @@ +package com.third.second; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/S1") +public class servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username=req.getParameter("username"); + String password=req.getParameter("password"); + if ("admin".equals(username)&&"admin".equals(password)) { + req.getRequestDispatcher("/Success01").forward(req,resp); + } + else { + req.getRequestDispatcher("/Fail01").forward(req,resp); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/servlet2.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/servlet2.java" new file mode 100644 index 0000000..aff20eb --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/servlet2.java" @@ -0,0 +1,28 @@ +package com.third.second; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/S2") +public class servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String uname=req.getParameter("uname"); + String password=req.getParameter("password"); + if ("admin".equals(uname)&&"admin".equals(password)) { + resp.sendRedirect("Success02"); + } + else { + resp.sendRedirect("Fail02"); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/success.java" new file mode 100644 index 0000000..f373b14 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/success.java" @@ -0,0 +1,23 @@ +package com.third.second; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Success1") +public class success extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/success2.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/success2.java" new file mode 100644 index 0000000..8b61e55 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/success2.java" @@ -0,0 +1,24 @@ +package com.third.second; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Success2") +public class success2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} \ No newline at end of file -- Gitee From 50ac2834d9534ff05370f784b793164d5227ba05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:51:58 +0000 Subject: [PATCH 595/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈斯雅 <435508900@qq.com> --- .../download.html" | 11 +++ .../download.java" | 46 +++++++++++++ .../login.html" | 21 ++++++ .../logincheck.java" | 45 ++++++++++++ .../validatecode.java" | 68 +++++++++++++++++++ 5 files changed, 191 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/download.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/download.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/logincheck.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/validatecode.java" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/download.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/download.html" new file mode 100644 index 0000000..3406b77 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/download.html" @@ -0,0 +1,11 @@ + + + + + Title + +图片
+视频 + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/download.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/download.java" new file mode 100644 index 0000000..9128e88 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/download.java" @@ -0,0 +1,46 @@ +package com.third.third; + +import javax.servlet.ServletContext; +import javax.servlet.ServletException; +import javax.servlet.ServletInputStream; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Download") +public class download extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取请求参数,文件名 + String filename=req.getParameter("filename"); + //1.使用字节流加载文件进内存 + //1.1找到服务器路径 + ServletContext servletContext=this.getServletContext(); + String realPath = servletContext.getRealPath("/img/"+filename); + //1.2用字节流关联 + ServletInputStream fis=req.getInputStream(); + + //2.设置response响应头 + //2.1设置响应头:content-type= ; + String mimeType = servletContext.getMimeType(filename); + resp.setHeader("content-type",mimeType); + //2.2设置响应头打开方式:content-disposition + resp.setHeader("content-disposition","attachment;filename="+filename); + //将输入流的数据写到输出流 + ServletOutputStream sos=resp.getOutputStream(); + byte [] buff=new byte[1024*8]; + int len=0; + while ((len=fis.read(buff))!=-1){ + sos.write(buff,0,len); + } + fis.close(); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/login.html" new file mode 100644 index 0000000..def2297 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/login.html" @@ -0,0 +1,21 @@ + + + + + 用户登录 + +
+ 密码:
+ 验证码: +
+
+
+ + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/logincheck.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/logincheck.java" new file mode 100644 index 0000000..2319ddc --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/logincheck.java" @@ -0,0 +1,45 @@ +package com.third.third; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/LoginCheck") +public class logincheck extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //接收账号,密码,验证码 + String username=req.getParameter("username"); + String password=req.getParameter("password"); + String userCode=req.getParameter("userCode"); + //从session中取出正确验证码 + HttpSession session=req.getSession(); + String vCode= (String) session.getAttribute("vCode"); + //将用户输入的验证码和从session中的正确验证码进行对比 + resp.setContentType("text/html;charset=UTF-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + if (userCode.equals(vCode)) { + if ("admin".equals(username)&&"admin".equals(password)){ + + outputStream.write("登陆成功".getBytes("UTF-8")); + }else { + + outputStream.write("登陆失败,密码错误".getBytes("UTF-8")); + } + }else { + + outputStream.write("登陆失败,验证码错误".getBytes("UTF-8")); + } + + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/validatecode.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/validatecode.java" new file mode 100644 index 0000000..f4d3209 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\211\346\254\241/validatecode.java" @@ -0,0 +1,68 @@ +package com.third.third; + +import javax.imageio.ImageIO; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.awt.*; +import java.awt.image.BufferedImage; +import java.io.IOException; +import java.util.Random; +@WebServlet("/ValidateCode") +public class validatecode extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建一张图片 + int width=300;//验证码宽度 + int height=90;//验证码高度 + BufferedImage image=new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); + //绘制图片 + //从图片对象中获取绘制图片的“笔” + Graphics pen=image.createGraphics(); + //绘制背景 + pen.setColor(getRandomColor()); + //fillRect:绘制实心矩形 + pen.fillRect(0,0,width,height); + //绘制验证码字符串 + int letterNum=4;//验证码图片上的字符的个数 + int space=20;//验证码图片上两个字母之间的空隙 + int letterWidth=(width-(letterNum+1)*space)/letterNum;//计算每个字母占据的宽度 + //for循环每循环一次,绘制一个字母(小写字母的ASCII码97-122) + String vCode=""; + Random random=new Random(); + for(int i=0;i Date: Sun, 18 Dec 2022 06:52:32 +0000 Subject: [PATCH 596/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E5=9B=9B?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 1cd9159aaecbbbb31b6010fc4569e328af5916ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:52:58 +0000 Subject: [PATCH 597/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=BA=94?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 6048401c91f8f2b84a03b059f03190bf7380c870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:53:16 +0000 Subject: [PATCH 598/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E5=85=AD?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From a076cf5b1562cc0ab6d92874782c927015956762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:53:29 +0000 Subject: [PATCH 599/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=83?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 7a60cf2d86183981d86645612cb3a17982822c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:53:39 +0000 Subject: [PATCH 600/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E5=85=AB?= =?UTF-8?q?=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 53384a256b59da67ec1560d4516cfa1c82da82f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:54:23 +0000 Subject: [PATCH 601/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=99=88=E6=96=AF?= =?UTF-8?q?=E9=9B=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\231\210\346\226\257\351\233\205/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From f245944fc00b6d45d2aebf73130edd3e451d3ebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:54:36 +0000 Subject: [PATCH 602/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=99=88=E6=96=AF?= =?UTF-8?q?=E9=9B=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\231\210\346\226\257\351\233\205/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 86a44c27ba11d3ad828c620bc4f0da4566195484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:54:56 +0000 Subject: [PATCH 603/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=99=88=E6=96=AF?= =?UTF-8?q?=E9=9B=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\231\210\346\226\257\351\233\205/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 5295e81c325a27c9651e457df21391956f9ab22b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:55:12 +0000 Subject: [PATCH 604/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=99=88=E6=96=AF?= =?UTF-8?q?=E9=9B=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\231\210\346\226\257\351\233\205/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 5534e541ed33f6c1096d46491c2054c8176efb5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 06:55:27 +0000 Subject: [PATCH 605/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=99=88=E6=96=AF?= =?UTF-8?q?=E9=9B=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\231\210\346\226\257\351\233\205/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 088446a0e225c060f9570d97c633e6ee783bacb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 07:04:03 +0000 Subject: [PATCH 606/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=99=88?= =?UTF-8?q?=E6=96=AF=E9=9B=85/=E7=AC=AC=E4=BA=8C=E6=AC=A1/index.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\254\254\344\272\214\346\254\241/index.js" | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/index.js" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/index.js" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/index.js" deleted file mode 100644 index 53a3f3e..0000000 --- "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/index.js" +++ /dev/null @@ -1,9 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - - - $Title$ - - -$END$ - - \ No newline at end of file -- Gitee From fbd286e84d7f67096a61e285d37ba32b38623cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 07:04:42 +0000 Subject: [PATCH 607/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈斯雅 <435508900@qq.com> --- .../\347\254\254\344\272\214\346\254\241/index.jsp" | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/index.jsp" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/index.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/index.jsp" new file mode 100644 index 0000000..53a3f3e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/index.jsp" @@ -0,0 +1,9 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + +$END$ + + \ No newline at end of file -- Gitee From e6eee5e74fdfff9cd7dffe00c41f05afeb79b498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 07:05:00 +0000 Subject: [PATCH 608/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\254\254\344\270\200\346\254\241/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From da1c57987f43ab2eb3d398e6cf473d5ac81b1af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 07:05:13 +0000 Subject: [PATCH 609/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\254\254\344\272\214\346\254\241/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 390b3d85e097ff9ac11aba1e52c2b768a3a0abd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 07:31:06 +0000 Subject: [PATCH 610/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈斯雅 <435508900@qq.com> --- .../cookie.java" | 26 +++++++ .../cookie2.java" | 30 ++++++++ .../test.java" | 71 +++++++++++++++++++ 3 files changed, 127 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/cookie.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/cookie2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/test.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/cookie.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/cookie.java" new file mode 100644 index 0000000..4581c0d --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/cookie.java" @@ -0,0 +1,26 @@ +package com.fourth.first; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Cookie") +public class cookie extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1 = new Cookie("msg", "你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req, resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/cookie2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/cookie2.java" new file mode 100644 index 0000000..d6e3455 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/cookie2.java" @@ -0,0 +1,30 @@ +package com.fourth.first; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Cookie2") +public class cookie2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/test.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/test.java" new file mode 100644 index 0000000..8baaa76 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\270\200\346\254\241/test.java" @@ -0,0 +1,71 @@ +package com.fourth.first; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.Objects; +import java.util.concurrent.Callable; +@WebServlet("/Test") +public class test extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null|| Objects.requireNonNull(cookies).length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file -- Gitee From 3fb0f6ab23d740040e443ea722dccc6021ad840c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 07:31:27 +0000 Subject: [PATCH 611/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈斯雅 <435508900@qq.com> --- .../address.html" | 36 ++++++++++++++ .../books.html" | 41 ++++++++++++++++ .../confirm.jsp" | 47 +++++++++++++++++++ .../step.java" | 23 +++++++++ .../step2.java" | 27 +++++++++++ 5 files changed, 174 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/confirm.jsp" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/step.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/step2.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/address.html" new file mode 100644 index 0000000..3725556 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/address.html" @@ -0,0 +1,36 @@ + + + + + Title + + + +

Step2:请输入寄送地址与信用卡信息

+
+ + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/books.html" new file mode 100644 index 0000000..b23035a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/books.html" @@ -0,0 +1,41 @@ + + + + + Title + + + +

Step1:选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/confirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/confirm.jsp" new file mode 100644 index 0000000..23d6816 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/confirm.jsp" @@ -0,0 +1,47 @@ +<%@ page import="java.io.PrintWriter" %> +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/10/31 + Time: 20:42 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + HttpSession session1 = request.getSession(); + String[] books = (String[])session1.getAttribute("books"); + String name = (String)session1.getAttribute("name"); + String address = (String)session1.getAttribute("address"); + PrintWriter printWriter = response.getWriter(); +%> + + + Title + + + +
+ <%printWriter.print("

Step3:订单确认

");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("
顾客姓名"+name+"
地址"+address+"
订货项目"+ Arrays.toString(books) +"");%> + <%printWriter.print("
");%> + + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/step.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/step.java" new file mode 100644 index 0000000..9bfedfa --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/step.java" @@ -0,0 +1,23 @@ +package com.fourth.second; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Step1") +public class step extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[]books = req.getParameterValues("books"); + req.getSession().setAttribute("books",books); + resp.sendRedirect("/c4/address.html"); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/step2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/step2.java" new file mode 100644 index 0000000..3c3f64f --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/\347\254\254\344\272\214\346\254\241/step2.java" @@ -0,0 +1,27 @@ +package com.fourth.second; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/Step2") +public class step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String name = req.getParameter("name"); + String address = req.getParameter("address"); + HttpSession session = req.getSession(); + session.setAttribute("name",name); + session.setAttribute("address",address); + resp.sendRedirect("/c4/confirm.jsp"); + } +} \ No newline at end of file -- Gitee From 4504b6cc0af0e510419fa3bcfcd474dbab7ffa84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 07:32:04 +0000 Subject: [PATCH 612/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈斯雅 <435508900@qq.com> --- .../test.jsp" | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/test.jsp" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/test.jsp" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/test.jsp" new file mode 100644 index 0000000..51d8686 --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 夏天 + Date: 2022/12/12 + Time: 22:30 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+
+ + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 52eeca5f757ae214648c0f49a243328bc9a7ea22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 07:32:38 +0000 Subject: [PATCH 613/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈斯雅 <435508900@qq.com> --- .../test.jsp" | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/test.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/test.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/test.jsp" new file mode 100644 index 0000000..849fd77 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/test.jsp" @@ -0,0 +1,35 @@ + +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- +Created by IntelliJ IDEA. +User: Administrator +Date: 2022/11/12 +Time: 21:27 +To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("麻花"); + user.add("正太"); + user.add("巫师"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From b536016a2ed2fcd7ad0c017b0f707f9bf2ecddc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 07:33:09 +0000 Subject: [PATCH 614/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈斯雅 <435508900@qq.com> --- .../test.jsp" | 47 +++++++++++++++++++ .../user.java" | 40 ++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/test.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/user.java" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/test.jsp" new file mode 100644 index 0000000..bc22cf9 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/test.jsp" @@ -0,0 +1,47 @@ +<%@ page import="com.seventh.user" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="java.util.List" %> +<%-- + Created by IntelliJ IDEA. + User: 夏天 + Date: 2022/12/12 + Time: 22:30 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new user("麻花",22,"福建")); + list.add(new user("正太",23,"江西")); + list.add(new user("巫师",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.address} + +
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/user.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/user.java" new file mode 100644 index 0000000..3a3442a --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/user.java" @@ -0,0 +1,40 @@ +package com.seventh; + +public class user { + private String name; + private int age; + private String address; + + public user() { + } + + public user(String name, int age, String address) { + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } +} -- Gitee From bd3c7d111d4a522b2358c63081f66451b80811c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E9=9B=85?= <435508900@qq.com> Date: Sun, 18 Dec 2022 07:33:46 +0000 Subject: [PATCH 615/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈斯雅 <435508900@qq.com> --- .../brand.java" | 97 +++++++++++++++++++ .../jstl.jsp" | 67 +++++++++++++ .../jstl2.jsp" | 60 ++++++++++++ .../servlet.java" | 37 +++++++ .../servlet2.java" | 34 +++++++ .../test.jsp" | 44 +++++++++ .../user.java" | 76 +++++++++++++++ 7 files changed, 415 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/jstl2.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/servlet.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/servlet2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/test.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/user.java" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/brand.java" new file mode 100644 index 0000000..89d819c --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/brand.java" @@ -0,0 +1,97 @@ +package com.eighth; + +public class brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public brand() { + } + + public brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/jstl.jsp" new file mode 100644 index 0000000..6335a34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/jstl.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 +Date: 2022/12/6 +Time: 20:20 +To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ + <%----%> + <%-- ${i}--%> + <%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/jstl2.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/jstl2.jsp" new file mode 100644 index 0000000..eb19d1a --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/jstl2.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ + <%----%> + <%-- ${i}--%> + <%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/servlet.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/servlet.java" new file mode 100644 index 0000000..354a894 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/servlet.java" @@ -0,0 +1,37 @@ +package com.eighth; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/Servelt1") +public class servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/servlet2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/servlet2.java" new file mode 100644 index 0000000..e8cfeb6 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/servlet2.java" @@ -0,0 +1,34 @@ +package com.eighth; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/Servlet2") +public class servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new user(1,"加维","男",20,"斗牛士军团",1)); + users.add(new user(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new user(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/test.jsp" new file mode 100644 index 0000000..19ba4a5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. + --%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/user.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/user.java" new file mode 100644 index 0000000..fb0e0b4 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\231\210\346\226\257\351\233\205/user.java" @@ -0,0 +1,76 @@ +package com.eighth; + +public class user { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public user() { + } + + public user(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file -- Gitee From 865c00443cb3a9ff5ec392251a45de47d1b12bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E4=BB=81=E5=9F=8E?= <1140262938@qq.com> Date: Mon, 19 Dec 2022 06:53:01 +0000 Subject: [PATCH 616/688] 11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 郭仁城 <1140262938@qq.com> --- .../login.java" | 51 +++++++++ .../servelet.java" | 88 +++++++++++++++ .../Brand.java" | 101 ++++++++++++++++++ .../ServletDemo1.java" | 39 +++++++ .../ServletDemo2.java" | 37 +++++++ .../User.java" | 76 +++++++++++++ .../jstl-foreach.jsp" | 60 +++++++++++ .../jstl.jsp" | 67 ++++++++++++ .../test.jsp" | 44 ++++++++ .../text.jsp" | 34 ++++++ 10 files changed, 597 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/servelet.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/ServletDemo1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/ServletDemo2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/jstl-foreach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/test.jsp" create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/text.jsp" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/servelet.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/servelet.java" new file mode 100644 index 0000000..2d146c1 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/servelet.java" @@ -0,0 +1,88 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/Brand.java" new file mode 100644 index 0000000..6ae9f9e --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/Brand.java" @@ -0,0 +1,101 @@ +package com.ittest.pojo; + +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/ServletDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/ServletDemo1.java" new file mode 100644 index 0000000..379d06f --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/ServletDemo1.java" @@ -0,0 +1,39 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/ServletDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/ServletDemo2.java" new file mode 100644 index 0000000..0edc5d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/ServletDemo2.java" @@ -0,0 +1,37 @@ +package com.ittest.web; + +import com.ittest.pojo.Brand; +import com.ittest.pojo.User; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/User.java" new file mode 100644 index 0000000..8ea795d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/User.java" @@ -0,0 +1,76 @@ +package com.ittest.pojo; + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/jstl-foreach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/jstl-foreach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/jstl-foreach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/jstl.jsp" new file mode 100644 index 0000000..9e324af --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/jstl.jsp" @@ -0,0 +1,67 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/6 + Time: 20:20 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/test.jsp" new file mode 100644 index 0000000..7795ee3 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/test.jsp" @@ -0,0 +1,44 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/7 + Time: 17:18 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/text.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/text.jsp" new file mode 100644 index 0000000..ea39470 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/text.jsp" @@ -0,0 +1,34 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/12 + Time: 21:27 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("陈恒辉"); + user.add("邹晓民"); + user.add("细狗"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + -- Gitee From d034e2fb4fd425ee0178fa1ed44d678743f71bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E4=BB=81=E5=9F=8E?= <1140262938@qq.com> Date: Mon, 19 Dec 2022 06:53:24 +0000 Subject: [PATCH 617/688] 11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 郭仁城 <1140262938@qq.com> --- .../filter.java" | 35 ++++++++ .../filterServelet.java" | 26 ++++++ .../filterweb.html" | 12 +++ .../filterweb.jsp" | 24 +++++ .../webtest.jsp" | 20 +++++ .../LoginServlet.java" | 40 +++++++++ .../SuccessSevlect.java" | 22 +++++ .../loginservlet.html" | 14 +++ .../servelet.java" | 88 +++++++++++++++++++ .../Cookie.java" | 49 +++++++++++ .../Step1.java" | 27 ++++++ .../Step2.java" | 36 ++++++++ .../address.html" | 55 ++++++++++++ .../books.html" | 47 ++++++++++ .../confirm.html" | 50 +++++++++++ 15 files changed, 545 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/filter.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/filterServelet.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/filterweb.html" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/filterweb.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/webtest.jsp" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/SuccessSevlect.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/loginservlet.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/servelet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/Cookie.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/Step1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/Step2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/confirm.html" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/filter.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/filter.java" new file mode 100644 index 0000000..2c82a03 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/filter.java" @@ -0,0 +1,35 @@ +import javax.servlet.*; +import javax.servlet.annotation.WebFilter; +import java.io.IOException; + +//配置Filter拦截路径 +@WebFilter("/test") +public class filter implements Filter { + @Override + public void init(FilterConfig filterConfig) throws ServletException { + + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { + request.setCharacterEncoding("utf-8"); + String[] str = new String[]{"sb","lz","2货"}; + String name = request.getParameter("name"); +// name = name.replaceAll("sb","**"); +// name = name.replaceAll("lz","**"); + for (int i = 0; i < str.length; i++) { + String index = str[i]; + name = name.replaceAll(index,"**"); + } + System.out.print("过滤后输出:"); + System.out.println(name); + request.setAttribute("name",name); + + + chain.doFilter(request,response); + } + @Override + public void destroy() { + + } +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/filterServelet.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/filterServelet.java" new file mode 100644 index 0000000..bb346d1 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/filterServelet.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/test") +public class filterServelet extends HttpServlet { + @Override + public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + String name = request.getParameter("name"); + System.out.print("原输入:"); + System.out.println(name); + + + } + + + @Override + public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request,response); + + } + +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/filterweb.html" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/filterweb.html" new file mode 100644 index 0000000..3b56155 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/filterweb.html" @@ -0,0 +1,12 @@ + + + + + Title + + + + + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/filterweb.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/filterweb.jsp" new file mode 100644 index 0000000..e6945eb --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/filterweb.jsp" @@ -0,0 +1,24 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/4 + Time: 15:49 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> +<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + + 过滤器应用---敏感词过滤 + + + +

过滤器应用---敏感词过滤

+
+ + +
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/webtest.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/webtest.jsp" new file mode 100644 index 0000000..55f167c --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/webtest.jsp" @@ -0,0 +1,20 @@ +<%-- + Created by IntelliJ IDEA. + User: 啥 + Date: 2022/12/5 + Time: 14:53 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 过滤器应用---敏感词过滤 + + +

过滤器应用---敏感词过滤

+
+ + +
+ + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/LoginServlet.java" new file mode 100644 index 0000000..74f00ac --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/LoginServlet.java" @@ -0,0 +1,40 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/SuccessSevlect.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/SuccessSevlect.java" new file mode 100644 index 0000000..622d6d6 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/SuccessSevlect.java" @@ -0,0 +1,22 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/loginservlet.html" new file mode 100644 index 0000000..f23af1f --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/servelet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/servelet.java" new file mode 100644 index 0000000..2d146c1 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/servelet.java" @@ -0,0 +1,88 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/Cookie.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/Cookie.java" new file mode 100644 index 0000000..bcaa8bc --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/Cookie.java" @@ -0,0 +1,49 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} +@WebServlet("/CookieDemo2") +class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} + + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/Step1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/Step1.java" new file mode 100644 index 0000000..d076d58 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/Step1.java" @@ -0,0 +1,27 @@ +package Demo1; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/Step2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/Step2.java" new file mode 100644 index 0000000..8ac8fed --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/Step2.java" @@ -0,0 +1,36 @@ +package Demo1; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/address.html" new file mode 100644 index 0000000..5688d2b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/address.html" @@ -0,0 +1,55 @@ +<%-- +Created by IntelliJ IDEA. +User: Administrator +Date: 2022/11/1 +Time: 19:18 +To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/books.html" new file mode 100644 index 0000000..dc2c9f4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/books.html" @@ -0,0 +1,47 @@ +<%-- +Created by IntelliJ IDEA. +User: Administrator +Date: 2022/11/1 +Time: 19:01 +To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + +

Step1选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + + +
+ + diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/confirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/confirm.html" new file mode 100644 index 0000000..38a1e8b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\203\255\344\273\201\345\237\216/confirm.html" @@ -0,0 +1,50 @@ +<%@ page import="java.lang.reflect.Array" %> +<%@ page import="java.util.Arrays" %><%-- +Created by IntelliJ IDEA. +User: Administrator +Date: 2022/11/1 +Time: 20:27 +To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print(session.getAttribute("name"));%>
地址:<%out.print(session.getAttribute("address"));%>
付款信息
信用卡类型<%out.print(Arrays.toString((Object[]) session.getAttribute("types")));%>
卡号:<%out.print(session.getAttribute("username"));%>
订货项目<% out.print(Arrays.toString((Object[]) session.getAttribute("books")));%>
+ + + -- Gitee From b21f54df3312baf03105f5ef4b18b19dc7716225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B5=A9=E7=84=B612?= <10602920+yang-haoran-12@user.noreply.gitee.com> Date: Mon, 19 Dec 2022 09:11:03 +0000 Subject: [PATCH 618/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E6=B5=A9=E7=84=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨浩然12 <10602920+yang-haoran-12@user.noreply.gitee.com> --- .../Register.html" | 17 ++++ .../Register.java" | 87 +++++++++++++++++++ .../login.html" | 51 +++++++++++ .../login.java" | 14 +++ 4 files changed, 169 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Register.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/login.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Register.html" new file mode 100644 index 0000000..26af32d --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Register.java" new file mode 100644 index 0000000..e89b381 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/login.html" new file mode 100644 index 0000000..1874eb7 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/login.html" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/login.java" new file mode 100644 index 0000000..afd4139 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/login.java" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file -- Gitee From 7115fc1a61e36e99b6f46a519b10a5a5a736a5e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=B8=BD=E7=BA=A2?= <403614299@qq.com> Date: Mon, 19 Dec 2022 09:22:22 +0000 Subject: [PATCH 619/688] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=AB=A0/=E9=BB=84?= =?UTF-8?q?=E4=B8=BD=E7=BA=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄丽红 <403614299@qq.com> --- .../Register.html" | 17 ++++ .../Register.java" | 87 +++++++++++++++++++ .../login.html" | 51 +++++++++++ .../login.java" | 14 +++ 4 files changed, 169 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Register.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/login.java" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Register.html" new file mode 100644 index 0000000..26af32d --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Register.java" new file mode 100644 index 0000000..e89b381 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/login.html" new file mode 100644 index 0000000..1874eb7 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/login.html" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/login.java" new file mode 100644 index 0000000..afd4139 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/login.java" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file -- Gitee From 07113f9a35e85f8a502200e0ac0a31db1bf82f0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=B8=BD=E7=BA=A2?= <403614299@qq.com> Date: Mon, 19 Dec 2022 09:33:24 +0000 Subject: [PATCH 620/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0/=E9=BB=84?= =?UTF-8?q?=E4=B8=BD=E7=BA=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄丽红 <403614299@qq.com> --- .../CheckCodeServlet.java" | 30 ++++++++++ .../register.html" | 48 +++++++++++++++ .../register.jsp" | 60 +++++++++++++++++++ 3 files changed, 138 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CheckCodeServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/register.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/register.jsp" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CheckCodeServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CheckCodeServlet.java" new file mode 100644 index 0000000..f4f75d7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CheckCodeServlet.java" @@ -0,0 +1,30 @@ +package com.itheima.web; + +import com.itheima.util.CheckCodeUtil; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStream; +@WebServlet("/CheckCodeServlet") +public class CheckCodeServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + ServletOutputStream os = resp.getOutputStream(); + String checkcode = CheckCodeUtil.outputVerifyImage(80, 40, os, 4); + //存入Sessio + HttpSession session = req.getSession(); + session.setAttribute("checkCodeGen",checkcode); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doGet(req,resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/register.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/register.html" new file mode 100644 index 0000000..a2bf762 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/register.html" @@ -0,0 +1,48 @@ + + + + + 欢迎注册 + + + + +
+
+

欢迎注册

+ 已有帐号? 登录 +
+
+ + + + + + + + + + + + + + +
用户名 + +
+ +
密码 + +
+ +
+ +
+ +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/register.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/register.jsp" new file mode 100644 index 0000000..b6394c8 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/register.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + + + 欢迎注册 + + + + +
+
+

欢迎注册

+ 已有帐号? 登录 +
+
+ + + + + + + + + + + + + + + + + +
用户名 + +
+ +
密码 + +
+ +
验证码 + + + 看不清 +
+ +
+ +
+
+
+
+ + + -- Gitee From 739334a0a0cc512df14e1e0b8a101fde76862687 Mon Sep 17 00:00:00 2001 From: aykls <1781954235@qq.com> Date: Tue, 20 Dec 2022 09:03:34 +0000 Subject: [PATCH 621/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9D=8E=E6=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\235\216\346\231\224/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 48731fce43991e5ce5cf0d8c6851a482f646aafe Mon Sep 17 00:00:00 2001 From: aykls <1781954235@qq.com> Date: Tue, 20 Dec 2022 09:04:13 +0000 Subject: [PATCH 622/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: aykls <1781954235@qq.com> --- .../\346\235\216\346\231\224/Brand.java" | 99 +++++++++++++++++++ .../ServletDemo01.java" | 35 +++++++ .../ServletDemo02.java" | 32 ++++++ .../\346\235\216\346\231\224/User.java" | 74 ++++++++++++++ .../\346\235\216\346\231\224/jstl.jsp" | 60 +++++++++++ .../\346\235\216\346\231\224/jstlforeach.jsp" | 60 +++++++++++ .../\346\235\216\346\231\224/test.jsp" | 37 +++++++ 7 files changed, 397 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/ServletDemo01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/ServletDemo02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/Brand.java" new file mode 100644 index 0000000..c4f28f0 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/Brand.java" @@ -0,0 +1,99 @@ +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/ServletDemo01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/ServletDemo01.java" new file mode 100644 index 0000000..883981b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/ServletDemo01.java" @@ -0,0 +1,35 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/ServletDemo02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/ServletDemo02.java" new file mode 100644 index 0000000..4eb0408 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/ServletDemo02.java" @@ -0,0 +1,32 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/User.java" new file mode 100644 index 0000000..e3c34d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/User.java" @@ -0,0 +1,74 @@ +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/jstl.jsp" new file mode 100644 index 0000000..1eb2079 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/jstl.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/jstlforeach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/jstlforeach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/test.jsp" new file mode 100644 index 0000000..8977c06 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\216\346\231\224/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From bf4081dc509a038474677e81fd8ddf2ce39d796c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 12:56:09 +0000 Subject: [PATCH 623/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=90=B4=E5=BB=BA?= =?UTF-8?q?=E9=94=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\220\264\345\273\272\351\224\213/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 7071637c60c99ec036e20b94b96d9e2b0bcc420e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 12:57:42 +0000 Subject: [PATCH 624/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴建锋 <10602847+Wuih-0809@user.noreply.gitee.com> --- .../User.java" | 40 +++++++++++++++++++ .../test.jsp" | 39 ++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/User.java" new file mode 100644 index 0000000..c82709e --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/User.java" @@ -0,0 +1,40 @@ +public class User { + private String name; + private int age; + private String address; + + public User(){ + + } + + public User(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getAddress() { + return address; + } + + public void setName(String name) { + this.name = name; + } + + public void setAge(int age) { + this.age = age; + } + + public void setAddress(String address) { + this.address = address; + } + +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" new file mode 100644 index 0000000..e861b7c --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" @@ -0,0 +1,39 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="User" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new User("张三",22,"福建")); + list.add(new User("李四",23,"江西")); + list.add(new User("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.address} + +
+ + -- Gitee From b9e94e707af22662dd986da0077028f6c6f05592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 12:58:06 +0000 Subject: [PATCH 625/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E5=90=B4=E5=BB=BA?= =?UTF-8?q?=E9=94=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\220\264\345\273\272\351\224\213/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 5adbc87bb7984fd78bb20b80bbf6484d14996302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 13:07:08 +0000 Subject: [PATCH 626/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴建锋 <10602847+Wuih-0809@user.noreply.gitee.com> --- .../Brand.java" | 95 +++++++++++++++++++ .../ServletDemo1.java" | 35 +++++++ .../ServletDemo2.java" | 32 +++++++ .../User.java" | 74 +++++++++++++++ .../jstl.jsp" | 60 ++++++++++++ .../jstlforeach.jsp" | 60 ++++++++++++ .../test.jsp" | 37 ++++++++ 7 files changed, 393 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/ServletDemo1.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/ServletDemo2.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Brand.java" new file mode 100644 index 0000000..7ad2fca --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Brand.java" @@ -0,0 +1,95 @@ +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/ServletDemo1.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/ServletDemo1.java" new file mode 100644 index 0000000..883981b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/ServletDemo1.java" @@ -0,0 +1,35 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/ServletDemo2.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/ServletDemo2.java" new file mode 100644 index 0000000..4eb0408 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/ServletDemo2.java" @@ -0,0 +1,32 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/User.java" new file mode 100644 index 0000000..e3c34d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/User.java" @@ -0,0 +1,74 @@ +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/jstl.jsp" new file mode 100644 index 0000000..1eb2079 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/jstl.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/jstlforeach.jsp" new file mode 100644 index 0000000..980529a --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/jstlforeach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" new file mode 100644 index 0000000..8977c06 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 57e56d116387275283b92bebd5f9fce1193d5f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=B8=BD=E7=BA=A2?= <403614299@qq.com> Date: Tue, 20 Dec 2022 13:32:32 +0000 Subject: [PATCH 627/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0/=E9=BB=84?= =?UTF-8?q?=E4=B8=BD=E7=BA=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄丽红 <403614299@qq.com> --- .../CookieDemo1.java" | 25 +++++++ .../CookieDemo2.java" | 31 ++++++++ .../CookieTest.java" | 70 +++++++++++++++++++ .../Numbers.jsp" | 56 +++++++++++++++ .../Step01.java" | 25 +++++++ .../Step02.java" | 33 +++++++++ .../address.html" | 48 +++++++++++++ .../books.html" | 40 +++++++++++ .../confirm.html" | 42 +++++++++++ 9 files changed, 370 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieTest.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Numbers.jsp" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step01.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step02.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/confirm.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo1.java" new file mode 100644 index 0000000..cb304b2 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo1.java" @@ -0,0 +1,25 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo2.java" new file mode 100644 index 0000000..4c66dc4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo2.java" @@ -0,0 +1,31 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + @WebServlet("/CookieDemo2") + public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieTest.java" new file mode 100644 index 0000000..18cbdf2 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieTest.java" @@ -0,0 +1,70 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Numbers.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Numbers.jsp" new file mode 100644 index 0000000..2895bc8 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Numbers.jsp" @@ -0,0 +1,56 @@ +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/5 + Time: 16:54 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +<% + String [][]a={{"一"},{"二"},{"三"}}; + String [][]b={{"四"},{"五"},{"六"}}; + String [][]c={{"七"},{"八"},{"九"}}; +// String a="一"; +// String b="二"; +// String c="三"; +// String d="四"; +// String e="五"; +// String f="六"; +// String g="七"; +// String h="八"; +// String i="九"; +%> +

JSP数组内容

+ + + + + + + + + + + + + + + + + +
<%out.print(Arrays.toString(a[0]));%><%out.print(Arrays.toString(a[1]));%><%out.print(Arrays.toString(a[2]));%>
<%out.print(Arrays.toString(b[0]));%><%out.print(Arrays.toString(b[1]));%><%out.print(Arrays.toString(b[2]));%>
<%out.print(Arrays.toString(c[0]));%><%out.print(Arrays.toString(c[1]));%><%out.print(Arrays.toString(c[2]));%>
+ + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step01.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step01.java" new file mode 100644 index 0000000..ce548ff --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step01.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step02.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step02.java" new file mode 100644 index 0000000..56af95b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step02.java" @@ -0,0 +1,33 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/address.html" new file mode 100644 index 0000000..5a876d9 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/address.html" @@ -0,0 +1,48 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/books.html" new file mode 100644 index 0000000..ff727fa --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/books.html" @@ -0,0 +1,40 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + +

Step1选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/confirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/confirm.html" new file mode 100644 index 0000000..ed834df --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/confirm.html" @@ -0,0 +1,42 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print(session.getAttribute("name"));%>
地址:<%out.print(session.getAttribute("address"));%>
付款信息
信用卡类型<%out.print(Arrays.toString((Object[]) session.getAttribute("types")));%>
卡号:<%out.print(session.getAttribute("username"));%>
订货项目<% out.print(Arrays.toString((Object[]) session.getAttribute("books")));%>
+ + + \ No newline at end of file -- Gitee From 3a7261e6586f049ccdb78b477547329f1525c9d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86?= <10602851+lin-rongbao@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 14:18:49 +0000 Subject: [PATCH 628/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E8=8D=A3?= =?UTF-8?q?=E8=91=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\350\215\243\350\221\206/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 3bcc133a716943e3e52bc1bcf7f49300372bc0eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86?= <10602851+lin-rongbao@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 14:20:02 +0000 Subject: [PATCH 629/688] =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86/=E7=AC=AC?= =?UTF-8?q?=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林荣葆 <10602851+lin-rongbao@user.noreply.gitee.com> --- .../Address.html" | 48 ++++++++++++++++++ .../Attest.html" | 41 +++++++++++++++ .../Book.html" | 39 +++++++++++++++ .../Cookie1.java" | 21 ++++++++ .../Cookie2.java" | 26 ++++++++++ .../Number.jsp" | 45 +++++++++++++++++ .../Step01.java" | 23 +++++++++ .../Step02.java" | 30 +++++++++++ .../Test.java" | 50 +++++++++++++++++++ 9 files changed, 323 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Attest.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Book.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Cookie1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Cookie2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Number.jsp" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Step01.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Step02.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Test.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Address.html" new file mode 100644 index 0000000..17079ce --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Address.html" @@ -0,0 +1,48 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step02:请输入地址与信用卡相关信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
信用卡信息
种类 + VisaMaster
地址
卡号
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Attest.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Attest.html" new file mode 100644 index 0000000..088bd3d --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Attest.html" @@ -0,0 +1,41 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step03:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
姓名:<%out.print(session.getAttribute("name"));%>
地址:<%out.print(session.getAttribute("address"));%>
付款信息
信用卡类型<%out.print(Arrays.toString((Object[]) session.getAttribute("types")));%>
订货相关项目<% out.print(Arrays.toString((Object[]) session.getAttribute("books")));%>
卡号:<%out.print(session.getAttribute("username"));%>
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Book.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Book.html" new file mode 100644 index 0000000..cf3b9ff --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Book.html" @@ -0,0 +1,39 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + +

Step01选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
购买书名
Java
Oracle
Struts
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Cookie1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Cookie1.java" new file mode 100644 index 0000000..cdac3c8 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Cookie1.java" @@ -0,0 +1,21 @@ +package 第四章作业; +import javax.servlet.ServletException; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.annotation.WebServlet; +import java.io.IOException; +@WebServlet("/Cookie1") +public class Cookie1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + Cookie a=new Cookie("msg","你好啊!!!"); + a.setPath("/"); + resp.addCookie(c1); + } + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Cookie2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Cookie2.java" new file mode 100644 index 0000000..29d9872 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Cookie2.java" @@ -0,0 +1,26 @@ +package 第四章作业; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Cookie2") +public class Cookie2 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + Cookie[] nb=req.getCookies(); + if (nb != null) { + for (Cookie c:nb) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+" :"+value); + } + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Number.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Number.jsp" new file mode 100644 index 0000000..f09fbea --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Number.jsp" @@ -0,0 +1,45 @@ +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/8 + Time: 14:24 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +<% + String [][]a={{"一"},{"二"},{"三"}}; + String [][]b={{"四"},{"五"},{"六"}}; + String [][]c={{"七"},{"八"},{"九"}}; +%> +

相关内容

+ + + + + + + + + + + + + + + + +
<%out.print(Arrays.toString(a[0]));%><%out.print(Arrays.toString(a[1]));%><%out.print(Arrays.toString(a[2]));%>
<%out.print(Arrays.toString(b[0]));%><%out.print(Arrays.toString(b[1]));%><%out.print(Arrays.toString(b[2]));%>
<%out.print(Arrays.toString(c[0]));%><%out.print(Arrays.toString(c[1]));%><%out.print(Arrays.toString(c[2]));%>
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Step01.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Step01.java" new file mode 100644 index 0000000..f3cbe86 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Step01.java" @@ -0,0 +1,23 @@ +package 第四章作业; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import javax.servlet.ServletException; +import java.util.Arrays; +import java.io.IOException; +@WebServlet("/Step01") +public class Step01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] book = req.getParameterValues("book"); + HttpSession session = req.getSession(); + session.setAttribute("book",book); + resp.sendRedirect("address.jsp"); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Step02.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Step02.java" new file mode 100644 index 0000000..61acda5 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Step02.java" @@ -0,0 +1,30 @@ +package 第四章作业; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import java.io.IOException; +@WebServlet("/Step02") +public class Step02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); + String[] types = req.getParameterValues("types") + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Test.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Test.java" new file mode 100644 index 0000000..2b099b7 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Test.java" @@ -0,0 +1,50 @@ +package 第四章作业; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("Test") +public class Test extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + Cookie[] cookies = req.getCookies(); + boolean flag=false; + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + String name = cookie.getName(); + if ("lastTime".equals(name)) { + flag=true; + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + String value = cookie.getValue(); + resp.getWriter().write("

欢迎重新回来,您上次访问的时间是"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file -- Gitee From 21fb19c93a5914c98e5758513affc36283159ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86?= <10602851+lin-rongbao@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 14:23:19 +0000 Subject: [PATCH 630/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E8=8D=A3?= =?UTF-8?q?=E8=91=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\350\215\243\350\221\206/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From c79270ebfe6787f0e8de48c103aa503062b43285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86?= <10602851+lin-rongbao@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 14:23:52 +0000 Subject: [PATCH 631/688] =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86/=E7=AC=AC?= =?UTF-8?q?=E4=BA=94=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林荣葆 <10602851+lin-rongbao@user.noreply.gitee.com> --- .../TwoDoimensional.java" | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/TwoDoimensional.java" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/TwoDoimensional.java" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/TwoDoimensional.java" new file mode 100644 index 0000000..27bf4fe --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/TwoDoimensional.java" @@ -0,0 +1,33 @@ +package 第五章作业; +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%String[][]array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}};%> + + +Title + + +

数组

+ + + + + + +<% + for (int i = 0; i + +<% + for (int j = 0; j + +<% + } + %> + +<% + } + %> +
第一列第二列第三列
<%=array[i][j]%>
+ + \ No newline at end of file -- Gitee From 1d8f0abda6cebd71926a7d16b8bd4841c382b234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86?= <10602851+lin-rongbao@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 14:24:56 +0000 Subject: [PATCH 632/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E8=8D=A3?= =?UTF-8?q?=E8=91=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\350\215\243\350\221\206/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 4a01c2d8d00c86c657219755ff4625612bff5fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86?= <10602851+lin-rongbao@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 14:25:20 +0000 Subject: [PATCH 633/688] =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86/=E7=AC=AC?= =?UTF-8?q?=E5=85=AD=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林荣葆 <10602851+lin-rongbao@user.noreply.gitee.com> --- .../Table.java" | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Table.java" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Table.java" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Table.java" new file mode 100644 index 0000000..ad47881 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Table.java" @@ -0,0 +1,27 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> + + +Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("张三"); + user.add("李四"); + user.add("王五"); + request.setAttribute("user",user); + %> + + + + + + +
+ ${str} +
+ + \ No newline at end of file -- Gitee From a2bfdcba8733e8f0b4cb598ee2598f9748253d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86?= <10602851+lin-rongbao@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 14:33:04 +0000 Subject: [PATCH 634/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E8=8D=A3?= =?UTF-8?q?=E8=91=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\350\215\243\350\221\206/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 6efa8b83929690ff33a7f70af8daee8e7a1bcc66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86?= <10602851+lin-rongbao@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 14:33:27 +0000 Subject: [PATCH 635/688] =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86/=E7=AC=AC?= =?UTF-8?q?=E4=B8=83=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林荣葆 <10602851+lin-rongbao@user.noreply.gitee.com> --- .../Test.jsp" | 39 +++++++++++++++++++ .../User.java" | 32 +++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Test.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/User.java" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Test.jsp" new file mode 100644 index 0000000..4cf77c5 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Test.jsp" @@ -0,0 +1,39 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="com.example.Homework7.user" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new user("张三",21,"江苏")); + list.add(new user("李四",22,"新疆")); + list.add(new user("王拾",26,"四川")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.ardress} + +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/User.java" new file mode 100644 index 0000000..8590d80 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/User.java" @@ -0,0 +1,32 @@ +package 第七章作业; + +public class User { private String name; + private int age; + private String address; + public user(){ + + } + public user(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + public String getName() { + return name; + } + public int getAge() { + return age; + } + public String getAddress() { + return address; + } + public void setName(String name) { + this.name = name; + } + public void setAge(int age) { + this.age = age; + } + public void setAddress(String address) { + this.address = address; + } +} -- Gitee From 63cd08408f6a0850c408e02537a2a38488a81585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86?= <10602851+lin-rongbao@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 14:34:37 +0000 Subject: [PATCH 636/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E6=9E=97=E8=8D=A3?= =?UTF-8?q?=E8=91=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\236\227\350\215\243\350\221\206/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 252363f6a74e6a29ea94fdaae1f4537e6a409bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86?= <10602851+lin-rongbao@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 14:34:59 +0000 Subject: [PATCH 637/688] =?UTF-8?q?=E6=9E=97=E8=8D=A3=E8=91=86/=E7=AC=AC?= =?UTF-8?q?=E5=85=AB=E7=AB=A0=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林荣葆 <10602851+lin-rongbao@user.noreply.gitee.com> --- .../ jstlforeach.jsp" | 45 +++++++++++ .../Brand.java" | 75 +++++++++++++++++++ .../Servlet01.java" | 26 +++++++ .../Servlet02.java" | 26 +++++++ .../User.java" | 55 ++++++++++++++ .../jstl.jsp" | 45 +++++++++++ .../test.jsp" | 37 +++++++++ 7 files changed, 309 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/ jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Servlet01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Servlet02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/ jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/ jstlforeach.jsp" new file mode 100644 index 0000000..af5d1d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/ jstlforeach.jsp" @@ -0,0 +1,45 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + Title + + +
+
+ + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+
+<%----%> +<%-- ${i}--%> +<%----%> + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Brand.java" new file mode 100644 index 0000000..52c6b46 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Brand.java" @@ -0,0 +1,75 @@ +package 第八章; +public class Brand { + private Integer id; + private String brandName; + private String companyName; + private Integer ordered; + private String description; + private Integer status; + public Brand() { + + } + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + + public Integer getId() { + System.out.println("getId方法已被调用了..."); + return id; + } + public void setId(Integer id) { + this.id = id; + } + public String getBrandName() { + return brandName; + } + public void setBrandName(String brandName) { + this.brandName = brandName; + } + public String getCompanyName() { + return companyName; + } + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + public Integer getOrdered() { + return ordered; + } + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + public String getDescription() { + return description; + } + public void setDescription(String description) { + this.description = description; + } + public Integer getStatus() { + return status; + } + public void setStatus(Integer status) { + this.status = status; + } + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Servlet01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Servlet01.java" new file mode 100644 index 0000000..1aed239 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Servlet01.java" @@ -0,0 +1,26 @@ +package 第八章; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo1") +public class Servlet01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + List brands = new ArrayList(); + brands.add(new Brand(1,"百草味","百草味",100,"百草味芒果干,你值得信赖",1)); + brands.add(new Brand(2,"ERKE","ERKE",200,"追求时尚,引领全球 to be no. 1 鸿星尔克!",0)); + brands.add(new Brand(3,"一加","深圳市万普拉斯科技有限公司",1000,"Never Settle",1)); + request.setAttribute("brands",brands); + request.setAttribute("status",1); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Servlet02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Servlet02.java" new file mode 100644 index 0000000..f676691 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/Servlet02.java" @@ -0,0 +1,26 @@ +package 第八章; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class Servlet02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + List users = new ArrayList(); + users.add(new User(1,"梅西","男",35,"阿根廷",1)); + users.add(new User(2,"C罗","男",37,"葡萄牙",0)); + users.add(new User(3,"内马尔","男",30,"巴西",1)); + request.setAttribute("users",users); + request.setAttribute("status",1); + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/User.java" new file mode 100644 index 0000000..bb44164 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/User.java" @@ -0,0 +1,55 @@ +package 第八章; +public class User { + private Integer id; + private String UserName; + private String sex; + private Integer old; + private String description; + private Integer status; + public User() { + } + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + public void setId(Integer id) { + this.id = id; + } + public Integer getId() { + return id; + } + public String getUserName() { + return UserName; + } + public void setUserName(String userName) { + this.UserName = userName; + } + public String getSex() { + return sex; + } + public void setSex(String sex) { + this.sex = sex; + } + public Integer getOld() { + return old; + } + public void setOld(Integer old) { + this.old = old; + } + public String getDescription() { + return description; + } + public void setDescription(String description) { + this.description = description; + } + public Integer getStatus() { + return status; + } + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/jstl.jsp" new file mode 100644 index 0000000..3927478 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/jstl.jsp" @@ -0,0 +1,45 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + User + + +
+
+ + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+
+<%----%> +<%-- ${i}--%> +<%----%> + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/test.jsp" new file mode 100644 index 0000000..63ef08d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\236\227\350\215\243\350\221\206/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 数组示例 + + +

Java 数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 30a530de1b91280c5ea1497e5c6fc892a32247f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=B8=BD=E7=BA=A2?= <403614299@qq.com> Date: Tue, 20 Dec 2022 14:40:38 +0000 Subject: [PATCH 638/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0/=E9=BB=84?= =?UTF-8?q?=E4=B8=BD=E7=BA=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄丽红 <403614299@qq.com> --- .../CookieDemo1.java" | 25 +++++++ .../CookieDemo2.java" | 31 ++++++++ .../CookieTest.java" | 70 +++++++++++++++++++ .../Numbers.jsp" | 56 +++++++++++++++ .../Step01.java" | 25 +++++++ .../Step02.java" | 33 +++++++++ .../address.html" | 48 +++++++++++++ .../books.html" | 40 +++++++++++ .../confirm.html" | 42 +++++++++++ 9 files changed, 370 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieTest.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Numbers.jsp" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step01.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step02.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/confirm.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo1.java" new file mode 100644 index 0000000..cb304b2 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo1.java" @@ -0,0 +1,25 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo2.java" new file mode 100644 index 0000000..4c66dc4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo2.java" @@ -0,0 +1,31 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + @WebServlet("/CookieDemo2") + public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieTest.java" new file mode 100644 index 0000000..18cbdf2 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieTest.java" @@ -0,0 +1,70 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Numbers.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Numbers.jsp" new file mode 100644 index 0000000..2895bc8 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Numbers.jsp" @@ -0,0 +1,56 @@ +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/5 + Time: 16:54 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +<% + String [][]a={{"一"},{"二"},{"三"}}; + String [][]b={{"四"},{"五"},{"六"}}; + String [][]c={{"七"},{"八"},{"九"}}; +// String a="一"; +// String b="二"; +// String c="三"; +// String d="四"; +// String e="五"; +// String f="六"; +// String g="七"; +// String h="八"; +// String i="九"; +%> +

JSP数组内容

+ + + + + + + + + + + + + + + + + +
<%out.print(Arrays.toString(a[0]));%><%out.print(Arrays.toString(a[1]));%><%out.print(Arrays.toString(a[2]));%>
<%out.print(Arrays.toString(b[0]));%><%out.print(Arrays.toString(b[1]));%><%out.print(Arrays.toString(b[2]));%>
<%out.print(Arrays.toString(c[0]));%><%out.print(Arrays.toString(c[1]));%><%out.print(Arrays.toString(c[2]));%>
+ + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step01.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step01.java" new file mode 100644 index 0000000..ce548ff --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step01.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step02.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step02.java" new file mode 100644 index 0000000..56af95b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step02.java" @@ -0,0 +1,33 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/address.html" new file mode 100644 index 0000000..5a876d9 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/address.html" @@ -0,0 +1,48 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/books.html" new file mode 100644 index 0000000..ff727fa --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/books.html" @@ -0,0 +1,40 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + +

Step1选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/confirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/confirm.html" new file mode 100644 index 0000000..ed834df --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/confirm.html" @@ -0,0 +1,42 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print(session.getAttribute("name"));%>
地址:<%out.print(session.getAttribute("address"));%>
付款信息
信用卡类型<%out.print(Arrays.toString((Object[]) session.getAttribute("types")));%>
卡号:<%out.print(session.getAttribute("username"));%>
订货项目<% out.print(Arrays.toString((Object[]) session.getAttribute("books")));%>
+ + + \ No newline at end of file -- Gitee From 19463c35137f61c434a60badb995ea73291f9c78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=B8=BD=E7=BA=A2?= <403614299@qq.com> Date: Tue, 20 Dec 2022 14:41:04 +0000 Subject: [PATCH 639/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0/=E9=BB=84?= =?UTF-8?q?=E4=B8=BD=E7=BA=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄丽红 <403614299@qq.com> --- .../TwoDoimensional.java" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/TwoDoimensional.java" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/TwoDoimensional.java" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/TwoDoimensional.java" new file mode 100644 index 0000000..bb41efd --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/TwoDoimensional.java" @@ -0,0 +1,34 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][]array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + Title + + +

二维数组

+ + + + + + + <% + for (int i = 0; i + + <% + for (int j = 0; j + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%=array[i][j]%>
+ + \ No newline at end of file -- Gitee From dc2c083da50518ad7603c504026a866b3ad373f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=B8=BD=E7=BA=A2?= <403614299@qq.com> Date: Tue, 20 Dec 2022 14:41:28 +0000 Subject: [PATCH 640/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0/=E9=BB=84?= =?UTF-8?q?=E4=B8=BD=E7=BA=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄丽红 <403614299@qq.com> --- .../TwoDoimensional.java" | 34 +++++++++++++++++++ .../sdf.jsp" | 30 ++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/TwoDoimensional.java" create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/sdf.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/TwoDoimensional.java" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/TwoDoimensional.java" new file mode 100644 index 0000000..bb41efd --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/TwoDoimensional.java" @@ -0,0 +1,34 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][]array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + Title + + +

二维数组

+ + + + + + + <% + for (int i = 0; i + + <% + for (int j = 0; j + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%=array[i][j]%>
+ + \ No newline at end of file diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/sdf.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/sdf.jsp" new file mode 100644 index 0000000..0577715 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/sdf.jsp" @@ -0,0 +1,30 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + +

用户表格

+ +<% + List user = new ArrayList(); + user.add("田子夜"); + user.add("孙潇涵"); + user.add("王辉煌"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + -- Gitee From dbf54e9f7987cf5fbd194f814c410b555e92f17b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=B8=BD=E7=BA=A2?= <403614299@qq.com> Date: Tue, 20 Dec 2022 14:41:43 +0000 Subject: [PATCH 641/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0/=E9=BB=84?= =?UTF-8?q?=E4=B8=BD=E7=BA=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄丽红 <403614299@qq.com> --- .../User.java" | 40 +++++++++++++++++++ .../test.jsp" | 39 ++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/User.java" new file mode 100644 index 0000000..b3e6146 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/User.java" @@ -0,0 +1,40 @@ +public class user { + private String name; + private int age; + private String address; + + public user(){ + + } + + public user(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getAddress() { + return address; + } + + public void setName(String name) { + this.name = name; + } + + public void setAge(int age) { + this.age = age; + } + + public void setAddress(String address) { + this.address = address; + } + +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/test.jsp" new file mode 100644 index 0000000..3998e4a --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/test.jsp" @@ -0,0 +1,39 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="com.example.Homework7.user" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new user("张三",22,"福建")); + list.add(new user("李四",23,"江西")); + list.add(new user("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.ardress} + +
+ + \ No newline at end of file -- Gitee From 40581af8af1f96b15742e6869aa53fd750dd3983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=B8=BD=E7=BA=A2?= <403614299@qq.com> Date: Tue, 20 Dec 2022 14:41:57 +0000 Subject: [PATCH 642/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0/=E9=BB=84?= =?UTF-8?q?=E4=B8=BD=E7=BA=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄丽红 <403614299@qq.com> --- .../Brand.java" | 99 +++++++++++++++++++ .../ServletDemo01.java" | 35 +++++++ .../ServletDemo02.java" | 32 ++++++ .../User.java" | 74 ++++++++++++++ .../jstl.jsp" | 60 +++++++++++ .../jstlforeach.jsp" | 60 +++++++++++ .../test.jsp" | 37 +++++++ 7 files changed, 397 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/ServletDemo01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/ServletDemo02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Brand.java" new file mode 100644 index 0000000..c4f28f0 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Brand.java" @@ -0,0 +1,99 @@ +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/ServletDemo01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/ServletDemo01.java" new file mode 100644 index 0000000..883981b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/ServletDemo01.java" @@ -0,0 +1,35 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/ServletDemo02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/ServletDemo02.java" new file mode 100644 index 0000000..4eb0408 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/ServletDemo02.java" @@ -0,0 +1,32 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/User.java" new file mode 100644 index 0000000..e3c34d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/User.java" @@ -0,0 +1,74 @@ +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/jstl.jsp" new file mode 100644 index 0000000..1eb2079 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/jstl.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/jstlforeach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/jstlforeach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/test.jsp" new file mode 100644 index 0000000..8977c06 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 4927d6503e6a15edb2fed64c7b73792d914a56bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E8=91=89?= <2249398422@qq.com> Date: Tue, 20 Dec 2022 15:03:54 +0000 Subject: [PATCH 643/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E7=AC=AC?= =?UTF-8?q?=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=BB=84=E4=B8=BD?= =?UTF-8?q?=E7=BA=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CookieDemo1.java" | 25 ------- .../CookieDemo2.java" | 31 -------- .../CookieTest.java" | 70 ------------------- .../Numbers.jsp" | 56 --------------- .../Step01.java" | 25 ------- .../Step02.java" | 33 --------- .../address.html" | 48 ------------- .../books.html" | 40 ----------- .../confirm.html" | 42 ----------- 9 files changed, 370 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo1.java" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo2.java" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieTest.java" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Numbers.jsp" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step01.java" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step02.java" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/address.html" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/books.html" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/confirm.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo1.java" deleted file mode 100644 index cb304b2..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo1.java" +++ /dev/null @@ -1,25 +0,0 @@ -package Cookie; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.Cookie; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -@WebServlet("/CookieDemo1") -public class CookieDemo1 extends HttpServlet { - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - //创建Cookie对象 - Cookie c1=new Cookie("msg","你好"); - //设置path,让当前服务器下部署的所有项目共享Cookie信息 - c1.setPath("/"); - //发送Cookie - resp.addCookie(c1); - } - - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo2.java" deleted file mode 100644 index 4c66dc4..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieDemo2.java" +++ /dev/null @@ -1,31 +0,0 @@ -package Cookie; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.Cookie; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - @WebServlet("/CookieDemo2") - public class CookieDemo2 extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - //获取Cookie信息 - Cookie[] cs=req.getCookies(); - //获取数据,遍历Cookie - if (cs != null) { - for (Cookie c:cs) { - String name = c.getName(); - String value = c.getValue(); - System.out.println(name+":"+value); - } - } - } - } -} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieTest.java" deleted file mode 100644 index 18cbdf2..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/CookieTest.java" +++ /dev/null @@ -1,70 +0,0 @@ -package Cookie; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.Cookie; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.concurrent.Callable; -@WebServlet("/CookieTest") -public class CookieTest extends HttpServlet { - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - //设置响应的消息体和数据格式以及编码 - resp.setContentType("text/html;charset=utf-8"); - - //获取所有Cookie - Cookie[] cookies = req.getCookies(); - boolean flag=false;//没有Cookie为lastTime - //遍历Cookie - if (cookies != null||cookies.length>0) { - for (Cookie cookie:cookies) { - //获取Cookie名称 - String name = cookie.getName(); - //判断是否是:lastTime - if ("lastTime".equals(name)) { - //有该Cookie,不是第一次访问 - flag=true;//有lastTime的Cookie - - - //设置Cookie的value - //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie - Date date=new Date(); - SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); - String srt_date = sdf.format(date); - cookie.setValue(srt_date); - //设置Cookie的存活时间 - cookie.setMaxAge(60*60*24*30); - resp.addCookie(cookie); - - //响应数据 - //获取Cookie的value时间 - String value = cookie.getValue(); - resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); - break; - } - } - } - if (cookies==null||cookies.length==0||flag==false) { - //没有,第一次访问 - Date date=new Date(); - SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); - String srt_date = sdf.format(date); - Cookie cookie=new Cookie("lastTime",srt_date); - //设置Cookie的存活时间 - cookie.setMaxAge(60*60*24*30); - resp.addCookie(cookie); - - resp.getWriter().write("

您好,欢迎您首次访问

"); - } - } - - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } -} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Numbers.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Numbers.jsp" deleted file mode 100644 index 2895bc8..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Numbers.jsp" +++ /dev/null @@ -1,56 +0,0 @@ -<%@ page import="java.util.Arrays" %><%-- - Created by IntelliJ IDEA. - User: Administrator - Date: 2022/11/5 - Time: 16:54 - To change this template use File | Settings | File Templates. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - - - Title - - -<% - String [][]a={{"一"},{"二"},{"三"}}; - String [][]b={{"四"},{"五"},{"六"}}; - String [][]c={{"七"},{"八"},{"九"}}; -// String a="一"; -// String b="二"; -// String c="三"; -// String d="四"; -// String e="五"; -// String f="六"; -// String g="七"; -// String h="八"; -// String i="九"; -%> -

JSP数组内容

- - - - - - - - - - - - - - - - - -
<%out.print(Arrays.toString(a[0]));%><%out.print(Arrays.toString(a[1]));%><%out.print(Arrays.toString(a[2]));%>
<%out.print(Arrays.toString(b[0]));%><%out.print(Arrays.toString(b[1]));%><%out.print(Arrays.toString(b[2]));%>
<%out.print(Arrays.toString(c[0]));%><%out.print(Arrays.toString(c[1]));%><%out.print(Arrays.toString(c[2]));%>
- - - \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step01.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step01.java" deleted file mode 100644 index ce548ff..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step01.java" +++ /dev/null @@ -1,25 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.servlet.http.HttpSession; -import java.io.IOException; -import java.util.Arrays; - -@WebServlet("/Step1") -public class Step1 extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - String[] books = req.getParameterValues("books"); - HttpSession session = req.getSession(); - session.setAttribute("books",books); - resp.sendRedirect("address.jsp"); - - } -} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step02.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step02.java" deleted file mode 100644 index 56af95b..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/Step02.java" +++ /dev/null @@ -1,33 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.servlet.http.HttpSession; -import java.io.IOException; -@WebServlet("/Step2") -public class Step2 extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - req.setCharacterEncoding("utf-8"); - resp.setContentType("text/html;charset=UTF-8"); - String name = req.getParameter("name"); - String address = req.getParameter("address"); - String username = req.getParameter("username"); -// String visa = req.getParameter("Visa"); -// String master = req.getParameter("Master"); - String[] types = req.getParameterValues("types"); - - HttpSession session = req.getSession(); - session.setAttribute("types",types); - session.setAttribute("name",name); - session.setAttribute("username",username); - session.setAttribute("address",address); - resp.sendRedirect("confirm.jsp"); - } -} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/address.html" deleted file mode 100644 index 5a876d9..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/address.html" +++ /dev/null @@ -1,48 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - - - Title - - -

Step2:请输入寄送地址与信用卡信息

-
- - 基本信息 - - - - - - - - - - - - - - - - - - - - - - - -
姓名
寄送地址
信用卡信息
种类 - VisaMaster
卡号
- - - -
- - \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/books.html" deleted file mode 100644 index ff727fa..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/books.html" +++ /dev/null @@ -1,40 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - - - $Title$ - - -

Step1选择要购买的书籍

-
- - - - - - - - - - - - - - - - - -
书名购买
Java
Oracle
Struts
- - - - -
- - \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/confirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/confirm.html" deleted file mode 100644 index ed834df..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\270\275\347\272\242/confirm.html" +++ /dev/null @@ -1,42 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - - - Title - - -

Step3:订单确认

- - - - - - - - - - - - - - - - - - - - - - - - -
顾客姓名:<%out.print(session.getAttribute("name"));%>
地址:<%out.print(session.getAttribute("address"));%>
付款信息
信用卡类型<%out.print(Arrays.toString((Object[]) session.getAttribute("types")));%>
卡号:<%out.print(session.getAttribute("username"));%>
订货项目<% out.print(Arrays.toString((Object[]) session.getAttribute("books")));%>
- - - \ No newline at end of file -- Gitee From 76fb46dce3cbf28064f331f02ccb2c57fdbee5d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B5=A9=E7=84=B612?= <10602920+yang-haoran-12@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 15:23:12 +0000 Subject: [PATCH 644/688] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E6=B5=A9=E7=84=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨浩然12 <10602920+yang-haoran-12@user.noreply.gitee.com> --- .../CheckCodeServlet.java" | 30 ++++++++++ .../register.html" | 48 +++++++++++++++ .../register.jsp" | 60 +++++++++++++++++++ 3 files changed, 138 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/CheckCodeServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/register.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/register.jsp" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/CheckCodeServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/CheckCodeServlet.java" new file mode 100644 index 0000000..f4f75d7 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/CheckCodeServlet.java" @@ -0,0 +1,30 @@ +package com.itheima.web; + +import com.itheima.util.CheckCodeUtil; + +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStream; +@WebServlet("/CheckCodeServlet") +public class CheckCodeServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + ServletOutputStream os = resp.getOutputStream(); + String checkcode = CheckCodeUtil.outputVerifyImage(80, 40, os, 4); + //存入Sessio + HttpSession session = req.getSession(); + session.setAttribute("checkCodeGen",checkcode); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doGet(req,resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/register.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/register.html" new file mode 100644 index 0000000..a2bf762 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/register.html" @@ -0,0 +1,48 @@ + + + + + 欢迎注册 + + + + +
+
+

欢迎注册

+ 已有帐号? 登录 +
+
+ + + + + + + + + + + + + + +
用户名 + +
+ +
密码 + +
+ +
+ +
+ +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/register.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/register.jsp" new file mode 100644 index 0000000..b6394c8 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/register.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + + + 欢迎注册 + + + + +
+
+

欢迎注册

+ 已有帐号? 登录 +
+
+ + + + + + + + + + + + + + + + + +
用户名 + +
+ +
密码 + +
+ +
验证码 + + + 看不清 +
+ +
+ +
+
+
+
+ + + -- Gitee From e777217bce16d745b66ba418649563e01e32f598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B5=A9=E7=84=B612?= <10602920+yang-haoran-12@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 15:23:29 +0000 Subject: [PATCH 645/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E6=B5=A9=E7=84=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨浩然12 <10602920+yang-haoran-12@user.noreply.gitee.com> --- .../CookieDemo1.java" | 25 +++++++ .../CookieDemo2.java" | 31 ++++++++ .../CookieTest.java" | 70 +++++++++++++++++++ .../Numbers.jsp" | 56 +++++++++++++++ .../Step01.java" | 25 +++++++ .../Step02.java" | 33 +++++++++ .../address.html" | 48 +++++++++++++ .../books.html" | 40 +++++++++++ .../confirm.html" | 42 +++++++++++ 9 files changed, 370 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/CookieTest.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Numbers.jsp" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Step01.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Step02.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/confirm.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/CookieDemo1.java" new file mode 100644 index 0000000..cb304b2 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/CookieDemo1.java" @@ -0,0 +1,25 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/CookieDemo2.java" new file mode 100644 index 0000000..4c66dc4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/CookieDemo2.java" @@ -0,0 +1,31 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + @WebServlet("/CookieDemo2") + public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/CookieTest.java" new file mode 100644 index 0000000..18cbdf2 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/CookieTest.java" @@ -0,0 +1,70 @@ +package Cookie; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Numbers.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Numbers.jsp" new file mode 100644 index 0000000..2895bc8 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Numbers.jsp" @@ -0,0 +1,56 @@ +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/5 + Time: 16:54 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +<% + String [][]a={{"一"},{"二"},{"三"}}; + String [][]b={{"四"},{"五"},{"六"}}; + String [][]c={{"七"},{"八"},{"九"}}; +// String a="一"; +// String b="二"; +// String c="三"; +// String d="四"; +// String e="五"; +// String f="六"; +// String g="七"; +// String h="八"; +// String i="九"; +%> +

JSP数组内容

+ + + + + + + + + + + + + + + + + +
<%out.print(Arrays.toString(a[0]));%><%out.print(Arrays.toString(a[1]));%><%out.print(Arrays.toString(a[2]));%>
<%out.print(Arrays.toString(b[0]));%><%out.print(Arrays.toString(b[1]));%><%out.print(Arrays.toString(b[2]));%>
<%out.print(Arrays.toString(c[0]));%><%out.print(Arrays.toString(c[1]));%><%out.print(Arrays.toString(c[2]));%>
+ + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Step01.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Step01.java" new file mode 100644 index 0000000..ce548ff --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Step01.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Step02.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Step02.java" new file mode 100644 index 0000000..56af95b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Step02.java" @@ -0,0 +1,33 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/address.html" new file mode 100644 index 0000000..5a876d9 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/address.html" @@ -0,0 +1,48 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/books.html" new file mode 100644 index 0000000..ff727fa --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/books.html" @@ -0,0 +1,40 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + +

Step1选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/confirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/confirm.html" new file mode 100644 index 0000000..ed834df --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/confirm.html" @@ -0,0 +1,42 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print(session.getAttribute("name"));%>
地址:<%out.print(session.getAttribute("address"));%>
付款信息
信用卡类型<%out.print(Arrays.toString((Object[]) session.getAttribute("types")));%>
卡号:<%out.print(session.getAttribute("username"));%>
订货项目<% out.print(Arrays.toString((Object[]) session.getAttribute("books")));%>
+ + + \ No newline at end of file -- Gitee From faf768648ddfbf09b5edfc3d0e82e3437fb65d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B5=A9=E7=84=B612?= <10602920+yang-haoran-12@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 15:23:39 +0000 Subject: [PATCH 646/688] =?UTF-8?q?=E7=AC=AC=E4=BA=94=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E6=B5=A9=E7=84=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨浩然12 <10602920+yang-haoran-12@user.noreply.gitee.com> --- .../TwoDoimensional.java" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/TwoDoimensional.java" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/TwoDoimensional.java" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/TwoDoimensional.java" new file mode 100644 index 0000000..bb41efd --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/TwoDoimensional.java" @@ -0,0 +1,34 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][]array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + Title + + +

二维数组

+ + + + + + + <% + for (int i = 0; i + + <% + for (int j = 0; j + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%=array[i][j]%>
+ + \ No newline at end of file -- Gitee From cc1ca361a79d346dce013653526114649fb036eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B5=A9=E7=84=B612?= <10602920+yang-haoran-12@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 15:23:51 +0000 Subject: [PATCH 647/688] =?UTF-8?q?=E7=AC=AC=E5=85=AD=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E6=B5=A9=E7=84=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨浩然12 <10602920+yang-haoran-12@user.noreply.gitee.com> --- .../sdf.jsp" | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/sdf.jsp" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/sdf.jsp" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/sdf.jsp" new file mode 100644 index 0000000..0577715 --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/sdf.jsp" @@ -0,0 +1,30 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %><%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + +

用户表格

+ +<% + List user = new ArrayList(); + user.add("田子夜"); + user.add("孙潇涵"); + user.add("王辉煌"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + -- Gitee From 8b18c07b5ce5e1aa6c47b60de7361cc31952737a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B5=A9=E7=84=B612?= <10602920+yang-haoran-12@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 15:24:00 +0000 Subject: [PATCH 648/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E6=B5=A9=E7=84=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨浩然12 <10602920+yang-haoran-12@user.noreply.gitee.com> --- .../User.java" | 40 +++++++++++++++++++ .../test.jsp" | 39 ++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/User.java" new file mode 100644 index 0000000..b3e6146 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/User.java" @@ -0,0 +1,40 @@ +public class user { + private String name; + private int age; + private String address; + + public user(){ + + } + + public user(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getAddress() { + return address; + } + + public void setName(String name) { + this.name = name; + } + + public void setAge(int age) { + this.age = age; + } + + public void setAddress(String address) { + this.address = address; + } + +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/test.jsp" new file mode 100644 index 0000000..3998e4a --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/test.jsp" @@ -0,0 +1,39 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="com.example.Homework7.user" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new user("张三",22,"福建")); + list.add(new user("李四",23,"江西")); + list.add(new user("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.ardress} + +
+ + \ No newline at end of file -- Gitee From 6f2ea063a75673f81f92cfab896f9cdfc93ce588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B5=A9=E7=84=B612?= <10602920+yang-haoran-12@user.noreply.gitee.com> Date: Tue, 20 Dec 2022 15:24:38 +0000 Subject: [PATCH 649/688] =?UTF-8?q?=E7=AC=AC=E5=85=AB=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A/=E6=9D=A8=E6=B5=A9=E7=84=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨浩然12 <10602920+yang-haoran-12@user.noreply.gitee.com> --- .../Brand.java" | 99 +++++++++++++++++++ .../ServletDemo01.java" | 35 +++++++ .../ServletDemo02.java" | 32 ++++++ .../User.java" | 74 ++++++++++++++ .../jstl.jsp" | 60 +++++++++++ .../jstlforeach.jsp" | 60 +++++++++++ .../test.jsp" | 37 +++++++ 7 files changed, 397 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/ServletDemo01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/ServletDemo02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Brand.java" new file mode 100644 index 0000000..c4f28f0 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/Brand.java" @@ -0,0 +1,99 @@ +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/ServletDemo01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/ServletDemo01.java" new file mode 100644 index 0000000..883981b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/ServletDemo01.java" @@ -0,0 +1,35 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/ServletDemo02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/ServletDemo02.java" new file mode 100644 index 0000000..4eb0408 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/ServletDemo02.java" @@ -0,0 +1,32 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/User.java" new file mode 100644 index 0000000..e3c34d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/User.java" @@ -0,0 +1,74 @@ +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/jstl.jsp" new file mode 100644 index 0000000..1eb2079 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/jstl.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/jstlforeach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/jstlforeach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/test.jsp" new file mode 100644 index 0000000..8977c06 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\346\235\250\346\265\251\347\204\266/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 89832032068adc9d5e936644d46a6c3fb39b862b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 26 Dec 2022 09:22:49 +0000 Subject: [PATCH 650/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232\344\270\200/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From cf2abdae3739f184d3ebde6d5f389e8ddbcb15a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 26 Dec 2022 09:24:30 +0000 Subject: [PATCH 651/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴建锋 <10602847+Wuih-0809@user.noreply.gitee.com> --- .../Step1Servlet.java" | 21 +++++++++ .../Step2Servlet.java" | 25 ++++++++++ .../address.html" | 36 ++++++++++++++ .../books.html" | 41 ++++++++++++++++ .../confirm.jsp" | 47 +++++++++++++++++++ 5 files changed, 170 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/Step1Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/Step2Servlet.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/confirm.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/Step1Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/Step1Servlet.java" new file mode 100644 index 0000000..55cc198 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/Step1Servlet.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/step1") +public class Step1Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[]books = req.getParameterValues("books"); + req.getSession().setAttribute("books",books); + resp.sendRedirect("/c4/address.html"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/Step2Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/Step2Servlet.java" new file mode 100644 index 0000000..6ce9f6d --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/Step2Servlet.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; + +@WebServlet("/step2") +public class Step2Servlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String name = req.getParameter("name"); + String address = req.getParameter("address"); + HttpSession session = req.getSession(); + session.setAttribute("name",name); + session.setAttribute("address",address); + resp.sendRedirect("/c4/confirm.jsp"); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/address.html" new file mode 100644 index 0000000..3725556 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/address.html" @@ -0,0 +1,36 @@ + + + + + Title + + + +

Step2:请输入寄送地址与信用卡信息

+
+ + + + + + + + + + + + + + + +
基本信息
姓名
寄送地址
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/books.html" new file mode 100644 index 0000000..b23035a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/books.html" @@ -0,0 +1,41 @@ + + + + + Title + + + +

Step1:选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/confirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/confirm.jsp" new file mode 100644 index 0000000..dac52fe --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\270\200/confirm.jsp" @@ -0,0 +1,47 @@ +<%@ page import="java.io.PrintWriter" %> +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: wjfff + Date: 2022/10/31 + Time: 20:42 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + HttpSession session1 = request.getSession(); + String[] books = (String[])session1.getAttribute("books"); + String name = (String)session1.getAttribute("name"); + String address = (String)session1.getAttribute("address"); + PrintWriter printWriter = response.getWriter(); +%> + + + Title + + + +
+ <%printWriter.print("

Step3:订单确认

");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("");%> + <%printWriter.print("
顾客姓名"+name+"
地址"+address+"
订货项目"+ Arrays.toString(books) +"");%> + <%printWriter.print("
");%> + + + -- Gitee From 0abaaad6ed03fbb4476cd8f2dd0e66c29f882dbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 26 Dec 2022 09:24:40 +0000 Subject: [PATCH 652/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=90=B4?= =?UTF-8?q?=E5=BB=BA=E9=94=8B/Step1Servlet.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Step1Servlet.java" | 21 ------------------- 1 file changed, 21 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Step1Servlet.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Step1Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Step1Servlet.java" deleted file mode 100644 index 55cc198..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Step1Servlet.java" +++ /dev/null @@ -1,21 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -@WebServlet("/step1") -public class Step1Servlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - String[]books = req.getParameterValues("books"); - req.getSession().setAttribute("books",books); - resp.sendRedirect("/c4/address.html"); - } -} -- Gitee From 778cee488aaa763ae9cbb6b3a62803170606caa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 26 Dec 2022 09:25:06 +0000 Subject: [PATCH 653/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=90=B4?= =?UTF-8?q?=E5=BB=BA=E9=94=8B/Step2Servlet.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Step2Servlet.java" | 25 ------------------- 1 file changed, 25 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Step2Servlet.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Step2Servlet.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Step2Servlet.java" deleted file mode 100644 index 6ce9f6d..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/Step2Servlet.java" +++ /dev/null @@ -1,25 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.servlet.http.HttpSession; -import java.io.IOException; - -@WebServlet("/step2") -public class Step2Servlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - String name = req.getParameter("name"); - String address = req.getParameter("address"); - HttpSession session = req.getSession(); - session.setAttribute("name",name); - session.setAttribute("address",address); - resp.sendRedirect("/c4/confirm.jsp"); - } -} -- Gitee From 7ad3f7ab33552a743df36841534ab6ecd6b4fe58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 26 Dec 2022 09:25:14 +0000 Subject: [PATCH 654/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=90=B4?= =?UTF-8?q?=E5=BB=BA=E9=94=8B/address.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../address.html" | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/address.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/address.html" deleted file mode 100644 index 3725556..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/address.html" +++ /dev/null @@ -1,36 +0,0 @@ - - - - - Title - - - -

Step2:请输入寄送地址与信用卡信息

- -
- - - - - - - - - - - - - - -
基本信息
姓名
寄送地址
- - - \ No newline at end of file -- Gitee From 4e6d2a0eca854213d92fbb8034095c36d9830aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 26 Dec 2022 09:25:20 +0000 Subject: [PATCH 655/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=90=B4?= =?UTF-8?q?=E5=BB=BA=E9=94=8B/books.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../books.html" | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/books.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/books.html" deleted file mode 100644 index b23035a..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/books.html" +++ /dev/null @@ -1,41 +0,0 @@ - - - - - Title - - - -

Step1:选择要购买的书籍

-
- - - - - - - - - - - - - - - - - - - - -
书名购买
Java
Oracle
Struts
-
- - \ No newline at end of file -- Gitee From 2a58e533ff8cd09c45a62534074e2b4b49f4a0b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 26 Dec 2022 09:25:26 +0000 Subject: [PATCH 656/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=90=B4?= =?UTF-8?q?=E5=BB=BA=E9=94=8B/confirm.jsp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../confirm.jsp" | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/confirm.jsp" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/confirm.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/confirm.jsp" deleted file mode 100644 index dac52fe..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/confirm.jsp" +++ /dev/null @@ -1,47 +0,0 @@ -<%@ page import="java.io.PrintWriter" %> -<%@ page import="java.util.Arrays" %><%-- - Created by IntelliJ IDEA. - User: wjfff - Date: 2022/10/31 - Time: 20:42 - To change this template use File | Settings | File Templates. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<% - HttpSession session1 = request.getSession(); - String[] books = (String[])session1.getAttribute("books"); - String name = (String)session1.getAttribute("name"); - String address = (String)session1.getAttribute("address"); - PrintWriter printWriter = response.getWriter(); -%> - - - Title - - - -
- <%printWriter.print("

Step3:订单确认

");%> - <%printWriter.print("");%> - <%printWriter.print("");%> - <%printWriter.print("");%> - <%printWriter.print("");%> - <%printWriter.print("");%> - <%printWriter.print("");%> - <%printWriter.print("");%> - <%printWriter.print("");%> - <%printWriter.print("");%> - <%printWriter.print("");%> - <%printWriter.print("");%> - <%printWriter.print("
顾客姓名"+name+"
地址"+address+"
订货项目"+ Arrays.toString(books) +"");%> - <%printWriter.print("
");%> - - - -- Gitee From 348ad234ad7b634de0be0b5530cc4f917d1d1eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 26 Dec 2022 09:25:43 +0000 Subject: [PATCH 657/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E4=BA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232\344\272\214/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\272\214/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\272\214/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\272\214/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 77830539f3fd94ffcb0c6251dd72f07b505942f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 26 Dec 2022 09:25:56 +0000 Subject: [PATCH 658/688] =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴建锋 <10602847+Wuih-0809@user.noreply.gitee.com> --- .../CookieDemo1.java" | 24 +++++++ .../CookieDemo2.java" | 28 ++++++++ .../CookieTest.java" | 67 +++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\272\214/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\272\214/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\272\214/CookieTest.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\272\214/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\272\214/CookieDemo1.java" new file mode 100644 index 0000000..b40a2f7 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\272\214/CookieDemo1.java" @@ -0,0 +1,24 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\272\214/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\272\214/CookieDemo2.java" new file mode 100644 index 0000000..649287f --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\272\214/CookieDemo2.java" @@ -0,0 +1,28 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo2") +public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\272\214/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\272\214/CookieTest.java" new file mode 100644 index 0000000..595e2b0 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/\344\275\234\344\270\232\344\272\214/CookieTest.java" @@ -0,0 +1,67 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file -- Gitee From 787407b29b59356f4ee4f44405a4907f7c882a77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 26 Dec 2022 09:48:39 +0000 Subject: [PATCH 659/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=90=B4?= =?UTF-8?q?=E5=BB=BA=E9=94=8B/User.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../User.java" | 40 ------------------- 1 file changed, 40 deletions(-) delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/User.java" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/User.java" deleted file mode 100644 index c82709e..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/User.java" +++ /dev/null @@ -1,40 +0,0 @@ -public class User { - private String name; - private int age; - private String address; - - public User(){ - - } - - public User(String name,int age,String address){ - this.name = name; - this.age = age; - this.address = address; - } - - public String getName() { - return name; - } - - public int getAge() { - return age; - } - - public String getAddress() { - return address; - } - - public void setName(String name) { - this.name = name; - } - - public void setAge(int age) { - this.age = age; - } - - public void setAddress(String address) { - this.address = address; - } - -} \ No newline at end of file -- Gitee From d672493b40ebecee7a966d899650f94646bd0cca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 26 Dec 2022 09:48:44 +0000 Subject: [PATCH 660/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E5=90=B4?= =?UTF-8?q?=E5=BB=BA=E9=94=8B/test.jsp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test.jsp" | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" deleted file mode 100644 index e861b7c..0000000 --- "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/test.jsp" +++ /dev/null @@ -1,39 +0,0 @@ -<%@ page import="java.util.List" %> -<%@ page import="java.util.ArrayList" %> -<%@ page import="User" %> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - - - Title - - -<% - List list = new ArrayList(); - list.add(new User("张三",22,"福建")); - list.add(new User("李四",23,"江西")); - list.add(new User("王五",25,"浙江")); - request.setAttribute("list",list); -%> -
- - - - - - - - - - - - - - - - -
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.address} - -
- - -- Gitee From 8cda196833190250d55997593f467eb91c4d71f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=94=8B?= <10602847+Wuih-0809@user.noreply.gitee.com> Date: Mon, 26 Dec 2022 09:49:14 +0000 Subject: [PATCH 661/688] =?UTF-8?q?=E7=AC=AC=E4=B8=83=E7=AB=A0=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴建锋 <10602847+Wuih-0809@user.noreply.gitee.com> --- .../filter.java" | 35 +++++++++++++++++++ .../filterServelet.java" | 26 ++++++++++++++ .../filterweb.jsp" | 15 ++++++++ .../webtest.jsp" | 13 +++++++ 4 files changed, 89 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/filter.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/filterServelet.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/filterweb.jsp" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/webtest.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/filter.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/filter.java" new file mode 100644 index 0000000..72580d7 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/filter.java" @@ -0,0 +1,35 @@ +import javax.servlet.*; +import javax.servlet.annotation.WebFilter; +import java.io.IOException; + +//配置Filter拦截路径 +@WebFilter("/test") +public class filter implements Filter { + @Override + public void init(FilterConfig filterConfig) throws ServletException { + + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { + request.setCharacterEncoding("utf-8"); + String[] str = new String[]{"笨蛋","傻瓜","蠢货"}; + String name = request.getParameter("name"); +// name = name.replaceAll("sb","**"); +// name = name.replaceAll("lz","**"); + for (int i = 0; i < str.length; i++) { + String index = str[i]; + name = name.replaceAll(index,"**"); + } + System.out.print("过滤后输出:"); + System.out.println(name); + request.setAttribute("name",name); + + + chain.doFilter(request,response); + } + @Override + public void destroy() { + + } +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/filterServelet.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/filterServelet.java" new file mode 100644 index 0000000..bb346d1 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/filterServelet.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/test") +public class filterServelet extends HttpServlet { + @Override + public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + String name = request.getParameter("name"); + System.out.print("原输入:"); + System.out.println(name); + + + } + + + @Override + public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request,response); + + } + +} diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/filterweb.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/filterweb.jsp" new file mode 100644 index 0000000..9987386 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/filterweb.jsp" @@ -0,0 +1,15 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 过滤器应用---敏感词过滤 + + + +

过滤器应用---敏感词过滤

+
+ + +
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/webtest.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/webtest.jsp" new file mode 100644 index 0000000..ea9bef3 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\345\220\264\345\273\272\351\224\213/webtest.jsp" @@ -0,0 +1,13 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 过滤器应用---敏感词过滤 + + +

过滤器应用---敏感词过滤

+
+ + +
+ + \ No newline at end of file -- Gitee From 679332076c304688717739459f1f15544f1f1ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=BE=89=E7=85=8C?= Date: Thu, 29 Dec 2022 09:34:14 +0800 Subject: [PATCH 662/688] first commit --- .../Brand.java" | 97 +++++++++++++++++++ .../ServletDemo01.java" | 36 +++++++ .../ServletDemo02.java" | 33 +++++++ .../User.java" | 76 +++++++++++++++ .../jstl.jsp" | 54 +++++++++++ .../jstlforeach.jsp" | 58 +++++++++++ .../test.jsp" | 39 ++++++++ 7 files changed, 393 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/ServletDemo01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/ServletDemo02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Brand.java" new file mode 100644 index 0000000..e4dbd79 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/Brand.java" @@ -0,0 +1,97 @@ +package com.example.Homework8; + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/ServletDemo01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/ServletDemo01.java" new file mode 100644 index 0000000..9280c85 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/ServletDemo01.java" @@ -0,0 +1,36 @@ +package com.example.Homework8; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/ServletDemo02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/ServletDemo02.java" new file mode 100644 index 0000000..a910a68 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/ServletDemo02.java" @@ -0,0 +1,33 @@ +package com.example.Homework8; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/User.java" new file mode 100644 index 0000000..dd4c1b1 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/User.java" @@ -0,0 +1,76 @@ +package com.example.Homework8; + +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/jstl.jsp" new file mode 100644 index 0000000..f17e1f2 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/jstl.jsp" @@ -0,0 +1,54 @@ +<%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/jstlforeach.jsp" new file mode 100644 index 0000000..a324a54 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/jstlforeach.jsp" @@ -0,0 +1,58 @@ +<%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/test.jsp" new file mode 100644 index 0000000..f7c888d --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\347\216\213\350\276\211\347\205\214/test.jsp" @@ -0,0 +1,39 @@ +<%-- + Created by IntelliJ IDEA. + User: WHH +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + Title + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + -- Gitee From 1dc3c6b24c280fcd7086a6b1110cc09f9806fb2d Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:26:32 +0000 Subject: [PATCH 663/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=BB=8E=E5=8C=85?= =?UTF-8?q?=E8=8D=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\273\216\345\214\205\350\215\243/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 4072f1ddbf3e302d9cbadde795929962147fc55e Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:47:51 +0000 Subject: [PATCH 664/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232\344\270\200/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 4cd06292f9db6a873df18cc8d1d7eb5d4644437d Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:48:00 +0000 Subject: [PATCH 665/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E4=BA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232\344\272\214/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\272\214/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\272\214/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\272\214/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 14072fa1f293f0e4629d59370964dae42f9e0e94 Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:48:14 +0000 Subject: [PATCH 666/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=BB=8E?= =?UTF-8?q?=E5=8C=85=E8=8D=A3/=E4=BD=9C=E4=B8=9A=E4=B8=80/=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E4=BA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232\344\272\214/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\272\214/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\272\214/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\272\214/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 49a9068d5802444f2e6601f3ff769b66561df06f Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:48:26 +0000 Subject: [PATCH 667/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E4=BA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232\344\272\214/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 8fd74b854cb6c125f52093b1713cab7e3d677883 Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:48:34 +0000 Subject: [PATCH 668/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E4=B8=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232\344\270\211/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\211/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\211/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\211/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From b4c3a04489682c89de27296c5ea2b9a1800852d3 Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:48:53 +0000 Subject: [PATCH 669/688] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luane <1027872432@qq.com> --- .../CookieDemo1.java" | 24 +++++++ .../CookieDemo2.java" | 28 ++++++++ .../CookieTest.java" | 68 +++++++++++++++++++ 3 files changed, 120 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieTest.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieDemo1.java" new file mode 100644 index 0000000..ccdf93a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieDemo1.java" @@ -0,0 +1,24 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieDemo2.java" new file mode 100644 index 0000000..649287f --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieDemo2.java" @@ -0,0 +1,28 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo2") +public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieTest.java" new file mode 100644 index 0000000..55242e4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieTest.java" @@ -0,0 +1,68 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file -- Gitee From 442b79ef1e8f07fcfa2c89808e91d663d6448068 Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:49:12 +0000 Subject: [PATCH 670/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=BB=8E?= =?UTF-8?q?=E5=8C=85=E8=8D=A3/=E4=BD=9C=E4=B8=9A=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 .../CookieDemo1.java" | 24 ------- .../CookieDemo2.java" | 28 -------- .../CookieTest.java" | 68 ------------------- 4 files changed, 120 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/.keep" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieDemo1.java" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieDemo2.java" delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieTest.java" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/.keep" deleted file mode 100644 index e69de29..0000000 diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieDemo1.java" deleted file mode 100644 index ccdf93a..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieDemo1.java" +++ /dev/null @@ -1,24 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.Cookie; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -@WebServlet("/CookieDemo1") -public class CookieDemo1 extends HttpServlet { - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - //创建Cookie对象 - Cookie c1=new Cookie("msg","你好"); - //设置path,让当前服务器下部署的所有项目共享Cookie信息 - c1.setPath("/"); - //发送Cookie - resp.addCookie(c1); - } - - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } -} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieDemo2.java" deleted file mode 100644 index 649287f..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieDemo2.java" +++ /dev/null @@ -1,28 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.Cookie; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -@WebServlet("/CookieDemo2") -public class CookieDemo2 extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - //获取Cookie信息 - Cookie[] cs=req.getCookies(); - //获取数据,遍历Cookie - if (cs != null) { - for (Cookie c:cs) { - String name = c.getName(); - String value = c.getValue(); - System.out.println(name+":"+value); - } - } - } -} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieTest.java" deleted file mode 100644 index 55242e4..0000000 --- "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/\344\275\234\344\270\232\344\270\200/CookieTest.java" +++ /dev/null @@ -1,68 +0,0 @@ -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.Cookie; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.concurrent.Callable; -@WebServlet("/CookieTest") -public class CookieTest extends HttpServlet { - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - //设置响应的消息体和数据格式以及编码 - resp.setContentType("text/html;charset=utf-8"); - - //获取所有Cookie - Cookie[] cookies = req.getCookies(); - boolean flag=false;//没有Cookie为lastTime - //遍历Cookie - if (cookies != null||cookies.length>0) { - for (Cookie cookie:cookies) { - //获取Cookie名称 - String name = cookie.getName(); - //判断是否是:lastTime - if ("lastTime".equals(name)) { - //有该Cookie,不是第一次访问 - flag=true;//有lastTime的Cookie - - - //设置Cookie的value - //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie - Date date=new Date(); - SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); - String srt_date = sdf.format(date); - cookie.setValue(srt_date); - //设置Cookie的存活时间 - cookie.setMaxAge(60*60*24*30); - resp.addCookie(cookie); - - //响应数据 - //获取Cookie的value时间 - String value = cookie.getValue(); - resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); - break; - } - } - } - if (cookies==null||cookies.length==0||flag==false) { - //没有,第一次访问 - Date date=new Date(); - SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); - String srt_date = sdf.format(date); - Cookie cookie=new Cookie("lastTime",srt_date); - //设置Cookie的存活时间 - cookie.setMaxAge(60*60*24*30); - resp.addCookie(cookie); - - resp.getWriter().write("

您好,欢迎您首次访问

"); - } - } - - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - this.doPost(req,resp); - } -} \ No newline at end of file -- Gitee From 03b1db28487f5a43c91fa500dff280b489b5522e Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:49:18 +0000 Subject: [PATCH 671/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=BB=8E?= =?UTF-8?q?=E5=8C=85=E8=8D=A3/=E4=BD=9C=E4=B8=9A=E4=BA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232\344\272\214/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 081ebce6be002b4d5fc7d6fbc403aa3eda5cd8f3 Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:49:25 +0000 Subject: [PATCH 672/688] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=AC=E5=9B=9B=E7=AB=A0=E4=BD=9C=E4=B8=9A/=E9=BB=8E?= =?UTF-8?q?=E5=8C=85=E8=8D=A3/=E4=BD=9C=E4=B8=9A=E4=B8=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232\344\270\211/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\211/.keep" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\211/.keep" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\211/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 49aa5962ebbb9a908939aae135f76865bf57d9e7 Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:50:00 +0000 Subject: [PATCH 673/688] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luane <1027872432@qq.com> --- .../CookieDemo1.java" | 24 +++++++ .../CookieDemo2.java" | 28 ++++++++ .../CookieTest.java" | 68 +++++++++++++++++++ .../Numbers.jsp" | 56 +++++++++++++++ .../Step01.java" | 25 +++++++ .../Step02.java" | 33 +++++++++ .../address.html" | 48 +++++++++++++ .../books.html" | 40 +++++++++++ .../confirm.html" | 42 ++++++++++++ 9 files changed, 364 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/CookieTest.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\211/Numbers.jsp" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/Step01.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/Step02.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/confirm.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/CookieDemo1.java" new file mode 100644 index 0000000..ccdf93a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/CookieDemo1.java" @@ -0,0 +1,24 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/CookieDemo2.java" new file mode 100644 index 0000000..649287f --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/CookieDemo2.java" @@ -0,0 +1,28 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo2") +public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/CookieTest.java" new file mode 100644 index 0000000..55242e4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\200/CookieTest.java" @@ -0,0 +1,68 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\211/Numbers.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\211/Numbers.jsp" new file mode 100644 index 0000000..2895bc8 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\270\211/Numbers.jsp" @@ -0,0 +1,56 @@ +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/5 + Time: 16:54 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +<% + String [][]a={{"一"},{"二"},{"三"}}; + String [][]b={{"四"},{"五"},{"六"}}; + String [][]c={{"七"},{"八"},{"九"}}; +// String a="一"; +// String b="二"; +// String c="三"; +// String d="四"; +// String e="五"; +// String f="六"; +// String g="七"; +// String h="八"; +// String i="九"; +%> +

JSP数组内容

+ + + + + + + + + + + + + + + + + +
<%out.print(Arrays.toString(a[0]));%><%out.print(Arrays.toString(a[1]));%><%out.print(Arrays.toString(a[2]));%>
<%out.print(Arrays.toString(b[0]));%><%out.print(Arrays.toString(b[1]));%><%out.print(Arrays.toString(b[2]));%>
<%out.print(Arrays.toString(c[0]));%><%out.print(Arrays.toString(c[1]));%><%out.print(Arrays.toString(c[2]));%>
+ + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/Step01.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/Step01.java" new file mode 100644 index 0000000..ce548ff --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/Step01.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/Step02.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/Step02.java" new file mode 100644 index 0000000..56af95b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/Step02.java" @@ -0,0 +1,33 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/address.html" new file mode 100644 index 0000000..5a876d9 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/address.html" @@ -0,0 +1,48 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/books.html" new file mode 100644 index 0000000..ff727fa --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/books.html" @@ -0,0 +1,40 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + +

Step1选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/confirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/confirm.html" new file mode 100644 index 0000000..ed834df --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/\344\275\234\344\270\232\344\272\214/confirm.html" @@ -0,0 +1,42 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print(session.getAttribute("name"));%>
地址:<%out.print(session.getAttribute("address"));%>
付款信息
信用卡类型<%out.print(Arrays.toString((Object[]) session.getAttribute("types")));%>
卡号:<%out.print(session.getAttribute("username"));%>
订货项目<% out.print(Arrays.toString((Object[]) session.getAttribute("books")));%>
+ + + \ No newline at end of file -- Gitee From 19ba6c35d62d5baf8717f6704a3842e75ed4732c Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:50:28 +0000 Subject: [PATCH 674/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=BB=8E=E5=8C=85?= =?UTF-8?q?=E8=8D=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\273\216\345\214\205\350\215\243/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From f96fcb0e9e5d56f997225a5b88f6e279a6dceb8b Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:51:01 +0000 Subject: [PATCH 675/688] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luane <1027872432@qq.com> --- .../TwoDoimensional.java" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/TwoDoimensional.java" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/TwoDoimensional.java" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/TwoDoimensional.java" new file mode 100644 index 0000000..bb41efd --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/TwoDoimensional.java" @@ -0,0 +1,34 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][]array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + Title + + +

二维数组

+ + + + + + + <% + for (int i = 0; i + + <% + for (int j = 0; j + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%=array[i][j]%>
+ + \ No newline at end of file -- Gitee From d778a6f38d559125454af1112b129966ce1c0df0 Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:51:27 +0000 Subject: [PATCH 676/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=BB=8E=E5=8C=85?= =?UTF-8?q?=E8=8D=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\273\216\345\214\205\350\215\243/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 1b53afd13ce5561f6ab48ce6c388538bbab2ef5c Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:51:50 +0000 Subject: [PATCH 677/688] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luane <1027872432@qq.com> --- .../ShowTable.java" | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/ShowTable.java" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/ShowTable.java" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/ShowTable.java" new file mode 100644 index 0000000..63362ba --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/ShowTable.java" @@ -0,0 +1,28 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("张三"); + user.add("李四"); + user.add("老六"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From 917aa43a1e019265e5c9988a6eacfabf23b8abf8 Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:52:08 +0000 Subject: [PATCH 678/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=BB=8E=E5=8C=85?= =?UTF-8?q?=E8=8D=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\273\216\345\214\205\350\215\243/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 0d2da475f10c87892338ae587f6391000b3d4c57 Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:52:39 +0000 Subject: [PATCH 679/688] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luane <1027872432@qq.com> --- .../User.java" | 40 +++++++++++++++++++ .../test.jsp" | 39 ++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/User.java" new file mode 100644 index 0000000..b3e6146 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/User.java" @@ -0,0 +1,40 @@ +public class user { + private String name; + private int age; + private String address; + + public user(){ + + } + + public user(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getAddress() { + return address; + } + + public void setName(String name) { + this.name = name; + } + + public void setAge(int age) { + this.age = age; + } + + public void setAddress(String address) { + this.address = address; + } + +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/test.jsp" new file mode 100644 index 0000000..671c771 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/test.jsp" @@ -0,0 +1,39 @@ +%@ page import=java.util.List % +%@ page import=java.util.ArrayList % +%@ page import=com.example.Homework7.user % +%@ page contentType=texthtml;charset=UTF-8 language=java % +%@ taglib prefix=c uri=httpjava.sun.comjspjstlcore % +html +head + titleTitletitle +head +body +% + List list = new ArrayList(); + list.add(new user(张三,22,福建)); + list.add(new user(李四,23,江西)); + list.add(new user(王五,25,浙江)); + request.setAttribute(list,list); +% +table border=1 width=500 align=center + tr + td编号td + td姓名td + td年龄td + td地址td + td操作td + tr + cforEach items=${list} var=user varStatus=s + tr + td${s.count}td + td${user.name}td + td${user.age}td + td${user.ardress}td + td + button onclick=javascriptlocation.href='c1test.jspuserIndex=${s.index}'删除button + td + tr + cforEach +table +body +html \ No newline at end of file -- Gitee From 69f2df6558716e65daf9df4be2f89b0a5408c602 Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:53:02 +0000 Subject: [PATCH 680/688] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=BB=8E=E5=8C=85?= =?UTF-8?q?=E8=8D=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\351\273\216\345\214\205\350\215\243/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From f6f22baa930724d797b9a5963d8cc94ae3eed07d Mon Sep 17 00:00:00 2001 From: Luane <1027872432@qq.com> Date: Thu, 29 Dec 2022 11:53:33 +0000 Subject: [PATCH 681/688] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luane <1027872432@qq.com> --- .../Brand.java" | 99 +++++++++++++++++++ .../ServletDemo01.java" | 35 +++++++ .../ServletDemo02.java" | 32 ++++++ .../User.java" | 74 ++++++++++++++ .../jstl.jsp" | 60 +++++++++++ .../jstlforeach.jsp" | 60 +++++++++++ .../test.jsp" | 37 +++++++ 7 files changed, 397 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/ServletDemo01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/ServletDemo02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/Brand.java" new file mode 100644 index 0000000..c4f28f0 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/Brand.java" @@ -0,0 +1,99 @@ +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/ServletDemo01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/ServletDemo01.java" new file mode 100644 index 0000000..883981b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/ServletDemo01.java" @@ -0,0 +1,35 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/ServletDemo02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/ServletDemo02.java" new file mode 100644 index 0000000..4eb0408 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/ServletDemo02.java" @@ -0,0 +1,32 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/User.java" new file mode 100644 index 0000000..e3c34d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/User.java" @@ -0,0 +1,74 @@ +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/jstl.jsp" new file mode 100644 index 0000000..1eb2079 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/jstl.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/jstlforeach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/jstlforeach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/test.jsp" new file mode 100644 index 0000000..8977c06 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\216\345\214\205\350\215\243/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From 379093b660800f033bd48bcc36639168488f05a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BC=9F=E4=B8=9A?= <10602862+huang-weiye123@user.noreply.gitee.com> Date: Thu, 29 Dec 2022 14:14:53 +0000 Subject: [PATCH 682/688] . MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄伟业 <10602862+huang-weiye123@user.noreply.gitee.com> --- .../User.java" | 40 +++++++++++++++++++ .../test.jsp" | 39 ++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/User.java" create mode 100644 "\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/test.jsp" diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/User.java" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/User.java" new file mode 100644 index 0000000..b3e6146 --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/User.java" @@ -0,0 +1,40 @@ +public class user { + private String name; + private int age; + private String address; + + public user(){ + + } + + public user(String name,int age,String address){ + this.name = name; + this.age = age; + this.address = address; + } + + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getAddress() { + return address; + } + + public void setName(String name) { + this.name = name; + } + + public void setAge(int age) { + this.age = age; + } + + public void setAddress(String address) { + this.address = address; + } + +} \ No newline at end of file diff --git "a/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/test.jsp" "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/test.jsp" new file mode 100644 index 0000000..3998e4a --- /dev/null +++ "b/\347\254\254\344\270\203\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/test.jsp" @@ -0,0 +1,39 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page import="com.example.Homework7.user" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + + +<% + List list = new ArrayList(); + list.add(new user("张三",22,"福建")); + list.add(new user("李四",23,"江西")); + list.add(new user("王五",25,"浙江")); + request.setAttribute("list",list); +%> + + + + + + + + + + + + + + + + + +
编号姓名年龄地址操作
${s.count}${user.name}${user.age}${user.ardress} + +
+ + \ No newline at end of file -- Gitee From 6e8f979b6e0c0ad014e627a043b88701cf2b4277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BC=9F=E4=B8=9A?= <10602862+huang-weiye123@user.noreply.gitee.com> Date: Thu, 29 Dec 2022 14:15:18 +0000 Subject: [PATCH 683/688] . MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄伟业 <10602862+huang-weiye123@user.noreply.gitee.com> --- .../FailServlet.java" | 21 ++++++ .../LoginServlet.java" | 40 +++++++++++ .../SuccessServlet.java" | 21 ++++++ .../loginservlet.html" | 14 ++++ .../DownloadServlet.java" | 45 +++++++++++++ .../LoginCheckServlet.java" | 44 ++++++++++++ .../ValidateCodeServlet.java" | 67 +++++++++++++++++++ .../download.html" | 11 +++ .../login.html" | 21 ++++++ .../Fail.java" | 22 ++++++ .../Fail02.java" | 22 ++++++ .../Servlet.java" | 25 +++++++ .../Servlet02.java" | 26 +++++++ .../Success.java" | 21 ++++++ .../Success02.java" | 22 ++++++ .../index.jsp" | 9 +++ .../login.html" | 14 ++++ .../login2.html" | 14 ++++ 18 files changed, 459 insertions(+) create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/FailServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/LoginServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/SuccessServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/loginservlet.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/download.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" create mode 100644 "\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/FailServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/FailServlet.java" new file mode 100644 index 0000000..4b76b8e --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/FailServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/FailServlet") +public class FailServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录失败,用户名或密码错误!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/LoginServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/LoginServlet.java" new file mode 100644 index 0000000..74f00ac --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/LoginServlet.java" @@ -0,0 +1,40 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; + +@WebServlet("/loginservlet") +public class LoginServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + req.getRequestDispatcher("/SuccessServlet").forward(req,resp); + } else { + System.out.println("登录失败!"); + req.getRequestDispatcher("/FailServlet").forward(req,resp); + } + } + } + + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/SuccessServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/SuccessServlet.java" new file mode 100644 index 0000000..cfaf017 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/SuccessServlet.java" @@ -0,0 +1,21 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/SuccessServlet") +public class SuccessServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.getWriter().write("登录成功! admin欢迎您!"); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + super.doPost(req, resp); + } +} diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/loginservlet.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/loginservlet.html" new file mode 100644 index 0000000..d4da7fc --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/loginservlet.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" new file mode 100644 index 0000000..c4bdcef --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/DownloadServlet.java" @@ -0,0 +1,45 @@ +import javax.activation.MimeType; +import javax.servlet.ServletContext; +import javax.servlet.ServletException; +import javax.servlet.ServletInputStream; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/DownloadServlet1") +public class DownloadServlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取请求参数,文件名 + String filename=req.getParameter("filename"); + //1.使用字节流加载文件进内存 + //1.1找到服务器路径 + ServletContext servletContext=this.getServletContext(); + String realPath = servletContext.getRealPath("/img/"+filename); + //1.2用字节流关联 + ServletInputStream fis=req.getInputStream(); + + //2.设置response响应头 + //2.1设置响应头:content-type= ; + String mimeType = servletContext.getMimeType(filename); + resp.setHeader("content-type",mimeType); + //2.2设置响应头打开方式:content-disposition + resp.setHeader("content-disposition","attachment;filename="+filename); + //将输入流的数据写到输出流 + ServletOutputStream sos=resp.getOutputStream(); + byte [] buff=new byte[1024*8]; + int len=0; + while ((len=fis.read(buff))!=-1){ + sos.write(buff,0,len); + } + fis.close(); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" new file mode 100644 index 0000000..7f16049 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/LoginCheckServlet.java" @@ -0,0 +1,44 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.nio.charset.StandardCharsets; + +@WebServlet("/LoginCheckServlet") +public class LoginCheckServlet extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //接收账号,密码,验证码 + String username=req.getParameter("username"); + String password=req.getParameter("password"); + String userCode=req.getParameter("userCode"); + //从session中取出正确验证码 + HttpSession session=req.getSession(); + String vCode= (String) session.getAttribute("vCode"); + //将用户输入的验证码和从session中的正确验证码进行对比 + resp.setContentType("text/html;charset=UTF-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + if (userCode.equals(vCode)) { + if ("admin".equals(username)&&"admin".equals(password)){ + + outputStream.write("登陆成功".getBytes("UTF-8")); + }else { + + outputStream.write("登陆失败,密码错误".getBytes("UTF-8")); + } + }else { + + outputStream.write("登陆失败,验证码错误".getBytes("UTF-8")); + } + + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" new file mode 100644 index 0000000..076a597 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/ValidateCodeServlet.java" @@ -0,0 +1,67 @@ +import javax.imageio.ImageIO; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import javax.xml.ws.spi.http.HttpContext; +import java.awt.*; +import java.awt.image.BufferedImage; +import java.io.IOException; +import java.util.Random; +@WebServlet("/ValidateCodeServlet") +public class ValidateCodeServlet extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建一张图片 + int width=300;//验证码宽度 + int height=90;//验证码高度 + BufferedImage image=new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); + //绘制图片 + //从图片对象中获取绘制图片的“笔” + Graphics pen=image.createGraphics(); + //绘制背景 + pen.setColor(getRandomColor()); + //fillRect:绘制实心矩形 + pen.fillRect(0,0,width,height); + //绘制验证码字符串 + int letterNum=4;//验证码图片上的字符的个数 + int space=20;//验证码图片上两个字母之间的空隙 + int letterWidth=(width-(letterNum+1)*space)/letterNum;//计算每个字母占据的宽度 + //for循环每循环一次,绘制一个字母(小写字母的ASCII码97-122) + String vCode=""; + Random random=new Random(); + for(int i=0;i + + + + Title + +图片
+视频 + + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" new file mode 100644 index 0000000..fbc1dea --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/login.html" @@ -0,0 +1,21 @@ + + + + + 用户登录 + +
+ 账号:
+ 密码:
+ 验证码: +
+
+
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" new file mode 100644 index 0000000..adde74d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail01") +public class Fail01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" new file mode 100644 index 0000000..1df63b6 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Fail02.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Fail02") +public class Fail02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream= resp.getOutputStream(); + outputStream.write("登陆失败!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" new file mode 100644 index 0000000..cedac50 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/s1") +public class Servlet1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String username=req.getParameter("username"); + String password=req.getParameter("password"); + if ("admin".equals(username)&&"admin".equals(password)) { + req.getRequestDispatcher("/Success01").forward(req,resp); + } + else { + req.getRequestDispatcher("/Fail01").forward(req,resp); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" new file mode 100644 index 0000000..9ac18b8 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Servlet02.java" @@ -0,0 +1,26 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/s2") +public class Servlet2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String uname=req.getParameter("uname"); + String password=req.getParameter("password"); + if ("admin".equals(uname)&&"admin".equals(password)) { + resp.sendRedirect("Success02"); + } + else { + resp.sendRedirect("Fail02"); + } + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" new file mode 100644 index 0000000..8a851be --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success.java" @@ -0,0 +1,21 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/Success01") +public class Success01 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" new file mode 100644 index 0000000..605e6ba --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Success02.java" @@ -0,0 +1,22 @@ +import javax.servlet.ServletException; +import javax.servlet.ServletOutputStream; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +@WebServlet("/Success02") +public class Success02 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=utf-8"); + ServletOutputStream outputStream=resp.getOutputStream(); + outputStream.write("登陆成功!".getBytes("UTF-8")); + } +} \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" new file mode 100644 index 0000000..0c2c42d --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/index.jsp" @@ -0,0 +1,9 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + $END$ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" new file mode 100644 index 0000000..c19aa58 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file diff --git "a/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" new file mode 100644 index 0000000..3a32640 --- /dev/null +++ "b/\347\254\254\344\270\211\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/login2.html" @@ -0,0 +1,14 @@ + + + + + Title + +
+ 账号:
+ 密码:
+
+
+ + + \ No newline at end of file -- Gitee From cbe09214a3c8c40365037485180581cb46942223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BC=9F=E4=B8=9A?= <10602862+huang-weiye123@user.noreply.gitee.com> Date: Thu, 29 Dec 2022 14:15:40 +0000 Subject: [PATCH 684/688] . MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄伟业 <10602862+huang-weiye123@user.noreply.gitee.com> --- .../Login.java" | 51 +++++++++++ .../Register.java" | 87 +++++++++++++++++++ .../login.html" | 14 +++ .../register.html" | 17 ++++ 4 files changed, 169 insertions(+) create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/Login.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/Register.java" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/login.html" create mode 100644 "\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/register.html" diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/Login.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/Login.java" new file mode 100644 index 0000000..8985de2 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/Login.java" @@ -0,0 +1,51 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Map; +import java.util.Set; + +@WebServlet("/login") +public class Login extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get >>>"); + String paramsStr = req.getQueryString(); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("post >>>"); + BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + + if ("admin".equals(username) && "admin".equals(password)) { + System.out.println("登录成功!"); + } else { + System.out.println("登录失败!"); + } + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/Register.java" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/Register.java" new file mode 100644 index 0000000..8b8b781 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/Register.java" @@ -0,0 +1,87 @@ +package com.example.homework; + +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.BufferedReader; +import java.io.IOException; +import java.util.Arrays; +import java.util.Enumeration; +import java.util.Map; +import java.util.Set; + +@WebServlet("/register") +public class Register extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + System.out.println("get-----------------------"); + String paramsStr = req.getQueryString(); +// System.out.println(paramsStr); + String[] paramsArr = paramsStr.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + + +// for (int i = 0; i < paramsStr.length() ; i++){ +// System.out.println(paramsArr[i]); +// String[] paramArr = paramsArr[i].split("="); +// for (int j = 0; j < paramArr.length; j++) { +// System.out.println(paramArr[j]); +// } +// } + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + System.out.println("post--------------"); + /*BufferedReader reader = req.getReader(); + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + String[] paramsArr = line.split("&"); + + String username = paramsArr[0].split("=")[1]; + String password = paramsArr[1].split("=")[1]; + String gender = paramsArr[2].split("=")[1]; + String hobby = paramsArr[3].split("=")[1]; + + System.out.println("用户名" + username); + System.out.println("密码" + password); + System.out.println("性别" + gender); + System.out.println("爱好" + hobby); + }*/ + +// String username = req.getParameter("username"); +// String password = req.getParameter("password"); +// String gender = req.getParameter("gender"); +// String hobby = req.getParameter("hobby"); +// +// System.out.println(username); +// System.out.println(password); +// System.out.println(gender); +// System.out.println(hobby); + +// Enumeration paramNames = req.getParameterNames(); +// while (paramNames.hasMoreElements()){ +// String name = paramNames.nextElement(); +// System.out.println(name + "==" + Arrays.toString(req.getParameterValues(name))); +// } + + Map paramMap = req.getParameterMap(); + Set keySet = paramMap.keySet(); + for (String key : keySet) { + System.out.println(key + "==" + Arrays.toString(paramMap.get(key))); + } + } +} diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/login.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/login.html" new file mode 100644 index 0000000..afd4139 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/login.html" @@ -0,0 +1,14 @@ + + + + + Title + + +
+
+
+ +
+ + \ No newline at end of file diff --git "a/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/register.html" "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/register.html" new file mode 100644 index 0000000..f5eeff4 --- /dev/null +++ "b/\347\254\254\344\272\214\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/register.html" @@ -0,0 +1,17 @@ + + + + + 注册 + + +

注册界面

+
+ 用户名:
+ 密码:   
+ 性别:   
+ 爱好:   
+ +
+ + \ No newline at end of file -- Gitee From cb29ff29ad294760cbfa12770f359b56c52943ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BC=9F=E4=B8=9A?= <10602862+huang-weiye123@user.noreply.gitee.com> Date: Thu, 29 Dec 2022 14:15:55 +0000 Subject: [PATCH 685/688] . MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄伟业 <10602862+huang-weiye123@user.noreply.gitee.com> --- .../TwoDoimensional.java" | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 "\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/TwoDoimensional.java" diff --git "a/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/TwoDoimensional.java" "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/TwoDoimensional.java" new file mode 100644 index 0000000..bb41efd --- /dev/null +++ "b/\347\254\254\344\272\224\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/TwoDoimensional.java" @@ -0,0 +1,34 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<% + String[][]array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + Title + + +

二维数组

+ + + + + + + <% + for (int i = 0; i + + <% + for (int j = 0; j + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%=array[i][j]%>
+ + \ No newline at end of file -- Gitee From b259fc8a6d1e9a42b65470bb5d0c551f4bc7492b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BC=9F=E4=B8=9A?= <10602862+huang-weiye123@user.noreply.gitee.com> Date: Thu, 29 Dec 2022 14:16:12 +0000 Subject: [PATCH 686/688] . MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄伟业 <10602862+huang-weiye123@user.noreply.gitee.com> --- .../Brand.java" | 99 +++++++++++++++++++ .../ServletDemo01.java" | 35 +++++++ .../ServletDemo02.java" | 32 ++++++ .../User.java" | 74 ++++++++++++++ .../jstl.jsp" | 60 +++++++++++ .../jstlforeach.jsp" | 60 +++++++++++ .../test.jsp" | 37 +++++++ 7 files changed, 397 insertions(+) create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/Brand.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/ServletDemo01.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/ServletDemo02.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/User.java" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/jstl.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/jstlforeach.jsp" create mode 100644 "\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/test.jsp" diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/Brand.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/Brand.java" new file mode 100644 index 0000000..c4f28f0 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/Brand.java" @@ -0,0 +1,99 @@ +/** + * 品牌实体类 + */ + +public class Brand { + // id 主键 + private Integer id; + // 品牌名称 + private String brandName; + // 企业名称 + private String companyName; + // 排序字段 + private Integer ordered; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + + public Brand() { + } + + public Brand(Integer id, String brandName, String companyName, String description) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.description = description; + } + + public Brand(Integer id, String brandName, String companyName, Integer ordered, String description, Integer status) { + this.id = id; + this.brandName = brandName; + this.companyName = companyName; + this.ordered = ordered; + this.description = description; + this.status = status; + } + // getId ${brand.id} Id getId + public Integer getId() { + System.out.println("getId方法被调用了..."); + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public Integer getOrdered() { + return ordered; + } + + public void setOrdered(Integer ordered) { + this.ordered = ordered; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @Override + public String toString() { + return "Brand{" + + "id=" + id + + ", brandName='" + brandName + '\'' + + ", companyName='" + companyName + '\'' + + ", ordered=" + ordered + + ", description='" + description + '\'' + + ", status=" + status + + '}'; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/ServletDemo01.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/ServletDemo01.java" new file mode 100644 index 0000000..883981b --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/ServletDemo01.java" @@ -0,0 +1,35 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +@WebServlet("/demo1") +public class ServletDemo1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List brands = new ArrayList(); + brands.add(new Brand(1,"三只松鼠","三只松鼠",100,"三只松鼠,好吃不上火",1)); + brands.add(new Brand(2,"优衣库","优衣库",200,"优衣库,服适人生",0)); + brands.add(new Brand(3,"小米","小米科技有限公司",1000,"为发烧而生",1)); + + + //2. 存储到request域中 + request.setAttribute("brands",brands); + request.setAttribute("status",1); + + //3. 转发到 el-demo.jsp + //request.getRequestDispatcher("/el-demo.jsp").forward(request,response); + //request.getRequestDispatcher("/jstl-if.jsp").forward(request,response); + request.getRequestDispatcher("/jstl-foreach.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/ServletDemo02.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/ServletDemo02.java" new file mode 100644 index 0000000..4eb0408 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/ServletDemo02.java" @@ -0,0 +1,32 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +@WebServlet("/demo2") +public class ServletDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + //1. 准备数据 + List users = new ArrayList(); + users.add(new User(1,"加维","男",20,"斗牛士军团",1)); + users.add(new User(2,"克洛泽","男",37,"德意志战车",0)); + users.add(new User(3,"哈里凯恩","男",33,"三狮军团",1)); + + + //2. 存储到request域中 + request.setAttribute("users",users); + request.setAttribute("status",1); + + //3. 转发到 jstl.jsp + request.getRequestDispatcher("/jstl.jsp").forward(request,response); + } + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + this.doGet(request, response); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/User.java" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/User.java" new file mode 100644 index 0000000..e3c34d5 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/User.java" @@ -0,0 +1,74 @@ +public class User { + // id 主键 + private Integer id; + // 名称 + private String UserName; + // 性别 + private String sex; + // 年龄 + private Integer old; + // 描述信息 + private String description; + // 状态:0:禁用 1:启用 + private Integer status; + + public User() { + } + + public User(Integer id, String userName, String sex, Integer old, String description, Integer status) { + this.id = id; + this.UserName = userName; + this.sex = sex; + this.old = old; + this.description = description; + this.status = status; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserName() { + return UserName; + } + + public void setUserName(String userName) { + this.UserName = userName; + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex; + } + + public Integer getOld() { + return old; + } + + public void setOld(Integer old) { + this.old = old; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/jstl.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/jstl.jsp" new file mode 100644 index 0000000..1eb2079 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/jstl.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + User + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号姓名性别年龄所在队伍状态操作
${brand.id}${status.count}${user.userName}${user.sex}${user.old}${user.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/jstlforeach.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/jstlforeach.jsp" new file mode 100644 index 0000000..20a8e34 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/jstlforeach.jsp" @@ -0,0 +1,60 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Title + + +
+
+ + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + +
序号品牌名称企业名称排序品牌介绍状态操作
${brand.id}${status.count}${brand.brandName}${brand.companyName}${brand.ordered}${brand.description}在役退役修改 删除
+ + +
+ +<%----%> +<%-- ${i}--%> +<%----%> + + + + \ No newline at end of file diff --git "a/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/test.jsp" "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/test.jsp" new file mode 100644 index 0000000..8977c06 --- /dev/null +++ "b/\347\254\254\345\205\253\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/test.jsp" @@ -0,0 +1,37 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page language="java" %> +<% + String[][] array = {{"一", "二", "三"}, {"四", "五", "六"}, {"七", "八", "九"}}; +%> + + + + + Java 二维数组示例 + + +

Java 二维数组内容

+ + + + + + + <% + for (int i = 0; i < array.length; i++) { + %> + + <% + for (int j = 0; j < array[i].length; j++) { + %> + + <% + } + %> + + <% + } + %> +
第一列第二列第三列
<%= array[i][j] %>
+ + \ No newline at end of file -- Gitee From cd0da5d17827e789304a0c288d041a2a1401f894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BC=9F=E4=B8=9A?= <10602862+huang-weiye123@user.noreply.gitee.com> Date: Thu, 29 Dec 2022 14:16:28 +0000 Subject: [PATCH 687/688] . MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄伟业 <10602862+huang-weiye123@user.noreply.gitee.com> --- .../ShowTable.java" | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 "\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/ShowTable.java" diff --git "a/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/ShowTable.java" "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/ShowTable.java" new file mode 100644 index 0000000..63362ba --- /dev/null +++ "b/\347\254\254\345\205\255\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/ShowTable.java" @@ -0,0 +1,28 @@ +<%@ page import="java.util.List" %> +<%@ page import="java.util.ArrayList" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + Title + +

用户表格

+<% + List user=new ArrayList(); + user.add("张三"); + user.add("李四"); + user.add("老六"); + request.setAttribute("user",user); +%> + + + + + + +
+ ${str} +
+ + + \ No newline at end of file -- Gitee From 896f66e71da0430c65d9910ec574149e580293a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BC=9F=E4=B8=9A?= <10602862+huang-weiye123@user.noreply.gitee.com> Date: Thu, 29 Dec 2022 14:16:44 +0000 Subject: [PATCH 688/688] . MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄伟业 <10602862+huang-weiye123@user.noreply.gitee.com> --- .../CookieDemo1.java" | 24 +++++++ .../CookieDemo2.java" | 28 ++++++++ .../CookieTest.java" | 68 +++++++++++++++++++ .../Numbers.jsp" | 56 +++++++++++++++ .../Step01.java" | 25 +++++++ .../Step02.java" | 33 +++++++++ .../address.html" | 48 +++++++++++++ .../books.html" | 40 +++++++++++ .../confirm.html" | 42 ++++++++++++ 9 files changed, 364 insertions(+) create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step01.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step02.java" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" create mode 100644 "\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" new file mode 100644 index 0000000..ccdf93a --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo1.java" @@ -0,0 +1,24 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo1") +public class CookieDemo1 extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //创建Cookie对象 + Cookie c1=new Cookie("msg","你好"); + //设置path,让当前服务器下部署的所有项目共享Cookie信息 + c1.setPath("/"); + //发送Cookie + resp.addCookie(c1); + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" new file mode 100644 index 0000000..649287f --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieDemo2.java" @@ -0,0 +1,28 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +@WebServlet("/CookieDemo2") +public class CookieDemo2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //获取Cookie信息 + Cookie[] cs=req.getCookies(); + //获取数据,遍历Cookie + if (cs != null) { + for (Cookie c:cs) { + String name = c.getName(); + String value = c.getValue(); + System.out.println(name+":"+value); + } + } + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" new file mode 100644 index 0000000..55242e4 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\200\346\254\241\344\275\234\344\270\232/CookieTest.java" @@ -0,0 +1,68 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.concurrent.Callable; +@WebServlet("/CookieTest") +public class CookieTest extends HttpServlet { + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + //设置响应的消息体和数据格式以及编码 + resp.setContentType("text/html;charset=utf-8"); + + //获取所有Cookie + Cookie[] cookies = req.getCookies(); + boolean flag=false;//没有Cookie为lastTime + //遍历Cookie + if (cookies != null||cookies.length>0) { + for (Cookie cookie:cookies) { + //获取Cookie名称 + String name = cookie.getName(); + //判断是否是:lastTime + if ("lastTime".equals(name)) { + //有该Cookie,不是第一次访问 + flag=true;//有lastTime的Cookie + + + //设置Cookie的value + //获取当前时间的字符串,重新设置Cookie的值,重新发送Cookie + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + cookie.setValue(srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + //响应数据 + //获取Cookie的value时间 + String value = cookie.getValue(); + resp.getWriter().write("

欢迎回来,您上次访问的时间为"+value+"

"); + break; + } + } + } + if (cookies==null||cookies.length==0||flag==false) { + //没有,第一次访问 + Date date=new Date(); + SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss"); + String srt_date = sdf.format(date); + Cookie cookie=new Cookie("lastTime",srt_date); + //设置Cookie的存活时间 + cookie.setMaxAge(60*60*24*30); + resp.addCookie(cookie); + + resp.getWriter().write("

您好,欢迎您首次访问

"); + } + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" new file mode 100644 index 0000000..2895bc8 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\270\211\346\254\241\344\275\234\344\270\232/Numbers.jsp" @@ -0,0 +1,56 @@ +<%@ page import="java.util.Arrays" %><%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2022/11/5 + Time: 16:54 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +<% + String [][]a={{"一"},{"二"},{"三"}}; + String [][]b={{"四"},{"五"},{"六"}}; + String [][]c={{"七"},{"八"},{"九"}}; +// String a="一"; +// String b="二"; +// String c="三"; +// String d="四"; +// String e="五"; +// String f="六"; +// String g="七"; +// String h="八"; +// String i="九"; +%> +

JSP数组内容

+ + + + + + + + + + + + + + + + + +
<%out.print(Arrays.toString(a[0]));%><%out.print(Arrays.toString(a[1]));%><%out.print(Arrays.toString(a[2]));%>
<%out.print(Arrays.toString(b[0]));%><%out.print(Arrays.toString(b[1]));%><%out.print(Arrays.toString(b[2]));%>
<%out.print(Arrays.toString(c[0]));%><%out.print(Arrays.toString(c[1]));%><%out.print(Arrays.toString(c[2]));%>
+ + + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step01.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step01.java" new file mode 100644 index 0000000..ce548ff --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step01.java" @@ -0,0 +1,25 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.Arrays; + +@WebServlet("/Step1") +public class Step1 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + String[] books = req.getParameterValues("books"); + HttpSession session = req.getSession(); + session.setAttribute("books",books); + resp.sendRedirect("address.jsp"); + + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step02.java" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step02.java" new file mode 100644 index 0000000..56af95b --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/Step02.java" @@ -0,0 +1,33 @@ +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +@WebServlet("/Step2") +public class Step2 extends HttpServlet { + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + this.doPost(req,resp); + } + + @Override + protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + req.setCharacterEncoding("utf-8"); + resp.setContentType("text/html;charset=UTF-8"); + String name = req.getParameter("name"); + String address = req.getParameter("address"); + String username = req.getParameter("username"); +// String visa = req.getParameter("Visa"); +// String master = req.getParameter("Master"); + String[] types = req.getParameterValues("types"); + + HttpSession session = req.getSession(); + session.setAttribute("types",types); + session.setAttribute("name",name); + session.setAttribute("username",username); + session.setAttribute("address",address); + resp.sendRedirect("confirm.jsp"); + } +} \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" new file mode 100644 index 0000000..5a876d9 --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/address.html" @@ -0,0 +1,48 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step2:请输入寄送地址与信用卡信息

+
+ + 基本信息 + + + + + + + + + + + + + + + + + + + + + + + +
姓名
寄送地址
信用卡信息
种类 + VisaMaster
卡号
+ + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" new file mode 100644 index 0000000..ff727fa --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/books.html" @@ -0,0 +1,40 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + +

Step1选择要购买的书籍

+
+ + + + + + + + + + + + + + + + + +
书名购买
Java
Oracle
Struts
+ + + + +
+ + \ No newline at end of file diff --git "a/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" new file mode 100644 index 0000000..ed834df --- /dev/null +++ "b/\347\254\254\345\233\233\347\253\240\344\275\234\344\270\232/\351\273\204\344\274\237\344\270\232/\347\254\254\344\272\214\346\254\241\344\275\234\344\270\232/confirm.html" @@ -0,0 +1,42 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Title + + +

Step3:订单确认

+ + + + + + + + + + + + + + + + + + + + + + + + +
顾客姓名:<%out.print(session.getAttribute("name"));%>
地址:<%out.print(session.getAttribute("address"));%>
付款信息
信用卡类型<%out.print(Arrays.toString((Object[]) session.getAttribute("types")));%>
卡号:<%out.print(session.getAttribute("username"));%>
订货项目<% out.print(Arrays.toString((Object[]) session.getAttribute("books")));%>
+ + + \ No newline at end of file -- Gitee