my dog learned polymorphism*
The moose likes JDBC and the fly likes Timestamp in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Timestamp in Java" Watch "Timestamp in Java" New topic

Timestamp in Java

Dharmendra Kumar

Joined: Dec 11, 2001
Posts: 2
I am getting problem while using Timestamp in java.sql.* package. I have written a Stored procedure in SQL in which Timestamp data type is one of the input parameter to the SP. While invoking the Strored Procedure from JSP using
setTimestamp() it throws an Truncation Error. If any body knows what the problem is pl let me know.
I agree. Here's the link:
subject: Timestamp in Java
Similar Threads
jtds driver gives following error
IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff
Type conflict while saving XML
bean:write datetime
mysql timestamp