Пример #1
0
 @DefaultHandler
 public Resolution list() {
   songs = musicFacade.getAllSongs();
   albums = musicFacade.getAllAlbums();
   genres = musicFacade.getAllGenres();
   artists = musicFacade.getAllArtists();
   HttpSession session = getContext().getRequest().getSession();
   playlists = musicFacade.getPlaylistsByAccount((String) session.getAttribute("username"));
   return new ForwardResolution("/song/list.jsp");
 }
Пример #2
0
 @Override
 public Resolution handleValidationErrors(ValidationErrors errors) throws Exception {
   songs = musicFacade.getAllSongs();
   albums = musicFacade.getAllAlbums();
   genres = musicFacade.getAllGenres();
   artists = musicFacade.getAllArtists();
   HttpSession session = getContext().getRequest().getSession();
   playlists = musicFacade.getPlaylistsByAccount((String) session.getAttribute("username"));
   return null;
 }