質問編集履歴
1
Web\.xmlを追加しました
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
eclipse でhtmlのフォームから Servletへ遷移
|
1
|
+
eclipse でhtmlのフォームから Servletへ遷移を
|
test
CHANGED
@@ -1,6 +1,40 @@
|
|
1
|
+
Web.XMLを追加で書きました
|
2
|
+
|
3
|
+
|
4
|
+
|
1
5
|
"Eclipse"でHTMLのFormからHTTPrequestのPOSTメソッドでServletへ遷移したいのですがActionで指定する先のpathがわかりません。
|
2
6
|
|
3
7
|
|
8
|
+
|
9
|
+
以下web.xml
|
10
|
+
|
11
|
+
```xml
|
12
|
+
|
13
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
14
|
+
|
15
|
+
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
|
16
|
+
|
17
|
+
<display-name>Nimithilia_Server</display-name>
|
18
|
+
|
19
|
+
<welcome-file-list>
|
20
|
+
|
21
|
+
<welcome-file>index.html</welcome-file>
|
22
|
+
|
23
|
+
<welcome-file>index.htm</welcome-file>
|
24
|
+
|
25
|
+
<welcome-file>index.jsp</welcome-file>
|
26
|
+
|
27
|
+
<welcome-file>default.html</welcome-file>
|
28
|
+
|
29
|
+
<welcome-file>default.htm</welcome-file>
|
30
|
+
|
31
|
+
<welcome-file>default.jsp</welcome-file>
|
32
|
+
|
33
|
+
</welcome-file-list>
|
34
|
+
|
35
|
+
</web-app>
|
36
|
+
|
37
|
+
```
|
4
38
|
|
5
39
|
色々試したのですが404エラーで進みません。
|
6
40
|
|