struts的logic标签+hibernate
<logic:iterate id="ls" name="userForm">
<tr>
<td><bean:write name="ls" property="username"/></td><td><bean:write name="ls" property="password"/></td>
<td><bean:write name="ls" property="sex"/></td><td><bean:write name="ls" property="telephone"/></td>
<td><bean:write name="ls" property="address"/></td>
</logic:iterate>
action中是这样的一段
UserForm userForm = (UserForm) form;
List ls=new ArrayList();
list=EntObjectFactory.queryObjects("from UserForm");
ls.add(userForm);
request.getSession().setAttribute("userForm", ls);
return mapping.findForward("success");
结果运行后错误信息是Cannot create iterator for this collection请告诉我在action中应该怎么写才可以