Hi,, Please see my inline comments ... Deepak wrote:
> Hi all > > Would you recommend the use of Vectors in jsp pages to hold the query results > from a database? > No > > Is it ok then performance wise to iterate over the vector and display the > items in the jsp page? > Vector is synchronised.There will be some delay involved. Is is also a legacy type. It has been retrofitted to be included in the Collections Package Amount of memory used may be increased exponentially in case of Vectors. It doubles itself each time memory requirement is there. ArrayList will be a more easier way of doing this. It is better to implement the retrieval of results as a List i.e. the Interface since at a later stage you can use it as an implementation like LinkedList, etc.In case of memory requirement the ArrayList will only increase its memory footprint by 50% according to the current implementation of SUN's JDK Hope this helps - Blessan =========================================================================== 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