Passing any parameter to the getString( ) is invalid. You should remove the
parameter passed, before retrieving just have a reference of the Metadata interface
for recordset and traverse through recordset using rs.next(). If You want to
select "Name " only then you have to change the query statement of SQL.
Rgds
Sanjay
Modassir Sattar wrote:
> Hi,
>
> I am trying to execute a query in a JSP page, but I am getting a page full
> of errors.
> The code is working fine upto the executeQuery("select * from sss")
> statement, but when I tried to disply the recordset using
> rs.getString("Name") these errors are displayed.
>
> I am using IBM's WebSphere server and DB2 Database, and I used jdbc.odbc
> bridge to access the database.
>
> Does any body know what I am doing wrong.
>
> Your help is appreciated.
>
> Thanks.
>
> Modassir
>
> ===========================================================================
> 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
===========================================================================
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