hello dear!
this may help u in solving ur probs...
following is a discription of method of ResultSet interface that u have to
use
-> boolean next()
Moves the cursor down one row from its current position.
-> String getString(String columnName)
Gets the value of a column in the current row as a Java String
-> Object getObject(String columnName)
Gets the value of a column in the current row as a Java object.
-> short getShort(int columnIndex)
Gets the value of a column in the current row as a Java short.
-> Time getTime(String columnName)
Gets the value of a column in the current row as a java.sql.Time
object.
(still many more)
using these methods get the info from resultset and put it in the object u
want..
You can get it all this info from java API documentaion.. get it fom
java.sun.com as it will help u alot.. i hope i have solved ur prob..
Bye
======================================================================
Hi ,
I have a servlet that establishes a database connection , performs a query
and retrieves a ResultSet.
Now I have an Object with fields into which I want to store the results of
the Resultset.
I am a little lost with the commands.
Help will be greatly appreciated.
Thanks in advance,
Regards
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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