Hi All,


        The scenario is, I'm having 5 lstboxes in a single page. Each combo
box needs to be populated from different table from the database. I want to
come up with an efficeient way of retrieving data for all the 5 list boxes
once when a database connection is opened.

Currently the code is : - calling a method in a bean for each listbox
...each method is opening and closing the connection .... this is very slow
..and I need to improve the performance.

 Should I define vectors / hastable that can hold the values for each of the
listboxes ..?

or is there anyway, where I can have multiple resultsets.



Thanks


Malik

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to