diff --git a/war/dump.jsp b/war/dump.jsp new file mode 100644 index 0000000..a9d7add --- /dev/null +++ b/war/dump.jsp @@ -0,0 +1,50 @@ +<%@ page contentType="text/html" %> +<%@ page import="java.sql.*" %> +<%@ page import="org.sqlite.*" %> + + + +
+id | +timestamp | +remotehost | +input | +size_x | +size_y | +simple | +result | + + + <% + Connection conn = + DriverManager.getConnection("jdbc:sqlite:" + getServletContext().getInitParameter("sqlite_db")); + Statement stat = conn.createStatement(); + + ResultSet rs = stat.executeQuery("select * from grids;"); + + while (rs.next()) { + out.println("
---|---|---|---|---|---|---|---|
" + rs.getString("id") + " | "); + out.println("" + rs.getString("ts") + " | "); + out.println("" + rs.getString("remotehost") + " | "); + out.println("" + rs.getString("input") + " | ");
+ out.println("" + rs.getInt("size_x") + " | "); + out.println("" + rs.getInt("size_y") + " | "); + out.println("" + rs.getInt("simple") + " | "); + out.println("" + rs.getString("result") + " | ");
+ out.println("