Commit 397c8268 by Emanuel Lugo

error fixed in logout

parent e95d9f69
...@@ -78,8 +78,7 @@ public class LoginServlet extends HttpServlet { ...@@ -78,8 +78,7 @@ public class LoginServlet extends HttpServlet {
catch (Exception ignored) { } catch (Exception ignored) { }
// Si no es posible redireccionar a la pagina solicitada, llevar a la main page // Si no es posible redireccionar a la pagina solicitada, llevar a la main page
response.sendRedirect(request.getScheme() + "://" + RequestDispatcher rd = request.getRequestDispatcher("/index.jsp");
request.getServerName() + ":" + request.getServerPort());
} else { } else {
......
...@@ -33,7 +33,7 @@ public class LogoutServlet extends HttpServlet { ...@@ -33,7 +33,7 @@ public class LogoutServlet extends HttpServlet {
response.setContentType("text/html"); response.setContentType("text/html");
PrintWriter out = response.getWriter(); PrintWriter out = response.getWriter();
out.print("Has cerrado tu sesion !"); //out.print("Has cerrado tu sesion !");
request.getRequestDispatcher("index.html").include(request,response); request.getRequestDispatcher("index.html").include(request,response);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment