diff --git a/war/WEB-INF/View/Users/view.jsp b/war/WEB-INF/View/Users/view.jsp index b07451b..0e49460 100644 --- a/war/WEB-INF/View/Users/view.jsp +++ b/war/WEB-INF/View/Users/view.jsp @@ -1,3 +1,5 @@ +<%@ page import="model.User" %> +<%@ page import="model.Role" %> <%-- Created by IntelliJ IDEA. User: Fernando @@ -5,12 +7,54 @@ 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" %> - Title + <%=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 +