主题:struts的logic:iterate问题.
能不能再帮我看看以下的logic:iterate循环怎么写?
<% java.util.HashMap map = new java.util.HashMap();
MyBookBean book = new MyBookBean();
book.setBookIsbn("123456789");
book.setBookName("J2EE");
map.put(book.getBookIsbn,book);
book = new MyBookBean();
book.setBookIsbn("987654321");
book.setBookName("Struts");
map.put(book.getBookIsbn,book);
request.setAttribute("shoppingCar",map);
%>
<logic:present name="shoppingCar"> <%--这里怎么写能够循环输出ISBN和书名--%>
<logic:iterate id="abook" name="shoppingCar" property="value">
<tr>
<td>
<bean:write name="abook" property="bookIsbn"/>
</td>
<td>
<bean:write name="abook" property="bookName"/>
</td>
</tr>
</logic:iterate>
</logic:present>
<% java.util.HashMap map = new java.util.HashMap();
MyBookBean book = new MyBookBean();
book.setBookIsbn("123456789");
book.setBookName("J2EE");
map.put(book.getBookIsbn,book);
book = new MyBookBean();
book.setBookIsbn("987654321");
book.setBookName("Struts");
map.put(book.getBookIsbn,book);
request.setAttribute("shoppingCar",map);
%>
<logic:present name="shoppingCar"> <%--这里怎么写能够循环输出ISBN和书名--%>
<logic:iterate id="abook" name="shoppingCar" property="value">
<tr>
<td>
<bean:write name="abook" property="bookIsbn"/>
</td>
<td>
<bean:write name="abook" property="bookName"/>
</td>
</tr>
</logic:iterate>
</logic:present>