<% User user = session.getAttribute("User"); if(user == null) { // redirect to // the logon page… } if(!user.role.equals("manager")) { // redirect to the // "unauthorized" page… } %>
<!- HTML, javascript, and JSP code to display data and allow user interaction -->