Skip to content
Snippets Groups Projects
Commit 48f4e99c authored by Lucas Garrido's avatar Lucas Garrido
Browse files

Solucion de imagenes en el menu-usuario

parent 40ace473
No related branches found
No related tags found
No related merge requests found
......@@ -90,8 +90,10 @@ public class IniciarSesion extends HttpServlet {
if(sys.iniciarSesionUsuario(paramUser, paramPassword) && sesion.getAttribute(paramUser) == null){
String nick = sys.obtenerUsuarioActual().getNickname();
String img = sys.obtenerUsuarioActual().getImagen();
//si coincide usuario y password y además no hay sesión iniciada
sesion.setAttribute("usuario", nick);
sesion.setAttribute("imgen", img);
//redirijo a página con información de login exitoso
rd = request.getRequestDispatcher("/Presentacion.jsp");
}else{
......
......@@ -27,7 +27,7 @@ and open the template in the editor.
<%= session.getAttribute("usuario")%>
</div>
<div>
<img id="fotoPerfil" src="imagenes/homero.jpg" alt="Perfil">
<img id="fotoPerfil" src=<%= session.getAttribute("imgen") %> alt="Perfil">
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment