java script获得jsp上java变量的方法
<%
List scoreList = (List )request.getSession().getAttribute("scoreList");
%>
alert("list的长度是:"+<%=scoreList .size()%>);