質問編集履歴
2
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
思っているのですが、404エラーになります。
|
5
5
|
web.xmlにはパッケージ名やurlパターンを記載しましたし、パッケージ名も記載しています。
|
6
6
|
なのに、なぜサーブレットが起動しないのかがわかりません。
|
7
|
+
コンテキストルートは「EmployeeManagementSite」です。
|
7
8
|
|
8
9
|
フォルダ階層
|
9
10
|
apache-tomcat-8.5.34
|
1
書式
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,25 +8,24 @@
|
|
8
8
|
フォルダ階層
|
9
9
|
apache-tomcat-8.5.34
|
10
10
|
→webapps
|
11
|
-
|
11
|
+
→→EmployeeManagementSite
|
12
|
-
|
12
|
+
→→→WebContent
|
13
|
-
|
13
|
+
→→→→JSP
|
14
|
-
|
14
|
+
→→→→→login.jsp
|
15
|
-
|
15
|
+
→→→→WEB-INF
|
16
|
-
|
16
|
+
→→→→web.xml
|
17
|
-
|
17
|
+
→→→→→classes
|
18
|
-
|
18
|
+
→→→→→→javaparts
|
19
|
-
|
19
|
+
→→→→→→→LoginServlet.class
|
20
20
|
|
21
21
|
web.xml
|
22
22
|
<?xml version="1.0" encoding="UTF-8"?>
|
23
23
|
<web-app
|
24
|
-
|
24
|
+
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
25
|
-
|
25
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
26
|
-
|
26
|
+
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
|
27
|
-
|
27
|
+
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
|
28
|
-
|
28
|
+
version="3.1">
|
29
|
-
>
|
30
29
|
<servlet>
|
31
30
|
<servlet-name>LoginServlet</servlet-name>
|
32
31
|
<servlet-class>javaparts.LoginServlet</servlet-class>
|
@@ -45,8 +44,7 @@
|
|
45
44
|
<p>ログイン</p>
|
46
45
|
</div>
|
47
46
|
<form action = "/LoginServlet" method = "post">
|
48
|
-
<input type = "submit" name = "login"
|
47
|
+
<input type = "submit" name = "login" value = "ログイン">
|
49
|
-
onclick = "return isCheck()">
|
50
48
|
</form>
|
51
49
|
</body>
|
52
50
|
</html>
|