Okay.  So this object which will hold a row of table data... does it
have a name or type according to Struts? i.e. Action, Form, Service,
DTO, DAO, Value Object, etc.

Or is it merely a general object like "Employee" which doesn't have a
special type?

Should this object have a naming scheme within the data structure of
struts or can I call it whatever?

Thanks much for your help, btw.



-----Original Message-----
From: Johnson, Kaerstin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 02, 2005 10:07 AM
To: Struts Users Mailing List
Subject: RE: logic:iterate tag and form beans


Ok, If I am understanding the question correctly, you should be
populating your array list in your bean with a objects of whatever
represents a table row (such as an employee object), this object should
have the attributes (name, id, address) you would like to render in the
columns. 

Each object in the array will wind up being a table row. 



-----Original Message-----
From: Brian Kremmin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 02, 2005 11:02 AM
To: user@struts.apache.org
Subject: logic:iterate tag and form beans

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




---------------------------------------------------------------------
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