日期:2014-05-16 浏览次数:20598 次
HttpSession session = request.getSession();     
session.setAttrbute("theGottenList",theGottenList);//将返回的list放到session中去。   
var theJSArr= new Array();//定义js中的数组     
<logic:iterate id="item" name="theGottenList"  indexId="index">     
    theJSArr[<bean:write name="index" />]='${item}';                    
</logic:iterate>