<%@ page import="model.User" %> <%@ page import="model.Service" %> <%@ page import="java.util.List" %> <% boolean isUserLogged; try { isUserLogged = Boolean.parseBoolean(request.getAttribute("isUserLogged").toString()); } catch (NullPointerException e){ isUserLogged = false; } User usuario = (User) request.getAttribute("User"); String serverResponse = (String) request.getAttribute("serverResponse"); List serviceList = (List) request.getAttribute("servicesList"); if (serverResponse == null) serverResponse = "!"; %> Inicio - Hotel Service <% if(!isUserLogged){ %>

Hotel Services


Bienvenido! Inicia Sesion para empezar.

Con Google:



Desarrollado por:
Fernando Araoz, 20173373
Jose Rodriguez, 20101650
Gustavo Turpo, 20173374
<% } else { %>

Inicio

<%if (!serverResponse.equals("!")){ %>
<% } %>

Bienvenido <%=usuario.getName()%>.
<% if (Boolean.parseBoolean(request.getAttribute("hasAccess").toString())){ %>
how_to_reg Ir al Area de Empleados
<% } %>
Contrata un Servicio:
<% for (Service service: serviceList) {%>
<%=service.getName()%>
<%=service.getDescription()%>
<%=service.getPrice()%> S/.     add_shopping_cart Comprar

<% } %>

<% } %>