Commit 397c8268 by Emanuel Lugo

error fixed in logout

parent e95d9f69
......@@ -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 {
......
......@@ -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);
......
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