From badab0b5ae51bb4d3200270d4494f177f6754632 Mon Sep 17 00:00:00 2001 From: j2blake Date: Tue, 5 Nov 2013 18:25:06 -0500 Subject: [PATCH] Modify counter.jsp to use ModelAccess --- productMods/counter.jsp | 78 +++++++++++++++++++++-------------------- 1 file changed, 40 insertions(+), 38 deletions(-) diff --git a/productMods/counter.jsp b/productMods/counter.jsp index 51474cd0..59be7457 100644 --- a/productMods/counter.jsp +++ b/productMods/counter.jsp @@ -5,6 +5,8 @@ <%@ taglib uri="http://djpowell.net/tmp/sparql-tag/0.1/" prefix="sparql" %> <%@ taglib uri="http://jakarta.apache.org/taglibs/string-1.1" prefix="str" %> <%@ page import="java.net.URLDecoder" %> +<%@ page import="edu.cornell.mannlib.vitro.webapp.dao.ModelAccess"%> +<% request.setAttribute("jenaOntModel", ModelAccess.on(getServletContext()).getJenaOntModel()); %>
@@ -13,9 +15,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -34,9 +36,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -58,9 +60,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -84,9 +86,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -104,9 +106,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -127,9 +129,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -152,9 +154,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -172,9 +174,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -195,9 +197,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -220,9 +222,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -240,9 +242,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -260,9 +262,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -284,9 +286,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -304,9 +306,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -325,9 +327,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -349,9 +351,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -376,9 +378,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -404,9 +406,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: @@ -429,9 +431,9 @@ - + - + PREFIX rdfs: PREFIX rdf: PREFIX akt: