*/
public ActionForward list(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
InteractionLogListForm listForm = (InteractionLogListForm)form;
ApplicationManager applicationManager = new ApplicationManager(locale,session);
Group groupToDisplay = null;
Application applicationToDisplay = null;
groupToDisplay = this.getCurrentGroup(req);
Long applicationId = listForm.getApplicationId();
if (applicationId != null && applicationId != -1) {
Application application = applicationManager.getApplication(applicationId);
if (application != null && application.getGroup() == groupToDisplay){
applicationToDisplay = application;
}
}
// application selection
Set<Application> applications = groupToDisplay.getApplications();
Hibernate.initialize(applications);
req.setAttribute("applications", applications);
listForm.setApplicationId(applicationToDisplay != null ? applicationToDisplay.getId() : -1);
// sorting