- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
elem = request.getParameter("max_price");
if ((elem != null) && (elem.trim().length() != 0)) {
filter.setMax_price_id(elem);
switch (Integer.parseInt(elem))
{
case 1:
filter.setMax_price("price <= 10000");
break;
case 2:
filter.setMax_price("price > 10000 and price <= 20000");
break;
case 3:
filter.setMax_price("price > 20000 and price <= 30000");
break;
case 4:
filter.setMax_price("price > 30000 and price <= 40000");
break;
case 5:
filter.setMax_price("price > 50000");
}
}