public static void adminReport() { /** * A logged in User should not be able to access this page inadvertently by knowing the URL. In * Administrator Controller, when an admin signs in, I wrote a key of "logged_in_adminid" to the * session. Check here to be safe */ if (session.contains("logged_in_adminid") == false) { Administrator.login(); } else { /** get lists of all Users and Candidates in the system and pass to html to create tables */ List<User> users = User.findAll(); List<Candidate> candidates = Candidate.findAll(); render(users, candidates); } }