Neeraj,
i faced the same problem 2 days back.
Do write ur query just where u r to use the results of that
particular query, and try to write the query in sequence , i mean the first
query,then it's results,then second query and it's results.
Probably this is the 'cursor state 'problem of the driver.
In my case it has worked.
Rahul
----- Original Message -----
From: neeraj koul <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 13, 2000 2:12 AM
Subject: queries through servlet
> hi,
> Through a servlet( and JDBC) I am sending two queries to a database.
> It is a informix databse. One query goes through while other gives me a
> syntax error. on trying them actually,both of them run fine. I do not know
> what is the problem.
>
> To do the queries I use the servlet which calls a class on the same server
> and passes the connection object and query string to it. If one goes
> through, why does not the other. Is it because connection object cannoot
> be used(However, I gave the 'problematic' query--"info columns for legend"
> and it still gave syntax error). Can somebody suggest
>
>
> regards
> neeraj
>
>
___________________________________________________________________________
> 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