teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

誤字の修正

2015/04/08 02:05

投稿

Sfidante
Sfidante

スコア90

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

2

文法の修正

2015/04/08 02:05

投稿

Sfidante
Sfidante

スコア90

title CHANGED
@@ -1,1 +1,1 @@
1
- JSPでforEach文を用いて配列とし羅列したのだが値が上書きされてしいます
1
+ forEach文を用いてJSPで表示させてい。しかし一つしか表示されません
body CHANGED
@@ -32,7 +32,6 @@
32
32
  }
33
33
  else if(canAgeMin >= 18 && canAgeMax <= 49){
34
34
  ses.setAttribute("pair_today", dao.selectPair18to50(myPairId, canAgeMax, canAgeMin, str[i], canTreat));
35
- System.out.println(dao.selectPair18to50(myPairId, canAgeMax, canAgeMin, str[i], canTreat));
36
35
  }
37
36
  }
38
37
  ```

1

文法の修正

2015/04/08 01:56

投稿

Sfidante
Sfidante

スコア90

title CHANGED
File without changes
body CHANGED
@@ -25,7 +25,7 @@
25
25
  int canAgeMax = candidate.getCan_age_max();
26
26
  int canAgeMin = candidate.getCan_age_min();
27
27
  int canTreat = candidate.getCan_treat();
28
- String[] str = request.getParameter(candidateArea).split(",");
28
+ String[] str = candidateArea.split("," , 0);
29
29
  for(int i = 0; i < str.length; i++){
30
30
  if(canAgeMax == 50){
31
31
  ses.setAttribute("pair_today", dao.select50pair(myPairId, str[i], canTreat, canAgeMin));