<%@ page import="model.User" %> <%@ page import="model.Role" %> <%-- Created by IntelliJ IDEA. User: Fernando Date: 07/06/2018 Time: 16:39 To change this template use File | Settings | File Templates. --%> <% User user = (User) request.getAttribute("User"); boolean editAllowed = (Boolean) request.getAttribute("editAllowed"); String action = (String) request.getAttribute("action");%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%=action%> a User Datos del usuario:

<% if (editAllowed) {%>
Nombre:


Email:


Imagen de perfil


Rol



<% } else {%>

Nombre: <%=user.getName()%>
Email: <%=user.getEmail()%>
Rol: <%= user.getRole()%>
<% } %> Eso es todo :c