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

fix

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