Newer
Older
jetty / web / create-account.jsp
Mark George on 28 Sep 2017 716 bytes Initial commit.
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.sql.*" %>
<%@page import="org.h2.jdbcx.JdbcConnectionPool" %>
<!DOCTYPE html>
<html>
   
   <%
     final String url = "jdbc:h2:tcp://localhost/~/work/projects/injection/db/users;IFEXISTS=TRUE";
     
     final String username = "admin";
     final String password = "sooper_dooper_sekret";
     JdbcConnectionPool dbPool = JdbcConnectionPool.create(url, username, password);
     Connection conn = dbPool.getConnection();
   %>
   
   
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>Whoops</title>
   </head>
   <body>
      <h1>

      </h1>
   </body>
</html>