Originally posted by Tim Baker:
why are you treating that field as an Object in one line and then as a String in the other?
if it really is a String you don't need to cast it when using getString
String timeEntryID = rsLastEntry.getString("TimeEntryID");
and how do you know it isn't being put in the session?