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

On Tue, 17 Aug 2004 Pavel Kolesnikov wrote :
>On Tue, 17 Aug 2004, vineesh . kumar wrote:
>
> >  I want to pass a range of values which is dynamic(values retrieved from
> > a database using a dynamic query) from an action class to corresponding
> > jsp page. I hav to access it from the jsp page and dispaly. How can i do
> > this in struts.
>
>what about simple request.setAttribute(key, value) ?
>
>pavel
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to