Strabon

changeset 1139:a44d927e8070

describe.jsp remembers the format
author Stella Giannakopoulou <sgian@di.uoa.gr>
date Tue Apr 30 14:21:33 2013 +0300 (2013-04-30)
parents 148e7194be4b
children 6ba723d60c7d
files endpoint/WebContent/describe.jsp
line diff
     1.1 --- a/endpoint/WebContent/describe.jsp	Tue Apr 30 14:12:00 2013 +0300
     1.2 +++ b/endpoint/WebContent/describe.jsp	Tue Apr 30 14:21:33 2013 +0300
     1.3 @@ -32,6 +32,15 @@
     1.4  		{
     1.5  			handle = (String) request.getAttribute("handle");
     1.6  			
     1.7 +		}
     1.8 +		
     1.9 +		String selFormat = "RDF/XML";
    1.10 +		if (request.getParameter("format") != null) {
    1.11 +			selFormat = request.getParameter("format");
    1.12 +			
    1.13 +		} else if (request.getAttribute("format") != null) {
    1.14 +			selFormat = (String) request.getAttribute("format");
    1.15 +			
    1.16  		}%>
    1.17  	</head>
    1.18  <body topmargin="0" leftmargin="0" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
    1.19 @@ -61,7 +70,7 @@
    1.20  <td id="output"><center>Output Format:<br/>
    1.21  <SELECT name="format" title="select one of the following RDF graph format types">
    1.22  	<% for (String format : Common.registeredFormats) {%>
    1.23 -		<OPTION value="<%=format%>"><%=format%></OPTION>
    1.24 +		<OPTION value="<%=format%>"<%=format.equals(selFormat) ? "selected":""%>><%=format%></OPTION>
    1.25  	<%}%>
    1.26  </SELECT></center></td>
    1.27  <td colspan=2><br/>