質問編集履歴

3

誤字の修正

2015/04/08 02:05

投稿

Sfidante
Sfidante

スコア90

test CHANGED
@@ -1 +1 @@
1
- forEach文を用いてJSPで表示させてい。しかし、一つしか表示されません。
1
+ forEach文を用いてJSPで表示させています。しかし、データが一つしか表示されません。
test CHANGED
File without changes

2

文法の修正

2015/04/08 02:05

投稿

Sfidante
Sfidante

スコア90

test CHANGED
@@ -1 +1 @@
1
- JSPでforEach文を用いて配列とし羅列たいのだが値が上書きされてしいます
1
+ forEach文を用いてJSPで表示させい。かし一つしか表示されません
test CHANGED
@@ -66,8 +66,6 @@
66
66
 
67
67
  ses.setAttribute("pair_today", dao.selectPair18to50(myPairId, canAgeMax, canAgeMin, str[i], canTreat));
68
68
 
69
- System.out.println(dao.selectPair18to50(myPairId, canAgeMax, canAgeMin, str[i], canTreat));
70
-
71
69
  }
72
70
 
73
71
  }

1

文法の修正

2015/04/08 01:56

投稿

Sfidante
Sfidante

スコア90

test CHANGED
File without changes
test CHANGED
@@ -52,7 +52,7 @@
52
52
 
53
53
  int canTreat = candidate.getCan_treat();
54
54
 
55
- String[] str = request.getParameter(candidateArea).split(",");
55
+ String[] str = candidateArea.split("," , 0);
56
56
 
57
57
  for(int i = 0; i < str.length; i++){
58
58