From d6cb2c15d7b450ba66e46eacdeea4bd2437068d7 Mon Sep 17 00:00:00 2001 From: Matthew Slowe Date: Fri, 29 May 2020 14:10:58 +0100 Subject: [PATCH] portable database location --- war/build.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/war/build.jsp b/war/build.jsp index 18bd516..ede213e 100755 --- a/war/build.jsp +++ b/war/build.jsp @@ -30,7 +30,7 @@ Collections.sort(words); Connection conn = DriverManager.getConnection( - "jdbc:sqlite:" + getServletContext().getInitParameter("sqlite_db")); + "jdbc:sqlite:" + getServletContext().getRealPath("/WEB-INF/files/database.sqlite")); PreparedStatement stmt = conn.prepareStatement( "INSERT INTO grids (remotehost, input, size_x, size_y, simple) VALUES (?, ?, ?, ?, ?)", Statement.RETURN_GENERATED_KEYS);