struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MichaƂ Postupalski <plas...@ncnet.pl>
Subject Re: Error in Prepared Statement in my Struts Action Class
Date Tue, 18 Mar 2003 01:37:03 GMT
On 3/18/2003 2:28 AM, Richard Raquepo wrote:
> I doing an app with struts. Although my problem is not directly related to struts maybe
any could help me out.
> 
> I have this prepared statement 
> SQLDef.BUSEMPINFO_INSERT=
> INSERT INTO busempinfo (lastupdate) VALUES (?) 
> 
> but when i use this on my Java servlet like this
> pstmt = conn.prepareStatement(SQLDef.BUSEMPINFO_INSERT); 
> pstmt.setString(1,fdate.format(now));
> pstmt.executeUpdate(); 
> 
> i got an error an Exception type error. which just state
> null. It did not go to my SQLException catch. 
> 
> what seems to be cause this null error. When i turn to the mysql client and run this
insert
> INSERT INTO busempinfo(lastupdate) VALUES('2003-01-01'); 
> 
> i worked fine. Please help me out anyone. Thanks... 

what type is lastupdate field in your DB ???




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message