At end. > -----Original Message----- > From: Vernon Wu [mailto:vernonw@;gatewaytech.com] > Sent: Monday, October 21, 2002 10:26 AM
> using MVC pattern instead for another page. In the > controller, I have the followings: > > session.setAttribute("mbox", a.openMessageBox(0, 10)); > > The data is correct at this point. And in the following JSP > file I have the followings: > > <jsp:useBean > id="mbox" > class="com.xxx.web.client.model.Page" > scope="session" > /> > > <c:forEach var="header" items="${mbox.list}" varStatus="status"> > <tr> > <td> > <input type="checkbox" name="checkbox" value="checkbox"> > </td> > <td> </td> > <td><c:out value="${header.from}"/></td> > <td><c:out value="${header.subject}"/></td> > <td> </td> > > </tr> > </c:forEach> > > The iteration is walked through, but no data is displayed. I > don't understand why the second implemention doesn't > display the data. Can anyone see a problem here/ No, I don't see any obvious problem. However, we don't know what the "Page" class looks like, and we don't know what items are in the list. When you do a "view source" on the generated page, do you have empty "td" elements, or an empty table? That will tell you whether there's something wrong with the list, or something wrong with the "header" item. It could be handy to step through this in your debugger and inspect the session data for these objects. -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>