Is it better to return list of formbeans or list of objects created by torque?

2003-06-06 Thread
Hi, I am using Torque with Struts. I need to display some data from database in .jsp file. I retrieve my data in action class as: Criteria criteria = new Criteria; List customerList = CustomerPeer.doSelect(criteria) Now I have a list populated with objects made by Torque..? I would like to

Re: Is it better to return list of formbeans or list of objects created by torque?

2003-06-06 Thread Mark Lowe
You want to populate forms from actions.. So in an action servlet you use the objects generated by torque and populate the form form there. e.g. Iterator it = customerList.iterator(); while(it.hasNext()) { Customer cust = (Customer) it.next(); String fieldName =