Hi Manisha, this looks very simple thing in action class you can just set that array of databean in request attribute and get it back on jsp like: req.setAttribute(databeanarray,"databeanarray");
cheers Manish -----Original Message----- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Friday, December 24, 2004 9:40 AM To: Tomcat Users List Subject: RE: Newbie question on Database and struts what i mean to array of databeans means - I have created employee data bean and for each row of result set i am creating one object of bean. So in a way i will get array of databeans. regards Manisha John Najarian <[EMAIL PROTECTED]> wrote: Hi Manisa, I'm not sure what you mean by 'create array of databeans'. Your result set contains multiple rows, your bean should be able to return the entire result set. Why do you need an array of a bean? -----Original Message----- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Thursday, December 23, 2004 7:25 PM To: tomcat-user@jakarta.apache.org Subject: Newbie question on Database and struts I am new to struts (even new to java also) I have one form developed in struts. What i want to do is depending on form values, run sql qry in Action form, get result set and display it on JSP. I have created a databean for the results. But with result set -> How to create array of databeans ? and how to post it on JSP ? if anybody can pass me the samples pls would be of great help regards Manisha --------------------------------- Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Do you Yahoo!? All your favorites on one personal page - Try My Yahoo! *********************************************************************************** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ************************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]