Strabon
changeset 511:b0437d20216c
replaced scriplets in describe.jsp by JSTL/EL expressions
author | Babis Nikolaou <charnik@di.uoa.gr> |
---|---|
date | Thu Jul 26 15:54:15 2012 +0300 (2012-07-26) |
parents | 9ad5fecacad6 |
children | 4fb3d66649b6 c0f472b25d80 |
files | endpoint/WebContent/describe.jsp endpoint/WebContent/store.jsp |
line diff
1.1 --- a/endpoint/WebContent/describe.jsp Thu Jul 26 15:47:35 2012 +0300 1.2 +++ b/endpoint/WebContent/describe.jsp Thu Jul 26 15:54:15 2012 +0300 1.3 @@ -1,6 +1,6 @@ 1.4 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 1.5 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 1.6 -<jsp:directive.page import="eu.earthobservatory.org.StrabonEndpoint.Common"/> 1.7 +<jsp:useBean id="commonBean" class="eu.earthobservatory.org.StrabonEndpoint.Common" scope="application"/> 1.8 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 1.9 <html> 1.10 <head> 1.11 @@ -26,11 +26,11 @@ 1.12 <body topmargin="0" leftmargin="0" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF"> 1.13 1.14 <!-- include TELEIOS header and description --> 1.15 -<%@ include file="teleios-header.html"%> 1.16 +<jsp:include page="teleios-header.html"/> 1.17 <!-- include TELEIOS header and description --> 1.18 1.19 <FORM enctype="UTF-8" accept-charset="UTF-8" method="post" action="Describe"> 1.20 -<input type="hidden" name="<%=Common.VIEW%>" value="<%=Common.VIEW_TYPE%>"> 1.21 +<input type="hidden" name="${commonBean.view}" value="${commonBean.viewType}"> 1.22 1.23 <table border="0" width="100%"><tr> 1.24 <td width="90" valign="top" class="style4"> 1.25 @@ -48,9 +48,9 @@ 1.26 <tr> 1.27 <td id="output"><center>Output Format:<br/> 1.28 <SELECT name="format" title="select one of the following RDF graph format types"> 1.29 - <% for (String format : Common.registeredFormats) {%> 1.30 - <OPTION value="<%=format%>"><%=format%></OPTION> 1.31 - <%}%> 1.32 + <c:forEach var="format" items="${commonBean.registeredFormats}"> 1.33 + <OPTION value="${format}">${format}</OPTION> 1.34 + </c:forEach> 1.35 </SELECT></center></td> 1.36 <td colspan=2><br/> 1.37 <center>
2.1 --- a/endpoint/WebContent/store.jsp Thu Jul 26 15:47:35 2012 +0300 2.2 +++ b/endpoint/WebContent/store.jsp Thu Jul 26 15:54:15 2012 +0300 2.3 @@ -67,11 +67,9 @@ 2.4 <td rowspan=4 id="output"> 2.5 <CENTER>RDF Format:<br/> 2.6 <SELECT name="format"> 2.7 - 2.8 <c:forEach var="format" items="${commonBean.registeredFormats}"> 2.9 <OPTION value="${format}">${format}</OPTION> 2.10 </c:forEach> 2.11 - 2.12 </SELECT> 2.13 </CENTER> 2.14 </td>