李先生
From 53e7a50fa166d0bb4fc90b0aa42efb471ff52605 Mon Sep 17 00:00:00 2001
From: wlf <920607690@qq.com>
Date: Mon, 14 Jan 2019 02:37:36 +0800
Subject: [PATCH 03/12] Merge branch 'master' of
https://bdgit.educoder.net/zhailw/gdms into wlf
# Conflicts:
# GDMS.iml
# src/servlet/account/login.java
---
src/servlet/Submit/S_Submit.java | 16 ++++++++++++++++
src/servlet/select/S_StudentSelectTeacher.java | 4 +++-
.../{ => select}/S_TeacherSelectStudent.java | 3 ++-
3 files changed, 21 insertions(+), 2 deletions(-)
create mode 100644 src/servlet/Submit/S_Submit.java
rename src/servlet/{ => select}/S_TeacherSelectStudent.java (91%)
diff --git a/src/servlet/Submit/S_Submit.java b/src/servlet/Submit/S_Submit.java
new file mode 100644
index 0000000..94decf4
--- /dev/null
+++ b/src/servlet/Submit/S_Submit.java
@@ -0,0 +1,16 @@
+package servlet.Submit;
+
+import javax.servlet.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("/submit")
+public class S_Submit extends HttpServlet {
+ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ super.doPost(request, response);
+ String content=request.getParameter("opinion");
+
+ }
+}
diff --git a/src/servlet/select/S_StudentSelectTeacher.java b/src/servlet/select/S_StudentSelectTeacher.java
index 625fbbc..777874a 100644
--- a/src/servlet/select/S_StudentSelectTeacher.java
+++ b/src/servlet/select/S_StudentSelectTeacher.java
@@ -4,11 +4,12 @@ import core.process.C_StudentSearchTeacher;
import core.process.C_StudentSelectTeacher;
import core.user.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;
-
+@WebServlet("/studentselectteacher")
public class S_StudentSelectTeacher extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
super.doPost(request, response);
@@ -17,6 +18,7 @@ public class S_StudentSelectTeacher extends HttpServlet {
String teacher_id=user.getId();
try {
new C_StudentSelectTeacher().select(student_id,teacher_id);
+
} catch (Exception e) {
e.printStackTrace();
}
diff --git a/src/servlet/S_TeacherSelectStudent.java b/src/servlet/select/S_TeacherSelectStudent.java
similarity index 91%
rename from src/servlet/S_TeacherSelectStudent.java
rename to src/servlet/select/S_TeacherSelectStudent.java
index bcf2b4b..4dab761 100644
--- a/src/servlet/S_TeacherSelectStudent.java
+++ b/src/servlet/select/S_TeacherSelectStudent.java
@@ -4,11 +4,12 @@ import core.process.C_TeacherSelectStudent;
import core.user.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;
-
+@WebServlet("/teacherselectstudent")
public class S_TeacherSelectStudent extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
super.doPost(request, response);
From e0fde05f7535724f10feedfa5a16c75a11cd1f8c Mon Sep 17 00:00:00 2001
From: wlf <920607690@qq.com>
Date: Mon, 14 Jan 2019 11:19:00 +0800
Subject: [PATCH 04/12] Merge branch 'master' of
https://bdgit.educoder.net/zhailw/gdms into wlf
# Conflicts:
# GDMS.iml
# src/servlet/account/login.java
---
src/servlet/account/S_Register.java | 12 +++++++-----
web/login.jsp | 2 +-
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/servlet/account/S_Register.java b/src/servlet/account/S_Register.java
index b3397fb..e0bc6c1 100644
--- a/src/servlet/account/S_Register.java
+++ b/src/servlet/account/S_Register.java
@@ -5,6 +5,7 @@ import core.user.utils.AccountManagement;
import error.GExcptAccount;
import error.GExcptSQL;
import javax.servlet.ServletException;
+import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -12,7 +13,7 @@ import java.io.IOException;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
-
+@WebServlet("/register")
public class S_Register extends HttpServlet {
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
@@ -22,15 +23,16 @@ public class S_Register extends HttpServlet {
user_info.put("id",id);
String name=request.getParameter("name");
user_info.put("name",name);
- String e_mail=request.getParameter("e-mail");
- user_info.put("e_mail",e_mail);
- String phone_number=request.getParameter("phone-number");
+ String e_mail_location=request.getParameter("e_mail_location");
+ user_info.put("e_mail_location",e_mail_location);
+ String phone_number=request.getParameter("phone_number");
user_info.put("phone_number",phone_number);
String password=request.getParameter("password");
user_info.put("password",password);
User user=null;
try {
- user = AccountManagement.register("student",user_info);
+ String Identity=request.getParameter("Identity");
+ user = AccountManagement.register(Identity,user_info);
} catch (GExcptSQL gExcptSQL) {
gExcptSQL.printStackTrace();
} catch (GExcptAccount gExcptAccount) {
diff --git a/web/login.jsp b/web/login.jsp
index 92fda2b..82983d5 100644
--- a/web/login.jsp
+++ b/web/login.jsp
@@ -56,7 +56,7 @@
From fcfd276d4a049d0f548aa7926bdb5d23ec1429c7 Mon Sep 17 00:00:00 2001
From: wlf <920607690@qq.com>
Date: Mon, 14 Jan 2019 14:48:58 +0800
Subject: [PATCH 05/12] Merge branch 'master' of
https://bdgit.educoder.net/zhailw/gdms into wlf
# Conflicts:
# GDMS.iml
# src/servlet/account/login.java
---
.idea/artifacts/GDMS_war_exploded.xml | 1 +
.../356b1cbb-8e8d-401f-bdfc-b3e917bc8301.xml | 1075 +++++++++--------
.idea/encodings.xml | 4 +
.idea/libraries/lib.xml | 10 +
.idea/misc.xml | 2 +-
5 files changed, 582 insertions(+), 510 deletions(-)
create mode 100644 .idea/encodings.xml
create mode 100644 .idea/libraries/lib.xml
diff --git a/.idea/artifacts/GDMS_war_exploded.xml b/.idea/artifacts/GDMS_war_exploded.xml
index 12d7fe5..95189d4 100644
--- a/.idea/artifacts/GDMS_war_exploded.xml
+++ b/.idea/artifacts/GDMS_war_exploded.xml
@@ -9,6 +9,7 @@
+
diff --git a/.idea/dataSources/356b1cbb-8e8d-401f-bdfc-b3e917bc8301.xml b/.idea/dataSources/356b1cbb-8e8d-401f-bdfc-b3e917bc8301.xml
index 44954d9..15b9934 100644
--- a/.idea/dataSources/356b1cbb-8e8d-401f-bdfc-b3e917bc8301.xml
+++ b/.idea/dataSources/356b1cbb-8e8d-401f-bdfc-b3e917bc8301.xml
@@ -2,7 +2,7 @@
- 10.3.10
+ 10.2.18
MariaDB
InnoDB
lower/lower
@@ -22,2120 +22,2177 @@
utf8_general_ci
- latin1_swedish_ci
-
-
utf8_general_ci
-
+
armscii8
0
-
+
armscii8
1
-
+
armscii8
0
-
+
armscii8
0
-
+
ascii
0
-
+
ascii
1
-
+
ascii
0
-
+
ascii
0
-
+
big5
0
-
+
big5
1
-
+
big5
0
-
+
big5
0
-
+
binary
1
-
+
cp1250
0
-
+
cp1250
0
-
+
cp1250
0
-
+
cp1250
1
-
+
cp1250
0
-
+
cp1250
0
-
+
cp1250
0
-
+
cp1251
0
-
+
cp1251
0
-
+
cp1251
1
-
+
cp1251
0
-
+
cp1251
0
-
+
cp1251
0
-
+
cp1251
0
-
+
cp1256
0
-
+
cp1256
1
-
+
cp1256
0
-
+
cp1256
0
-
+
cp1257
0
-
+
cp1257
1
-
+
cp1257
0
-
+
cp1257
0
-
+
cp1257
0
-
+
cp850
0
-
+
cp850
1
-
+
cp850
0
-
+
cp850
0
-
+
cp852
0
-
+
cp852
1
-
+
cp852
0
-
+
cp852
0
-
+
cp866
0
-
+
cp866
1
-
+
cp866
0
-
+
cp866
0
-
+
cp932
0
-
+
cp932
1
-
+
cp932
0
-
+
cp932
0
-
+
dec8
0
-
+
dec8
0
-
+
dec8
1
-
+
dec8
0
-
+
eucjpms
0
-
+
eucjpms
1
-
+
eucjpms
0
-
+
eucjpms
0
-
+
euckr
0
-
+
euckr
1
-
+
euckr
0
-
+
euckr
0
-
+
gb2312
0
-
+
gb2312
1
-
+
gb2312
0
-
+
gb2312
0
-
+
gbk
0
-
+
gbk
1
-
+
gbk
0
-
+
gbk
0
-
+
geostd8
0
-
+
geostd8
1
-
+
geostd8
0
-
+
geostd8
0
-
+
greek
0
-
+
greek
1
-
+
greek
0
-
+
greek
0
-
+
hebrew
0
-
+
hebrew
1
-
+
hebrew
0
-
+
hebrew
0
-
+
hp8
0
-
+
hp8
1
-
+
hp8
0
-
+
hp8
0
-
+
keybcs2
0
-
+
keybcs2
1
-
+
keybcs2
0
-
+
keybcs2
0
-
+
koi8r
0
-
+
koi8r
1
-
+
koi8r
0
-
+
koi8r
0
-
+
koi8u
0
-
+
koi8u
1
-
+
koi8u
0
-
+
koi8u
0
-
+
latin1
0
-
+
latin1
0
-
+
latin1
0
-
+
latin1
0
-
+
latin1
0
-
+
latin1
0
-
+
latin1
0
-
+
latin1
0
-
+
latin1
1
-
+
latin1
0
-
+
latin2
0
-
+
latin2
0
-
+
latin2
0
-
+
latin2
1
-
+
latin2
0
-
+
latin2
0
-
+
latin2
0
-
+
latin5
0
-
+
latin5
0
-
+
latin5
1
-
+
latin5
0
-
+
latin7
0
-
+
latin7
0
-
+
latin7
1
-
+
latin7
0
-
+
latin7
0
-
+
latin7
0
-
+
macce
0
-
+
macce
1
-
+
macce
0
-
+
macce
0
-
+
macroman
0
-
+
macroman
1
-
+
macroman
0
-
+
macroman
0
-
+
sjis
0
-
+
sjis
1
-
+
sjis
0
-
+
sjis
0
-
+
swe7
0
-
+
swe7
0
-
+
swe7
1
-
+
swe7
0
-
+
tis620
0
-
+
tis620
0
-
+
tis620
1
-
+
tis620
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
1
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ucs2
0
-
+
ujis
0
-
+
ujis
1
-
+
ujis
0
-
+
ujis
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
1
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16
0
-
+
utf16le
0
-
+
utf16le
1
-
+
utf16le
0
-
+
utf16le
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
1
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+
utf32
0
-
+