<%@ page contentType="text/html" %> <%@ page import="java.sql.*" %> <%@ page import="org.sqlite.*" %> SQLite Demo <% 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(""); out.println(""); out.println(""); out.println(""); out.println(""); out.println(""); out.println(""); out.println(""); out.println(""); out.println(""); } rs.close(); conn.close(); %>
id timestamp remotehost input size_x size_y simple result
" + rs.getString("id") + "" + rs.getString("ts") + "" + rs.getString("remotehost") + "
" + rs.getString("input") + "
" + rs.getInt("size_x") + "" + rs.getInt("size_y") + "" + rs.getInt("simple") + "
" + rs.getString("result") + "