How about, convert each row in the resultset to an appropriate object as
soon as you retrieve the resultset, and store the objects in a Vector...
Why convert the Vector to an array? Let the JSP wrassle with the
Vector...but if you insist, under JDK 1.3, see the toArray or copyInto
methods of Vector.
I hate to answer a question with two more, but...IMHO...
----- Original Message -----
From: Kate Hocking <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 15, 2000 11:38 PM
Subject: Vectors and Arrays - A bit off topic
> Hi all,
>
> My scenario is multiple results sets returned from a query to a database.
> I need to output the results to a HMTL page, so the use can choose the
> correct one and feed the selection back to a servlet.
>
> Can any one show me an example of:
>
> * storing a ResultsSet an array (String)
> * adding each of the arrays as an element to a vector
> * turn the vector into an array (this is the part where I am really
> stuck)
> * pass the array to a jsp
> * print out the various strings
>
> I am getting a "ArrayStoreException " error message.
>
> TIA
> Kate
>
>
>
____________________________________________________________________________
> ________________________________________
>
> IMPORTANT: This email is intended only for the use of the individual or
> entity named above and may contain information that is confidential and
> privileged. The views expressed in this e-mail are those of the author and
> not of the company unless otherwise clearly indicated. When addressed to
> our clients, any information or quotes contained in this e-mail are
subject
> to the terms and conditions relevant at that time to the matter being
> addressed. If you are not the intended recipient and have received this
> e-mail in error, please notify us immediately by return email or telephone
> +61 8 93235555 and delete the e-mail and any attachments without using or
> disclosing the contents in any way. If you are not the intended recipient
> any dissemination, distribution or copying of this e-mail is strictly
> prohibited. Before opening or using attachments, check them for viruses
and
> defects. Our liability is limited to re-supplying any affected
attachments.
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html