【发布时间】:2010-11-18 15:00:45
【问题描述】:
我正在使用 struts。我的 ActionForm 在其中设置了一个 ArrayList,我如何从 JSP 访问该数组,ActionForm 在 jQuery 中由控制器在单击按钮时发送到该数组。这样我就可以遍历该数组的元素。我猜它是这样的,但这是在黑暗中刺伤(这是行不通的)。
$('myButton').click(function(){
var myArrayToLoopThrough = $('myForm.myArray');
for(){
//looping stuff
}
}
【问题讨论】:
标签: jquery arrays loops struts jquery-click-event