code is like this:
<c:forEach items="${itemList}" var="item">
//do stuff based on the class type of item
</c:forEach>
Is it possible to 开发者_如何学运维do that? Thanks!
Yes, ${item.class} conforms to the javabeans convention, so you get the Class. Then you can get other properties.
If it doesn't work, use ${item['class']}
加载中,请稍侯......
精彩评论