Yes just like JavaPF says you should loop through the information in your arraylist and print it line by line.
<%
final List<String> names = (ArrayList<String>) session.getAttribute("names");
%>
<table>
<%
for(final String name : names)
{
%>
<tr>
<td><%=name %></td>
</tr>
<%
}
%>
</table>
Something like that or you can use JSTL to do this with tags which might be preferable. I only print out a list of strings in that example but you get the point, you could have a list of objects and print out the selected data from the object using that loop.
// Json