Hi all

Would you recommend the use of Vectors in jsp pages to hold the query results
from a database?

Is it ok then performance wise to iterate over the vector and display the
items in the jsp page?

For example, a method in a javabean executes a jdbc statement  that returns
some recordsets. These recordsets are added to a Vector and the Vector is
returned by the method.

In my jsp page I get the Vector with recordsets from the bean method.
Then I iterate over the Vector to display its items in a html table.

Is this a good way of doing things?
If not can anyone suggest a better way?

Thanx 'n regards
Deepak

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to