diff --git a/webapp/src/main/webapp/error.jsp b/webapp/src/main/webapp/error.jsp index 93561b59fc..4bd25405cf 100755 --- a/webapp/src/main/webapp/error.jsp +++ b/webapp/src/main/webapp/error.jsp @@ -8,7 +8,7 @@ <%@page import="org.apache.commons.logging.Log"%> <%@page import="org.apache.commons.logging.LogFactory"%> <% -// We have seen that this page can throw its own error. + // We have seen that this page can throw its own error. // Before it does so, be sure that we have written the original error to the log. Object c = request.getAttribute("javax.servlet.jsp.jspException"); if (c instanceof Throwable) { @@ -18,15 +18,15 @@ } - VitroRequest vreq = new VitroRequest(request); - ApplicationBean appBean = vreq.getAppBean(); - String themeDir = appBean.getThemeDir(); + VitroRequest vreq = new VitroRequest(request); + ApplicationBean appBean = vreq.getAppBean(); + String themeDir = appBean.getThemeDir(); - request.setAttribute("bodyJsp", "/errorbody.jsp"); - request.setAttribute("title", "Error"); - request.setAttribute("css", ""); - request.setAttribute("themeDir", themeDir); -%> + request.setAttribute("bodyJsp", "/errorbody.jsp"); + request.setAttribute("title", "Error"); + request.setAttribute("css", ""); + request.setAttribute("themeDir", themeDir); + %> diff --git a/webapp/src/main/webapp/jenaIngest/csv2rdfSelectUri.jsp b/webapp/src/main/webapp/jenaIngest/csv2rdfSelectUri.jsp index b3f3f88d96..322abb0aeb 100644 --- a/webapp/src/main/webapp/jenaIngest/csv2rdfSelectUri.jsp +++ b/webapp/src/main/webapp/jenaIngest/csv2rdfSelectUri.jsp @@ -54,11 +54,10 @@ function disableProperties(){ Use pattern based on values of - <% - Map> propertyMap = (Map) request.getAttribute("propertyMap"); - Set>> set = propertyMap.entrySet(); - Iterator>> itr = set.iterator(); - Entry> entry = null; + <% Map> propertyMap = (Map) request.getAttribute("propertyMap"); + Set>> set = propertyMap.entrySet(); + Iterator>> itr = set.iterator(); + Entry> entry = null; %> <% - OntModel jenaOntModel = ModelAccess.on(getServletContext()).getOntModel(); + OntModel jenaOntModel = ModelAccess.on(getServletContext()).getOntModel(); jenaOntModel.enterCriticalSection(Lock.READ); try { List savedQueries = (List) request.getAttribute("workflows"); - for (Iterator it = savedQueries.iterator(); it.hasNext();) { - Individual savedQuery = (Individual) it.next(); + for (Iterator it = savedQueries.iterator(); it.hasNext();) { + Individual savedQuery = (Individual) it.next(); String queryURI = savedQuery.getURI(); String queryLabel = savedQuery.getLabel(null); - %> <% + %> <% } } finally { jenaOntModel.leaveCriticalSection(); diff --git a/webapp/src/main/webapp/jenaIngest/merge_result.jsp b/webapp/src/main/webapp/jenaIngest/merge_result.jsp index 540441974b..1a6e73d207 100644 --- a/webapp/src/main/webapp/jenaIngest/merge_result.jsp +++ b/webapp/src/main/webapp/jenaIngest/merge_result.jsp @@ -13,7 +13,7 @@

Ingest Menu > Merge Individuals

<% -MergeResult resultObj = (MergeResult) request.getAttribute("result"); + MergeResult resultObj = (MergeResult) request.getAttribute("result"); String result = resultObj.getResultText(); %> diff --git a/webapp/src/main/webapp/jenaIngest/permanentURI.jsp b/webapp/src/main/webapp/jenaIngest/permanentURI.jsp index 013f03567a..9157d9991e 100644 --- a/webapp/src/main/webapp/jenaIngest/permanentURI.jsp +++ b/webapp/src/main/webapp/jenaIngest/permanentURI.jsp @@ -29,14 +29,13 @@ URIs exactly of the form created through the GUI interface.

Current namespace of resources Use pattern based on values of - <% - Map> propertyMap = (Map) request.getAttribute("propertyMap"); - Set>> set = propertyMap.entrySet(); - Iterator>> itr = set.iterator(); - Entry> entry = null; + <% Map> propertyMap = (Map) request.getAttribute("propertyMap"); + Set>> set = propertyMap.entrySet(); + Iterator>> itr = set.iterator(); + Entry> entry = null; %> <%if(itr.hasNext()){%> <% - OntModel jenaOntModel = ModelAccess.on(getServletContext()).getOntModel(); - jenaOntModel.enterCriticalSection(Lock.READ); - try { - List savedQueries = (List) request.getAttribute("savedQueries"); - for (Iterator it = savedQueries.iterator(); it.hasNext();) { - Individual savedQuery = (Individual) it.next(); - String queryURI = savedQuery.getURI(); - String queryLabel = savedQuery.getLabel(null); - %> + OntModel jenaOntModel = ModelAccess.on(getServletContext()).getOntModel(); + jenaOntModel.enterCriticalSection(Lock.READ); + try { + List savedQueries = (List) request.getAttribute("savedQueries"); + for (Iterator it = savedQueries.iterator(); it.hasNext();) { + Individual savedQuery = (Individual) it.next(); + String queryURI = savedQuery.getURI(); + String queryLabel = savedQuery.getLabel(null); + %> <% - } - } finally { - jenaOntModel.leaveCriticalSection(); - } - %> + } + } finally { + jenaOntModel.leaveCriticalSection(); + } + %>