%@ page import="model.User" %>
<% 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");
if (serverResponse == null) serverResponse = "!";
%>
Home - Hotel Service
<% if(!isUserLogged){ %>
Hotel Services
Developed by:
Fernando Araoz, 20173373
Jose Rodriguez, 20101650
Gustavo Turpo, 20173374
<% } else { %>
Home
<%if (!serverResponse.equals("!")){ %>
<% } %>
Welcome, <%=usuario.getName()%>.
Here's some data:
Your name: <%=usuario.getName()%>
Your email: <%=usuario.getEmail()%>
Your Role: <%=usuario.getRoleName()%>
how_to_regEmpleados
<% } %>