Hello Everyone,

 

This is my first post.  I've been watching the list for a while now and
I've hit a dead end.  This is probably quite simple so any help would be
greatly appreciated.

 

I want to get some table data from a database and output it in table
form on a webpage.

 

I'm planning to use an ArrayList to store the data and use the
logic:iterate tag to expose the elements of the list... however, I'm
unsure of the proper structure of all these data objects.  I think I'm
using struts 1.1 if that makes a difference.

 

I'm assuming I'll create a form bean with an ArrayList as a property..
is this correct?  However, I'm unsure of what sort of objects to put
into the array list.  Do I create another form bean with properties for
each table column, populate a new bean for each row of table data, and
put each into the ArrayList?  Or should the objects in the Arraylist be
something other than a form bean?

 

I'm looking for the 'best' and 'proper" practice as our standards group
is very picky.  Any ideas?

 

Thanks

Reply via email to