%@ page import="javax.naming.*,java.sql.*,javax.sql.*,java.util.*,com.genedavis.magazine.*" %> <% //hits test String insert = "INSERT INTO hits (url, created) VALUES (?, now());"; InitialContext icgb = new InitialContext(); DataSource dsgb = (DataSource) icgb.lookup("java:comp/env/jdbc/pooledGlobalDbDS");//see /WEB-INF/web.xml Connection glblConn = dsgb.getConnection(); PreparedStatement psgb = glblConn.prepareStatement( insert ); psgb.setString(1, request.getRequestURL().toString()); psgb.execute(); psgb.close(); glblConn.close(); %>
<%@ include file="./jnlp_check.js" %>
You can also upgrade to the full version when you want from inside the game software.