Kate

perhaps I'm missing something, but it sounds fairly simple

Vector vec = turnResultSetIntoVector( resultSet );

String [] array = new String [vec.size];
for( int i=0; i<array.length; i++)
     array[ i ] = (String)vec.elementAt ( i );

then there is the jsp tag protocol for arrays - which I don't know about

regards
David


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

Reply via email to