%@ 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("