Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
ProyectoFinal-Bootcamp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jose Baez
ProyectoFinal-Bootcamp
Commits
397c8268
Commit
397c8268
authored
May 15, 2022
by
Emanuel Lugo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error fixed in logout
parent
e95d9f69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
src/main/java/com/roshka/proyectofinal/login/LoginServlet.java
+1
-2
src/main/java/com/roshka/proyectofinal/login/LogoutServlet.java
+1
-1
No files found.
src/main/java/com/roshka/proyectofinal/login/LoginServlet.java
View file @
397c8268
...
...
@@ -78,8 +78,7 @@ public class LoginServlet extends HttpServlet {
catch
(
Exception
ignored
)
{
}
// Si no es posible redireccionar a la pagina solicitada, llevar a la main page
response
.
sendRedirect
(
request
.
getScheme
()
+
"://"
+
request
.
getServerName
()
+
":"
+
request
.
getServerPort
());
RequestDispatcher
rd
=
request
.
getRequestDispatcher
(
"/index.jsp"
);
}
else
{
...
...
src/main/java/com/roshka/proyectofinal/login/LogoutServlet.java
View file @
397c8268
...
...
@@ -33,7 +33,7 @@ public class LogoutServlet extends HttpServlet {
response
.
setContentType
(
"text/html"
);
PrintWriter
out
=
response
.
getWriter
();
out
.
print
(
"Has cerrado tu sesion !"
);
//
out.print("Has cerrado tu sesion !");
request
.
getRequestDispatcher
(
"index.html"
).
include
(
request
,
response
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment