this is my first post...not sure whats the problem...any suggestions would be appreciated...thanx
<%
int unViewedCt= 0;
out.write("var jsLeads = new Array);
(for (int i=0; i< leads.size(); i++) {
currLead = (HashMap)leads.get(i);
out.write("jsLeads["+ i +"] = new Array();\n");
out.write("jsLeads[" + i + "][0] = '" + currLead.get("PK_LEADID") + "';\n");
out.write("jsLeads[" + i + "][1] = '" + currLead.get("CON_ID") + "';\n");
out.write("jsLeads[" + i + "][2] = " + currLead.get("BO_VISIBLE") + ";\n");
if (new Integer(currLead.get("BO_VIEWED").toString()).intValue() == 0 ) {
unViewedCt++;
}
}
<%}
%>