tomcat升级

hechu1
zhai_lw 6 years ago
parent a4e4c862e0
commit 5c58652c51

@ -17,18 +17,17 @@
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="jdk" jdkName="10" jdkType="JavaSDK" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" scope="PROVIDED" name="Tomcat 8.5.37" level="application_server_libraries" />
<orderEntry type="library" name="lib" level="project" />
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://C:/Program Files/Apache Software Foundation/Tomcat 8.5/lib/tomcat-jdbc.jar!/" />
<root url="jar://C:/Program Files/Apache Software Foundation/Tomcat 9.0/lib/tomcat-jdbc.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="library" scope="PROVIDED" name="Tomcat 9.0.14" level="application_server_libraries" />
</component>
</module>

@ -4,14 +4,17 @@ import core.operation.Operation;
public abstract class Process{
private static String buttonName;
protected static String targetURL;
protected static String iconURL;
private String status;
private String permission;
private Operation operation;
private String info;
private static String buttonName;
protected static String targetURL;
protected static String iconURL;
protected abstract boolean check();
public String getPermission() {

@ -10,7 +10,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet("college-fill-opening-report-opinion")
@WebServlet("/college-fill-opening-report-opinion")
public class S_CollegeFillOpeningReportOpinion extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");

@ -10,7 +10,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet("college-fill-score-opinion")
@WebServlet("/college-fill-score-opinion")
public class S_CollegeFillScoreOpinion extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");

@ -10,7 +10,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet("mentor-fill-opening-report-opinion")
@WebServlet("/mentor-fill-opening-report-opinion")
public class S_MentorFillOpeningReportOpinion extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");

@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet("mentor-fill-review")
@WebServlet("/mentor-fill-review")
public class S_MentorFillReview extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");

@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet("reviewer-fill-review")
@WebServlet("/reviewer-fill-review")
public class S_ReviewerFillReview extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");

@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet("school-fill-score-opinion")
@WebServlet("/school-fill-score-opinion")
public class S_SchoolFillScoreOpinion extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");

@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet("secretary-fill-opening-report-record")
@WebServlet("/secretary-fill-opening-report-record")
public class S_SecretaryFillOpeningReportRecord extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");

@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet("secretary-fill-reply-record")
@WebServlet("/secretary-fill-reply-record")
public class S_SecretaryFillReplyRecord extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");

@ -15,6 +15,8 @@ public class S_StudentUploadFinishedProduct extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = "000";
//String id = request.getParameter("id");
System.out.println("id finished");
String fileURL = servlet.Utils.saveFile(request, fileType);
System.out.println("finished");
}
}

@ -18,6 +18,6 @@ public class S_StudentUploadOpeningReport extends HttpServlet {
static String fileType = "graduation_design_opening_report";
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");
String fileURL = servlet.Utils.saveFile(request, fileType);
//String fileURL = servlet.Utils.saveFile(request, fileType);
}
}

@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet("teacher-team-fill-opening-report-opinion")
@WebServlet("/teacher-team-fill-opening-report-opinion")
public class S_TeacherTeamFillOpeningReportOpinion extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");

@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet("teacher-team-fill-score-opinion")
@WebServlet("/teacher-team-fill-score-opinion")
public class S_TeacherTeamFillScoreOpinion extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");

@ -39,10 +39,13 @@ public interface Utils {
return getFilePath(table)+getFileName(fileName);
}
static String saveFile(HttpServletRequest request, String table) throws IOException, ServletException {
Part part = request.getPart("graduation_design");
System.out.println("utils");
Part part = request.getPart("file");
System.out.println("part");
String header = part.getHeader("content-disposition");
String path = header.substring(header.indexOf("filename=") + 10, header.length() - 1);
String filePathName = servlet.Utils.getFilePathName(table,path);
System.out.println(filePathName);
File file = new File(filePathName);
InputStream inputStream = part.getInputStream();
FileOutputStream outputStream = new FileOutputStream(file);
@ -54,6 +57,7 @@ public interface Utils {
outputStream.close();
inputStream.close();
part.delete();
System.out.println("end");
return filePathName;
}
}

@ -38,7 +38,7 @@ public class S_Login extends HttpServlet {
return;
}
request.getSession().setAttribute("user",user);
response.sendRedirect("/home.jsp");
response.sendRedirect("/home/home.jsp");
return;
}
}

@ -43,7 +43,7 @@ public class S_Register extends HttpServlet {
response.sendRedirect("/op_fail.jsp");
}
request.getSession().setAttribute("user",user);
response.sendRedirect("/home.jsp");
response.sendRedirect("/home/home.jsp");
return;
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -9,8 +9,8 @@
<html>
<head>
<title>资料下载</title>
<link type="text/css" rel="stylesheet" href="cssFile/download_style.css">
<script type="text/javascript" src="jsFile/jquery-3.3.1.js"></script>
<link type="text/css" rel="stylesheet" href="../cssFile/download_style.css">
<script type="text/javascript" src="../jsFile/jquery-3.3.1.js"></script>
</head>
<body>
<div class="updated">

@ -10,9 +10,9 @@
<html>
<head>
<title>填写选题信息</title>
<link type="text/css" rel="stylesheet" href="cssFile/blank-style.css">
<script type="text/javascript" src="jsFile/jquery-3.3.1.js"></script>
<script type="text/javascript" src="jsFile/sub-msg-input.js"></script>
<link type="text/css" rel="stylesheet" href="../cssFile/blank-style.css">
<script type="text/javascript" src="../jsFile/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../jsFile/sub-msg-input.js"></script>
</head>
<body>
<div class="updated">

@ -11,21 +11,21 @@
<html>
<head>
<title>毕业设计管理系统</title>
<link type="text/css" rel="stylesheet" href="cssFile/upload_style.css">
<link type="text/css" rel="stylesheet" href="cssFile/home.css">
<link type="text/css" rel="stylesheet" href="cssFile/personal.css">
<link type="text/css" rel="stylesheet" href="cssFile/select-style.css">
<link type="text/css" rel="stylesheet" href="cssFile/fill-style.css">
<link type="text/css" rel="stylesheet" href="cssFile/download_style.css">
<link type="text/css" rel="stylesheet" href="cssFile/blank-style.css">
<script type="text/javascript" src="jsFile/jquery-3.3.1.js"></script>
<script type="text/javascript" src="jsFile/homeActive.js"></script>
<script type="text/javascript" src="jsFile/home-update.js"></script>
<script type="text/javascript" src="jsFile/personal.js"></script>
<script type="text/javascript" src="jsFile/search.js"></script>
<script type="text/javascript" src="jsFile/fill-action.js"></script>
<script type="text/javascript" src="jsFile/upload_action.js"></script>
<script type="text/javascript" src="jsFile/sub-msg-input.js"></script>
<link type="text/css" rel="stylesheet" href="../cssFile/upload_style.css">
<link type="text/css" rel="stylesheet" href="../cssFile/home.css">
<link type="text/css" rel="stylesheet" href="../cssFile/personal.css">
<link type="text/css" rel="stylesheet" href="../cssFile/select-style.css">
<link type="text/css" rel="stylesheet" href="../cssFile/fill-style.css">
<link type="text/css" rel="stylesheet" href="../cssFile/download_style.css">
<link type="text/css" rel="stylesheet" href="../cssFile/blank-style.css">
<script type="text/javascript" src="../jsFile/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../jsFile/homeActive.js"></script>
<script type="text/javascript" src="../jsFile/home-update.js"></script>
<script type="text/javascript" src="../jsFile/personal.js"></script>
<script type="text/javascript" src="../jsFile/search.js"></script>
<script type="text/javascript" src="../jsFile/fill-action.js"></script>
<script type="text/javascript" src="../jsFile/upload_action.js"></script>
<script type="text/javascript" src="../jsFile/sub-msg-input.js"></script>
</head>
<body>
<%String type="teacher";pageContext.setAttribute("userType",type);%>
@ -46,11 +46,11 @@
<img src="">
</div>
<div class="opt">
<img class="img" src="cssFile/images/opt.png">
<img class="img" src="../cssFile/images/opt.png">
<div class="opt-options">
<div class="opt-to-perm"><a class="update-to-perm" href="personal_setting.jsp">
个人信息</a></div>
<div class="to-logout"><a href="login.jsp">退出登录</a></div>
<div class="to-logout"><a href="../login.jsp">退出登录</a></div>
</div>
</div>
</div>
@ -63,7 +63,7 @@
<div class="a-process personal-msg">
<a href="personal_setting.jsp?001" class="link-point personal-msg-page">
<div class="a-process-decoration personal-set">
<img src="cssFile/images/man.png">
<img src="../cssFile/images/man.png">
</div>
<div class="nav-info">个人信息</div>
</a>
@ -71,7 +71,7 @@
<div class="a-process aux-fun">
<a href="download.jsp?002" class="link-point aux-fun-page">
<div class="a-process-decoration download">
<img src="cssFile/images/download.png">
<img src="../cssFile/images/download.png">
</div>
<div class="nav-info">资料下载</div>
</a>
@ -79,7 +79,7 @@
<div class="a-process">
<a href="select.jsp" class="link-point data-download-page">
<div class="a-process-decoration select">
<img src="cssFile/images/select.png">
<img src="../cssFile/images/select.png">
</div>
<div class="nav-info">选择老师</div>
</a>
@ -87,7 +87,7 @@
<div class="a-process">
<a href="fill_Information.jsp" class="link-point">
<div class="a-process-decoration">
<img src="cssFile/images/fill.png">
<img src="../cssFile/images/fill.png">
</div>
<div class="nav-info">填写信息</div>
</a>
@ -95,7 +95,7 @@
<div class="a-process">
<a href="upload_file.jsp" class="link-point">
<div class="a-process-decoration">
<img src="cssFile/images/upload.png">
<img src="../cssFile/images/upload.png">
</div>
<div class="nav-info">上传文件</div>
</a>
@ -103,7 +103,7 @@
<div class="a-process">
<a href="fillSbjMsg.jsp" class="link-point">
<div class="a-process-decoration">
<img src="cssFile/images/filText.png">
<img src="../cssFile/images/filText.png">
</div>
<div class="nav-info">填写选题信息</div>
</a>
@ -112,7 +112,7 @@
<div class="a-process">
<a href="fillSbjMsg.jsp?<%=index++%>" class="link-point">
<div class="a-process-decoration">
<img src="cssFile/images/filText.png">
<img src="../cssFile/images/filText.png">
</div>
<div class="nav-info">填写选题信息</div>
</a>
@ -129,25 +129,25 @@
<ul class="scroll-ads-imgs" style="transform: translateX(0%)">
<li class="scroll-child">
<a>
<img src="cssFile/images/change.jpg">
<img src="../cssFile/images/change.jpg">
<div class="ads-text">hello</div>
</a>
</li>
<li class="scroll-child">
<a>
<img src="cssFile/images/change2.jpg">
<img src="../cssFile/images/change2.jpg">
<div class="ads-text">hello</div>
</a>
</li>
<li class="scroll-child">
<a>
<img src="cssFile/images/change3.jpg">
<img src="../cssFile/images/change3.jpg">
<div class="ads-text">hello</div>
</a>
</li>
<li class="scroll-child">
<a>
<img src="cssFile/images/change.jpg">
<img src="../cssFile/images/change.jpg">
<div class="ads-text">hello</div>
</a>
</li>
@ -190,6 +190,6 @@
<p>team bys</p>
</div>
</div>
<script type="text/javascript" src="jsFile/personal.js"></script>
<script type="text/javascript" src="../jsFile/personal.js"></script>
</body>
</html>

@ -6,9 +6,9 @@
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<link type="text/css" rel="stylesheet" href="cssFile/personal.css">
<script type="text/javascript" src="jsFile/jquery-3.3.1.js"></script>
<script type="text/javascript" src="jsFile/personal.js"></script>
<link type="text/css" rel="stylesheet" href="../cssFile/personal.css">
<script type="text/javascript" src="../jsFile/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../jsFile/personal.js"></script>
<html>
<head>
<title>个人信息</title>

@ -17,9 +17,9 @@
<html>
<head>
<title>Title</title>
<script type="text/javascript" src="jsFile/jquery-3.3.1.js"></script>
<link type="text/css" rel="stylesheet" href="cssFile/select-style.css">
<script type="text/javascript" src="jsFile/search.js"></script>
<script type="text/javascript" src="../jsFile/jquery-3.3.1.js"></script>
<link type="text/css" rel="stylesheet" href="../cssFile/select-style.css">
<script type="text/javascript" src="../jsFile/search.js"></script>
</head>
<body>
<%

@ -9,9 +9,9 @@
<html>
<head>
<title>上传文件</title>
<link type="text/css" rel="stylesheet" href="cssFile/upload_style.css">
<script type="text/javascript" src="jsFile/jquery-3.3.1.js"></script>
<script type="text/javascript" src="jsFile/upload_action.js"></script>
<link type="text/css" rel="stylesheet" href="../cssFile/upload_style.css">
<script type="text/javascript" src="../jsFile/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../jsFile/upload_action.js"></script>
</head>
<body>
<div class="updated">
@ -19,7 +19,7 @@
<div class="upload-frame">
<div class="upload-tips">上传定稿</div>
<div class="file-msg">
<img src="cssFile/images/file-pdf.png">
<img src="../cssFile/images/file-pdf.png">
<span class="file-name" style="color: rgba(0,0,0,0.72)">
</span>
</div>
Loading…
Cancel
Save