cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mohamed ramzy <m_ra...@yahoo.com>
Subject SQL INSERT problem
Date Thu, 08 Jun 2000 10:23:53 GMT
hi
i'm trying to insert data into a database by useing
XSL XSP taglib,...i'm useing MYSQL database 
i did the following

 <sql:execute-query> 
<sql:driver>org.gjt.mm.mysql.Driver</sql:driver> 
<sql:dburl>jdbc:mysql://localhost/Ramzy1</sql:dburl> 
<sql:username>mrz</sql:username> 
<sql:password>zocka</sql:password> 
<sql:doc-element>ROWSET</sql:doc-element>
<sql:row-element>ROW</sql:row-element 
<sql:query>INSERT INTO pet   
VALUES('<xsp:expr>usname</xsp:expr>',
    
'<xsp:expr>uspass</xsp:expr>',NULL,NULL,NULL,NULL)
   </sql:query>
  </sql:execute-query>

then i got the following error:

Error found handling the request.
java.sql.SQLException: ResultSet is from UPDATE. No
Data 


does any 1 has any idea...

Thanx in Advance

__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

Mime
View raw message