Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
UyTube_obligatorio_PdA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Juan José Álvarez Pérez
UyTube_obligatorio_PdA
Commits
48f4e99c
Commit
48f4e99c
authored
5 years ago
by
Lucas Garrido
Browse files
Options
Downloads
Patches
Plain Diff
Solucion de imagenes en el menu-usuario
parent
40ace473
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
UyTube_web/src/java/com/uytube/IniciarSesion.java
+2
-0
2 additions, 0 deletions
UyTube_web/src/java/com/uytube/IniciarSesion.java
UyTube_web/web/include/header-usuario.html
+1
-1
1 addition, 1 deletion
UyTube_web/web/include/header-usuario.html
with
3 additions
and
1 deletion
UyTube_web/src/java/com/uytube/IniciarSesion.java
+
2
−
0
View file @
48f4e99c
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
UyTube_web/web/include/header-usuario.html
+
1
−
1
View file @
48f4e99c
...
...
@@ -27,7 +27,7 @@ and open the template in the editor.
<
%=
session.getAttribute
("
usuario
")%
>
</div>
<div>
<img
id=
"fotoPerfil"
src=
"im
a
gen
es/homero.jpg"
alt=
"Perfil"
>
<img
id=
"fotoPerfil"
src=
<%=
session.getAttribute
(
"
imgen
")
%
>
alt="Perfil">
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment