Didn't really get what you meant by "separatly". You should take a look at the DateFormat in the Java API
for example:
SimpleDateFormat formatter = new SimpleDateFormat("HH:mm");
out.print(formatter.format(t));
will print 23:00 when the pub closes ;)
You need to convert your sql time to a Calendar object.
java.sql.Time time = rs.getTime("time_field");
Calendar cal = Calendar.getInstance();
// set the calendar to have your time
cal.setTimeInMillis(time.getTime());
int hour = cal.get(Calendar.HOUR);
int minutes = cal.get(Calendar.MINUTE));