hi,
 Here Im connecting to DB2 database and Im able to retrieve datas from data
base but the pblm is Im unable to update the table.
I use the query

ResultSet rs1=stmt.executeQuery("update user set pass='india' where
eno=1001");

in my JSP page. I get exception as


500 Servlet Exception
COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0637E  QUERY cannot
be found.
       at
COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throwInvalidQueryError(Unknown
Source)
       at COM.ibm.db2.jdbc.app.DB2Statement.executeQuery(Unknown Source)
       at _final._cpass__jsp._jspService(/final/cpass.jsp:31)
       at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
       at com.caucho.jsp.Page.subservice(Page.java:497)
       at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
       at com.caucho.server.http.Invocation.service(Invocation.java:312)
       at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
       at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244)
       at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
       at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
       at java.lang.Thread.run(Thread.java:536)




 Can any one say how to solve it plz.

rgds,
karthik

_________________________________________________________________
Help STOP SPAM: Try the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com

Reply via email to