回答編集履歴
1
訂正
answer
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
受け取る側がサーブレットであれば
|
2
|
+
以下のように指定し、
|
3
|
+
<form action="" method="post" >
|
4
|
+
<input type="text" name="account2" value='<%= account.getName() %>' />
|
5
|
+
<input type="text" name="account2" value='<%= account.getEmail() %>' />
|
6
|
+
<input type="text" name="account2" value='<%= account.getAddress() %>' />
|
7
|
+
</form>
|
8
|
+
|
9
|
+
サーブレット側で以下のように受け取ることができるのではないでしょうか
|
10
|
+
上から順に値が入れた順に取り出されています
|
11
|
+
|
12
|
+
String[] s=request.getParameterValues("account2");
|
13
|
+
|
14
|
+
for(int i=0;i<s.length;i++){
|
15
|
+
out.println(s[i]+"<BR>");
|
16
|
+
}
|
17
|
+
|
1
18
|
もし、受け取る側がJSPであれば
|
2
19
|
以下のように指定し、
|
3
20
|
<form action="" method="post" >
|