Skip to content
Snippets Groups Projects
Commit 5a6705f7 authored by Adrien Fryson's avatar Adrien Fryson
Browse files

fix

parent 77ac148c
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,7 @@ public class EnvoyerMessage extends HttpServlet { ...@@ -39,6 +39,7 @@ public class EnvoyerMessage extends HttpServlet {
String message = StringEscapeUtils.escapeHtml4(req.getParameter("contenu")); String message = StringEscapeUtils.escapeHtml4(req.getParameter("contenu"));
int filId = (int) req.getSession().getAttribute("filId"); int filId = (int) req.getSession().getAttribute("filId");
if (message == null || message.isEmpty()) { if (message == null || message.isEmpty()) {
res.sendRedirect(req.getContextPath() + "/fil?id=" + filId);
return; return;
} }
......
...@@ -15,9 +15,9 @@ public class DS { ...@@ -15,9 +15,9 @@ public class DS {
} }
public Connection getConnection() { public Connection getConnection() {
String url = "jdbc:postgresql://localhost:5432/postgres"; String url = "jdbc:postgresql://psqlserv/but2";
String login = "postgres"; String login = "adrienfrysonetu";
String pwd = ""; String pwd = "moi";
Connection con = null; Connection con = null;
try { try {
con = DriverManager.getConnection(url, login, pwd); con = DriverManager.getConnection(url, login, pwd);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment