I am having some strange problem and its really frustating me. I have a list of Car bean in request attribute -
List<Car> cars = myservice.getCars();
request.setAttribute("cars", cars);
When I print the car ids (long type), it gives me correct value -
for(Car car: cars) {
System.out.println(car.id);
}
// It gives me - 11231, 11245, 11253
But when I am trying to get same on freemarker page resutl.ftl, its giving me values as -
11,231
11,245
11,253
The code is -
<#list cars as car>
<span>Car Id:</span>${car.id}
<#list>