Strabon

changeset 740:e52271f13b5a

Changed browsing when a # is contained, because it was not displayed correctly.
author Stella Giannakopoulou <sgian@di.uoa.gr>
date Mon Nov 26 19:26:52 2012 +0200 (2012-11-26)
parents 5b260cc9dc30
children 5c5de0ec6b45 3e360dce98ef
files endpoint/WebContent/browse.jsp resultio-spatial/sparqlhtml/src/main/java/org/openrdf/query/resultio/sparqlhtml/stSPARQLResultsHTMLWriter.java
line diff
     1.1 --- a/endpoint/WebContent/browse.jsp	Mon Nov 26 14:17:56 2012 +0200
     1.2 +++ b/endpoint/WebContent/browse.jsp	Mon Nov 26 19:26:52 2012 +0200
     1.3 @@ -1,4 +1,4 @@
     1.4 -<%@page import="java.net.URLEncoder"%>
     1.5 +<%@page import="java.net.URLDecoder"%>
     1.6  <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
     1.7  <%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
     1.8  <%@page import="org.springframework.web.context.WebApplicationContext"%>
     1.9 @@ -69,8 +69,8 @@
    1.10        </TD>
    1.11  	</TR>
    1.12  </TABLE>
    1.13 -	<h1>About: </h1>
    1.14 -	<a href=""><%=request.getAttribute("resource")%></a>
    1.15 +	<h1>About: </h1>	
    1.16 +	<a href="#"><%=URLDecoder.decode(request.getAttribute("resource").toString(), "UTF-8")%></a>
    1.17  	<div id="response">
    1.18  		<!-- Response -->	
    1.19  		<% if (request.getAttribute("response") != null) {
     2.1 --- a/resultio-spatial/sparqlhtml/src/main/java/org/openrdf/query/resultio/sparqlhtml/stSPARQLResultsHTMLWriter.java	Mon Nov 26 14:17:56 2012 +0200
     2.2 +++ b/resultio-spatial/sparqlhtml/src/main/java/org/openrdf/query/resultio/sparqlhtml/stSPARQLResultsHTMLWriter.java	Mon Nov 26 19:26:52 2012 +0200
     2.3 @@ -139,7 +139,7 @@
     2.4  								         "(?object = <"+ boundValue.toString()+ ">)) " +  
     2.5  								"}";
     2.6  						
     2.7 -						String href = "Browse?view=HTML&query="+URLEncoder.encode(query, "UTF-8")+"&format=HTML&resource="+boundValue.toString();						
     2.8 +						String href = "Browse?view=HTML&query="+URLEncoder.encode(query, "UTF-8")+"&format=HTML&resource="+URLEncoder.encode(boundValue.toString(), "UTF-8");						
     2.9  						xmlWriter.setAttribute(LINK_REF, href);
    2.10  						xmlWriter.startTag(LINK);							
    2.11  						xmlWriter.text(boundValue.toString());