2
所以我有下面的類JSP嵌套For循環
class User{
int id;
int name;
//constructor and getters and setters go here
}
設置
Set<User> student = new LinkedHashSet<User>();
Set<User> teacher = new LinkedHashSet<User>();
Set<User> other = new LinkedHashSet<User>();
另一套
Set<Set<User>> finalSet = new LinkedHashSet<Set<User>>();
這包含了所有的設置上面
我怎麼能打印所有值finalSet
jsp
使用嵌套的for循環
<c:forEach items="${finalSet}" var="each">
<c:forEach items="${finalSet.(what should go here??)}" var="each2">
${each2.getId());
</c:forEach>
</c:forEach>
如何做到這一點?