Hey guys this must be a silly question for some of you, but I can't go through this problem. I'm trying to pass values from my java object to a javascript array. For some reason it doesn't work. The CanchasPrecios2 Arrays get filled out with undefined values, and won't let me work. The CanchasDescription do get the right values. I've tripled check to see what are the values for the object's price and they are the right ones. Both Price and Descriptions are Strings in their Java Object. Any idea on how to solve it?
THANKS!
var y = <%=param%>;
var CanchasDescription = new Array();
var CanchasPrecios2 = new Array();
<% for(int i =0; i<owner.getMisCanchas().size(); i++)
{ %>
CanchasDescription[<%=i%>] = <%= owner.getMisCanchas().get(i).getDescription()%>;
CanchasPrecios2[<%=i%>] = <%=owner.getMisCanchas().get(i).getPrice()%>;
<%}%>