Code in your action: Collection records = someBusinessObject.getPlentyOfRecords(); request.setAttribute ("myRecords", records);
Code in your JSP (supposes appropriate taglib declarations) <ul> <c:forEach var="rec" items="${myRecords}"> <li><c:out value="${rec.someProperty}"/></li> </c:forEach> </ul> If it's not helpful there may be two reasons for it: - I don't understand your problem - or you should get some book about basics of java web programming ;) Pavel On Tue, 17 Aug 2004, vineesh . kumar wrote: > > sir, > can u specify some code snippet or a link which leads to the example > code? On Tue, 17 Aug 2004 Pavel Kolesnikov wrote : >On Tue, 17 Aug 2004, vineesh . kumar wrote: > > > the problem is that, i may hav just one recordset or may have hundred > > recordset. It's unpredictable. Also at the jsp page(view) how can i > > access these values dynamically. if the recordset contains 100 records > > and each record contains four fields there should be atleast 400 > > atribute in the reuest and how a jsp can dynamically handle it? > >Put all your records into one Collection and then set >just one request attribute - the Collection object. > >You can access it using JSTL tag c:forEach or Struts >tag logic:iterate in your JSP. > >Just a usability none - if your business logic returns >400 objects for your request, maybe it's not a good >idea to display all of them on one page. > >Pavel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]