请教struts标签的简单问题
action里如下:
request.setAttribute("l",list);
跳转到的页面A.jsp如下:
<%for (int i = 0; i < l.size(); i++) { Object[] obj = (Object[]) l.get(i); }%>out.writer(obj[0]);out.writer(obj[1]);<logic:iterate id="你的元素" name="l"> <bean:write name="你的元素" property="你的元素里的属性1"/> <br> <bean:write name="你的元素" property="你的元素里的属性2"/> <br> </logic:iterate>