@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"); }
@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; }