質問編集履歴
2
間違えてるところを直しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -102,7 +102,7 @@
|
|
102
102
|
|
103
103
|
<h1>input</h1>
|
104
104
|
|
105
|
-
<form action="
|
105
|
+
<form action="test" method="post">
|
106
106
|
|
107
107
|
<input type="text" name="name" value=""/>
|
108
108
|
|
@@ -156,7 +156,7 @@
|
|
156
156
|
|
157
157
|
*/
|
158
158
|
|
159
|
-
@WebServlet("/
|
159
|
+
@WebServlet("/test")
|
160
160
|
|
161
161
|
public class Test extends HttpServlet {
|
162
162
|
|
1
ArrayListに統一しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,7 +42,7 @@
|
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
-
<% List arrayName = new ArrayList<String>();
|
45
|
+
<% ArrayList<String> arrayName = new ArrayList<String>();
|
46
46
|
|
47
47
|
arrayName = (ArrayList<String>)request.getAttribute("name");
|
48
48
|
|
@@ -126,13 +126,13 @@
|
|
126
126
|
|
127
127
|
package zTest;
|
128
128
|
|
129
|
+
package zTest;
|
130
|
+
|
129
131
|
|
130
132
|
|
131
133
|
import java.io.IOException;
|
132
134
|
|
133
135
|
import java.util.ArrayList;
|
134
|
-
|
135
|
-
import java.util.List;
|
136
136
|
|
137
137
|
|
138
138
|
|
@@ -164,7 +164,7 @@
|
|
164
164
|
|
165
165
|
|
166
166
|
|
167
|
-
List<String> name = new ArrayList<String>();
|
167
|
+
ArrayList<String> name = new ArrayList<String>();
|
168
168
|
|
169
169
|
|
170
170
|
|