----- Original Message -----
Sent: Wednesday, November 15, 2000 4:54
PM
Subject: RE: ClassCastException
servletproblem
Use
the Java Reflections utilities. Issue myObject.getClass().getName() on the
object that you are trying to cast to something and print it out... the
variable you call statement... is that a JDBC statement? If it is you should
not cast it to whatever the jdbc driver vendor has implemented it
as.
I must cast it to be able to access driver
specific function
org.gjt.mm.mysql.Statement state =
(org.gjt.mm.mysql.Statement)statement; long id =
state.getLastInsertID(); ( to get the latest autoincrement id)
-erik
|