I have following two array in my code
List centralityList = (List) request
.getAttribute(\"centralityList\");
List&l
try this code
<%
List centralityList = (List) request
.getAttribute("centralityList");
List labelList = (List) request
.getAttribute("labelList");
String myString="";
%>
<%
for(int i = 0; i < labelList.size(); i++)
{
out.println((String)labelList.get(i));
}
%>
<%
for(int i = 0; i < centralityList.size(); i++)
{
out.println((double)centralityList.get(i));
}
%>
You can achieve this eaisly by using JSTL which is even more easy and far better way but as in your code I didn't find any evidence of using JSTL , so this is the way for now