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 return a list of formbeans presenting the customer
instead of these objects.

Something like:

List customerList = (myCustomerFormBean)CustomerPeer.doSelect(criteria);

Is it possible to cast a CustomerPeer object to formbean? If not
how should I do this?

Should I even try to return formbeans or is ok to use objects?
Formbeans should be lighter as least???


Thanks in advance,


Ville Kaseva









 



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

Reply via email to