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