<%@ page import="model.Role" %> <%@ page import="model.User" %> <%@ page import="java.util.List" %><%-- Created by IntelliJ IDEA. User: Fernando Date: 07/06/2018 Time: 16:39 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <% User usuario = (User) request.getAttribute("User"); %> <% List roleList = (List) request.getAttribute("RoleList");%> Roles - Hotel Services

Roles

addCreate

<% for (int i = 0; i < roleList.size(); i++) {%> <% Role role = roleList.get(i); %> <% String key = role.getKey(); String[] arr = key.split(""); key = ""; for (String a : arr) { if (a.equals("\"")){ key += """; } else{ key += a; } } %> <% } %>
Name Status Date created Actions
<%= role.getName()%> <%= role.getStatus()%> <%= role.getCreateDate()%> View | Edit | Delete