diff --git a/servlet-session/SessionManager/.idea/.gitignore b/servlet-session/SessionManager/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/servlet-session/SessionManager/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/servlet-session/SessionManager/.idea/compiler.xml b/servlet-session/SessionManager/.idea/compiler.xml new file mode 100644 index 0000000..adb9132 --- /dev/null +++ b/servlet-session/SessionManager/.idea/compiler.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/servlet-session/SessionManager/.idea/encodings.xml b/servlet-session/SessionManager/.idea/encodings.xml new file mode 100644 index 0000000..aa00ffa --- /dev/null +++ b/servlet-session/SessionManager/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/servlet-session/SessionManager/.idea/jarRepositories.xml b/servlet-session/SessionManager/.idea/jarRepositories.xml new file mode 100644 index 0000000..712ab9d --- /dev/null +++ b/servlet-session/SessionManager/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/servlet-session/SessionManager/.idea/misc.xml b/servlet-session/SessionManager/.idea/misc.xml new file mode 100644 index 0000000..7cce4aa --- /dev/null +++ b/servlet-session/SessionManager/.idea/misc.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/servlet-session/SessionManager/.idea/vcs.xml b/servlet-session/SessionManager/.idea/vcs.xml new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ b/servlet-session/SessionManager/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/servlet-session/SessionManager/pom.xml b/servlet-session/SessionManager/pom.xml new file mode 100644 index 0000000..8479fec --- /dev/null +++ b/servlet-session/SessionManager/pom.xml @@ -0,0 +1,67 @@ + + + + 4.0.0 + + com.cpic + SessionManager + 1.0-SNAPSHOT + war + + SessionManager Maven Webapp + + http://www.example.com + + + UTF-8 + 1.7 + 1.7 + + + + + junit + junit + 4.11 + test + + + + + SessionManager + + + + maven-clean-plugin + 3.1.0 + + + + maven-resources-plugin + 3.0.2 + + + maven-compiler-plugin + 3.8.0 + + + maven-surefire-plugin + 2.22.1 + + + maven-war-plugin + 3.2.2 + + + maven-install-plugin + 2.5.2 + + + maven-deploy-plugin + 2.8.2 + + + + + diff --git a/servlet-session/SessionManager/src/main/webapp/WEB-INF/web.xml b/servlet-session/SessionManager/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..9f88c1f --- /dev/null +++ b/servlet-session/SessionManager/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,7 @@ + + + + Archetype Created Web Application + diff --git a/servlet-session/SessionManager/src/main/webapp/index.jsp b/servlet-session/SessionManager/src/main/webapp/index.jsp new file mode 100644 index 0000000..c38169b --- /dev/null +++ b/servlet-session/SessionManager/src/main/webapp/index.jsp @@ -0,0 +1,5 @@ + + +

Hello World!

+ + diff --git a/servlet-session/SessionManager/target/SessionManager/META-INF/MANIFEST.MF b/servlet-session/SessionManager/target/SessionManager/META-INF/MANIFEST.MF new file mode 100644 index 0000000..9e468ae --- /dev/null +++ b/servlet-session/SessionManager/target/SessionManager/META-INF/MANIFEST.MF @@ -0,0 +1,5 @@ +Manifest-Version: 1.0 +Created-By: IntelliJ IDEA +Built-By: Kane +Build-Jdk: Oracle OpenJDK version 18.0.1 + diff --git a/servlet-session/SessionManager/target/SessionManager/WEB-INF/web.xml b/servlet-session/SessionManager/target/SessionManager/WEB-INF/web.xml new file mode 100644 index 0000000..9f88c1f --- /dev/null +++ b/servlet-session/SessionManager/target/SessionManager/WEB-INF/web.xml @@ -0,0 +1,7 @@ + + + + Archetype Created Web Application + diff --git a/servlet-session/SessionManager/target/SessionManager/index.jsp b/servlet-session/SessionManager/target/SessionManager/index.jsp new file mode 100644 index 0000000..c38169b --- /dev/null +++ b/servlet-session/SessionManager/target/SessionManager/index.jsp @@ -0,0 +1,5 @@ + + +

Hello World!

+ + diff --git a/servlet-session/vscode-servlet/servlet-session/.vscode/launch.json b/servlet-session/vscode-servlet/servlet-session/.vscode/launch.json new file mode 100644 index 0000000..7f7717e --- /dev/null +++ b/servlet-session/vscode-servlet/servlet-session/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + // 使用 IntelliSense 了解相关属性。 + // 悬停以查看现有属性的描述。 + // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "pwa-msedge", + "request": "launch", + "name": "Open index.jsp", + "file": "d:\\develop\\study\\servlet-learning\\servlet-session\\vscode-servlet\\servlet-session\\src\\main\\webapp\\index.jsp" + } + ] +} \ No newline at end of file diff --git a/servlet-session/vscode-servlet/servlet-session/.vscode/settings.json b/servlet-session/vscode-servlet/servlet-session/.vscode/settings.json new file mode 100644 index 0000000..e0f15db --- /dev/null +++ b/servlet-session/vscode-servlet/servlet-session/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.configuration.updateBuildConfiguration": "automatic" +} \ No newline at end of file diff --git a/servlet-session/vscode-servlet/servlet-session/pom.xml b/servlet-session/vscode-servlet/servlet-session/pom.xml new file mode 100644 index 0000000..114584f --- /dev/null +++ b/servlet-session/vscode-servlet/servlet-session/pom.xml @@ -0,0 +1,81 @@ + + + + 4.0.0 + + com.cpicxim + servlet-session + 1.0-SNAPSHOT + war + + servlet-session Maven Webapp + + http://www.example.com + + + UTF-8 + 1.7 + 1.7 + + + + + + + junit + junit + 4.11 + test + + + javax.servlet + javax.servlet-api + 4.0.1 + + + + + javax.servlet.jsp + javax.servlet.jsp-api + 2.3.3 + + + + + servlet-session + + + + + maven-clean-plugin + 3.1.0 + + + + maven-resources-plugin + 3.0.2 + + + maven-compiler-plugin + 3.8.0 + + + maven-surefire-plugin + 2.22.1 + + + maven-war-plugin + 3.2.2 + + + maven-install-plugin + 2.5.2 + + + maven-deploy-plugin + 2.8.2 + + + + + \ No newline at end of file diff --git a/servlet-session/vscode-servlet/servlet-session/src/main/java/com/cpicxim/ServletSession.java b/servlet-session/vscode-servlet/servlet-session/src/main/java/com/cpicxim/ServletSession.java new file mode 100644 index 0000000..9931d2c --- /dev/null +++ b/servlet-session/vscode-servlet/servlet-session/src/main/java/com/cpicxim/ServletSession.java @@ -0,0 +1,24 @@ +/* + * @Author: Kane + * @Date: 2022-08-23 01:33:17 + * @LastEditors: Kane + * @LastEditTime: 2022-08-23 02:32:05 + * @FilePath: \servlet-session\src\main\java\com\cpicxim\ServletSession.java + * @Description: + * + * Copyright (c) ${2022} by Kane, All Rights Reserved. + */ + +package com.cpicxim; + +import javax.servlet.*; +import javax.servlet.http.*; + +public class ServletSession extends HttpServlet +{ + @Override + public void doGet( HttpServletRequest request, HttpServletResponse response ) + { + Cookie fontSizeCookie = new Cookie( "fontsize", "100" ); + } +} diff --git a/servlet-session/vscode-servlet/servlet-session/src/main/webapp/WEB-INF/web.xml b/servlet-session/vscode-servlet/servlet-session/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..9f88c1f --- /dev/null +++ b/servlet-session/vscode-servlet/servlet-session/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,7 @@ + + + + Archetype Created Web Application + diff --git a/servlet-session/vscode-servlet/servlet-session/src/main/webapp/index.jsp b/servlet-session/vscode-servlet/servlet-session/src/main/webapp/index.jsp new file mode 100644 index 0000000..c440048 --- /dev/null +++ b/servlet-session/vscode-servlet/servlet-session/src/main/webapp/index.jsp @@ -0,0 +1,16 @@ + + + +

Hello Java Web1111

+ + + diff --git a/servlet-session/vscode-servlet/servlet-session/target/maven-archiver/pom.properties b/servlet-session/vscode-servlet/servlet-session/target/maven-archiver/pom.properties new file mode 100644 index 0000000..9f0d649 --- /dev/null +++ b/servlet-session/vscode-servlet/servlet-session/target/maven-archiver/pom.properties @@ -0,0 +1,4 @@ +#Created by Apache Maven 3.8.5 +artifactId=servlet-session +groupId=com.cpicxim +version=1.0-SNAPSHOT diff --git a/servlet-session/vscode-servlet/servlet-session/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/servlet-session/vscode-servlet/servlet-session/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..2f632d0 --- /dev/null +++ b/servlet-session/vscode-servlet/servlet-session/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1 @@ +com\cpicxim\ServletSession.class diff --git a/servlet-session/vscode-servlet/servlet-session/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/servlet-session/vscode-servlet/servlet-session/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..0421ff2 --- /dev/null +++ b/servlet-session/vscode-servlet/servlet-session/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1 @@ +d:\develop\study\servlet-learning\servlet-session\vscode-servlet\servlet-session\src\main\java\com\cpicxim\ServletSession.java diff --git a/servlet-session/vscode-servlet/servlet-session/target/servlet-session/WEB-INF/web.xml b/servlet-session/vscode-servlet/servlet-session/target/servlet-session/WEB-INF/web.xml new file mode 100644 index 0000000..9f88c1f --- /dev/null +++ b/servlet-session/vscode-servlet/servlet-session/target/servlet-session/WEB-INF/web.xml @@ -0,0 +1,7 @@ + + + + Archetype Created Web Application + diff --git a/servlet-session/vscode-servlet/servlet-session/target/servlet-session/index.jsp b/servlet-session/vscode-servlet/servlet-session/target/servlet-session/index.jsp new file mode 100644 index 0000000..c440048 --- /dev/null +++ b/servlet-session/vscode-servlet/servlet-session/target/servlet-session/index.jsp @@ -0,0 +1,16 @@ + + + +

Hello Java Web1111

+ + +