質問編集履歴
1
Web\.xmlを追加しました
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
eclipse でhtmlのフォームから Servletへ遷移
|
1
|
+
eclipse でhtmlのフォームから Servletへ遷移を
|
body
CHANGED
@@ -1,5 +1,22 @@
|
|
1
|
+
Web.XMLを追加で書きました
|
2
|
+
|
1
3
|
"Eclipse"でHTMLのFormからHTTPrequestのPOSTメソッドでServletへ遷移したいのですがActionで指定する先のpathがわかりません。
|
2
4
|
|
5
|
+
以下web.xml
|
6
|
+
```xml
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<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">
|
9
|
+
<display-name>Nimithilia_Server</display-name>
|
10
|
+
<welcome-file-list>
|
11
|
+
<welcome-file>index.html</welcome-file>
|
12
|
+
<welcome-file>index.htm</welcome-file>
|
13
|
+
<welcome-file>index.jsp</welcome-file>
|
14
|
+
<welcome-file>default.html</welcome-file>
|
15
|
+
<welcome-file>default.htm</welcome-file>
|
16
|
+
<welcome-file>default.jsp</welcome-file>
|
17
|
+
</welcome-file-list>
|
18
|
+
</web-app>
|
19
|
+
```
|
3
20
|
色々試したのですが404エラーで進みません。
|
4
21
|
|
5
22
|

|