} // end for (int i=0; i<totalnumberofrows; i++)
returnmap.put("calendarlist", calendarlist);
// get the unscheduledactivities and scheduledactivities and shove them onto
// the return.
Enumeration unsheduledenum = unscheduledactivity.elements();
while (unsheduledenum.hasMoreElements()) {
CalendarActivityObject activityobject = (CalendarActivityObject)unsheduledenum.nextElement();
unsheduledMap.put(activityobject.getActivityID(), activityobject);
}
Enumeration scheduledenum = scheduledactivitydaily.elements();
while (scheduledenum.hasMoreElements()) {
CalendarActivityObject activityobject = (CalendarActivityObject)scheduledenum.nextElement();
scheduledMap.put(activityobject.getActivityID(), activityobject);
}
returnmap.put("unscheduledactivity", unsheduledMap);
returnmap.put("scheduledactivity", scheduledMap);