Commit 964858bd by Yovan Martinez

integrado el menu de login

parent 610b1186
...@@ -10,7 +10,7 @@ public class DataBase { ...@@ -10,7 +10,7 @@ public class DataBase {
try{ try{
Class.forName("org.postgresql.Driver"); Class.forName("org.postgresql.Driver");
con= DriverManager con= DriverManager
.getConnection("jdbc:postgresql://localhost:5432/bootcamp_th", .getConnection("jdbc:postgresql://localhost:5433/bootcamp_th",
"postgres", "postgres"); "postgres", "postgres");
if(con != null){ if(con != null){
......
...@@ -78,7 +78,7 @@ public class LoginServlet extends HttpServlet { ...@@ -78,7 +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
RequestDispatcher rd = request.getRequestDispatcher("menu.html"); RequestDispatcher rd = request.getRequestDispatcher("menu.jsp");
rd.include(request,response); rd.include(request,response);
} else { } else {
......
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