Hi,

one way is to create a DTO for each record and populate a collection with 
these DTO-objects in the Action (after having made the sql-call) by copying 
the result-set-records into single DTO-objects.

In the JSP you then have on of the "standard cases" for struts:
Transform a collection with DTO's into a view.
(logic:iterate and bean:write are the tags to use...)

hope this helps
Alexander Jesse

-----Original Message-----
From: vasudevrao gupta [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 4. Dezember 2003 11:07
To: 'Struts Users Mailing List'
Subject: How to use struts for multiple records..



Hi All,

I have a search page through which the user will enter the search
criteria.I constructed an ActionForm to hold the search criteria.In the
Action class, I populate the values of Action Form in a DTO object and
pass it  my business service class.Business service class calls the Data
Access object which make a database query and gives me a result set
containing multiple records and each record contains multiple attribute.
Now, can anyone please suggest me on how to display  these records in a
simpler way using struts.

Regards
VasudevRao Gupta


Confidentiality Notice 

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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