%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page import="model.*"%> <%@ page import="java.util.List"%> <% User user = (User) request.getAttribute("User"); %> <% List roles = (List)request.getAttribute("roles"); List resourses = (List)request.getAttribute("resources"); %> Add an access - Hotel Services Hotel Services <%= user.getName()%> arrow_drop_down Log Out arrow_drop_up GitHub icon Roles Users Resources Access | Services | Show Services Roles Users Resources Access Add an Access info_outline The admin Role has full access by default. Role: <% if(roles.size() > 0) {%> Choose a Role <% for (Role r: roles) { %> <%= r.getName() %> <% } %> <% } else {%> No Roles registered. <% } %> Resource: <% if (resourses.size() > 0) { %> Choose a Resource <% for (Resource res: resourses) { %> <%= res.getUrl() %> <% } %> <% } else { %> No Resources registered. <% } %> Submit send arrow_backGo Back