diff --git a/learn02/web/index.jsp b/learn02/web/index.jsp
index 09faf70..c0cede3 100644
--- a/learn02/web/index.jsp
+++ b/learn02/web/index.jsp
@@ -2,10 +2,10 @@
Created by IntelliJ IDEA.
User: awinx
Date: 2024/12/5
- Time: 1:31
+ Time: ����1:31
To change this template use File | Settings | File Templates.
--%>
-<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ page contentType="text/html;charset=UTF-8"%>
$Title$
diff --git a/learn1/src/login/UserLoginAction.java b/learn1/src/login/UserLoginAction.java
index 7caf6ff..402e169 100644
--- a/learn1/src/login/UserLoginAction.java
+++ b/learn1/src/login/UserLoginAction.java
@@ -11,7 +11,7 @@ import java.io.IOException;
@WebServlet("/UserLoginAction")
public class UserLoginAction extends HttpServlet {
- protected void doPost(HttpServletRequest req, HttpServletResponse response) throws ServletException, IOException {
+ protected void doPost(HttpServletRequest req, HttpServletResponse response) throws IOException {
String path = req.getContextPath();
if (req.getSession().getAttribute("user") != null){
response.sendRedirect(path+"/home.jsp");
@@ -28,7 +28,7 @@ public class UserLoginAction extends HttpServlet {
response.sendRedirect(path+"/login/login.jsp&loginflag=2");
}
}
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
response.sendRedirect("error.jsp");
}
}
diff --git a/learn1/web/home.jsp b/learn1/web/home.jsp
index e2a078e..2fc604c 100644
--- a/learn1/web/home.jsp
+++ b/learn1/web/home.jsp
@@ -5,7 +5,7 @@
Time: 上午12:17
To change this template use File | Settings | File Templates.
--%>
-<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ page contentType="text/html;charset=UTF-8" %>
主页
diff --git a/learn1/web/index.jsp b/learn1/web/index.jsp
index 8cc0dc3..c753d55 100644
--- a/learn1/web/index.jsp
+++ b/learn1/web/index.jsp
@@ -5,7 +5,7 @@
Time: 下午1:20
To change this template use File | Settings | File Templates.
--%>
-<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ page contentType="text/html;charset=UTF-8"%>
学生信息管理系统
diff --git a/learn1/web/js/course-edit.js b/learn1/web/js/course-edit.js
index 8964a24..4ca83f6 100644
--- a/learn1/web/js/course-edit.js
+++ b/learn1/web/js/course-edit.js
@@ -35,10 +35,7 @@ function getCourses(){
$(document).ready(getCourses);
function editCourse(i){
- $(".course-editor").load(path+"/course/course_edit.jsp", (response,status,xhr)=>{
- if (stauts === 403){
- window.location = path+"/login/login.jsp";
- }
+ $(".course-editor").load(path+"/course/course_edit.jsp", ()=>{
const form = document.querySelector('.course-edit');
form.action = path+"/CourseEditAction";
form.method = "POST";
diff --git a/learn1/web/login/login.jsp b/learn1/web/login/login.jsp
index 93972d1..e53cabf 100644
--- a/learn1/web/login/login.jsp
+++ b/learn1/web/login/login.jsp
@@ -5,7 +5,7 @@
Time: 下午11:58
To change this template use File | Settings | File Templates.
--%>
-<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ page contentType="text/html;charset=UTF-8"%>
登录