Strabon

view endpoint/WebContent/connection.jsp @ 1421:b1ad88fdf4a6

added log4j.properties to endpoint-client; corrected test that using geof:getSRID() with a strdf:transform function with an input a geo:wktLiteral constant; in such a case we cannot return CRS84 simply because strdf:transform creates strdf:WKT datatypes for which the default CRS is EPSG:4326
author Babis Nikolaou <charnik@di.uoa.gr>
date Tue Sep 23 13:16:47 2014 +0300 (2014-09-23)
parents 845e3fbd310e
children f287cc1b8b99
line source
1 <jsp:directive.page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"/>
2 <jsp:directive.page import="eu.earthobservatory.org.StrabonEndpoint.Common"/>
3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 <html>
5 <head>
6 <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
7 <link rel="stylesheet" href="style.css" type="text/css" />
9 <script type="text/javascript">
10 function toggleMe(a) {
11 var e = document.getElementById(a);
12 if (!e) {
13 return true;
14 }
15 if (e.style.display == "none") {
16 e.style.display = "block";
17 } else {
18 e.style.display = "none";
19 }
20 return true;
21 }
22 </script>
24 <style type="text/css">
25 /*demo page css*/
26 body{ font: 90% "Trebuchet MS", sans-serif; margin: 50px;}
27 .container { height:410px; width:165px;}
28 .demoHeaders { margin-top: 1em;}
29 #dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
30 #dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
31 ul#icons {margin: 0; padding: 0;}
32 ul#icons li {margin: 1px; position: relative; padding: 1px 0; cursor: pointer; float: left; list-style: none;}
33 ul#icons span.ui-icon {float: left; margin: 0 1px;}
34 </style>
35 <title>Strabon Endpoint</title>
36 </head>
37 <body topmargin="0" leftmargin="0" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
39 <!-- include TELEIOS header and description -->
40 <jsp:include page="header.html"/>
41 <!-- include TELEIOS header and description -->
43 <FORM method=POST enctype="UTF-8" accept-charset="UTF-8" action="DBConnect">
44 <input type="hidden" name="query" value="<%=request.getAttribute("query")%>"/>
45 <input type="hidden" name="handle" value="<%=request.getAttribute("handle")%>"/>
46 <input type="hidden" name="format" value="<%=request.getAttribute("format")%>"/>
47 <TABLE class="style4">
48 <% if (request.getAttribute("error") != null) {%>
49 <!-- Error Message -->
50 <TR><TD colspan=2>
51 <CENTER><P style="color: red;"><%=request.getAttribute("error") %></P></CENTER>
52 </TD></TR>
53 <!-- Error Message -->
54 <%}%>
56 <%if (request.getAttribute("info") != null) { %>
57 <!-- Info Message -->
58 <TR><TD colspan=2>
59 <CENTER><P><%=request.getAttribute("info") %></P></CENTER>
60 </TD></TR>
61 <!-- Info Message -->
62 <%}%>
63 <tr>
64 <td colspan=2 id="output">
65 <div style="font-size:13px">
66 You must be logged in to change configuration, or run in localhost.
67 </div>
68 </td>
69 </tr>
70 <TR>
71 <TD valign="top" class="style4">Database Name:</TD>
72 <TD><input type="text" name="dbname" value="<%=request.getAttribute("dbname")%>"/></TD>
73 </TR>
74 <TR>
75 <TD valign="top" class="style4">Username:</TD>
76 <TD><input type="text" name="username" value="<%=request.getAttribute("username")%>"/></TD>
77 </TR>
78 <TR>
79 <TD valign="top" class="style4">Password:</TD>
80 <TD><input type="password" name="password" value="<%=request.getAttribute("password")%>"/></TD>
81 </TR>
82 <TR>
83 <TD valign="top" class="style4">Port:</TD>
84 <TD><input type="text" name="port" value="<%=request.getAttribute("port")%>"/></TD>
85 </TR>
86 <TR>
87 <TD valign="top" class="style4">Hostname:</TD>
88 <TD><input type="text" name="hostname" value="<%=request.getAttribute("hostname")%>"/></TD>
89 </TR>
90 <TR>
91 <TD valign="top" class="style4">Database Backend:</TD>
92 <TD>
93 <SELECT name="dbengine">
94 <OPTION value="<%=Common.DBBACKEND_POSTGIS%>" <%=Common.DBBACKEND_POSTGIS.equals(request.getAttribute("dbengine")) ? "selected":""%>><%=Common.DBBACKEND_POSTGIS%></OPTION>
95 <OPTION value="<%=Common.DBBACKEND_MONETDB%>" <%=Common.DBBACKEND_MONETDB.equals(request.getAttribute("dbengine")) ? "selected":""%>><%=Common.DBBACKEND_MONETDB%></OPTION>
96 </SELECT>
97 </TD>
98 </TR>
99 <TR>
100 <TD colspan=2><input type="submit" value="Connect"/></TD>
101 </TR>
102 </TABLE>
104 </FORM>
105 <br/><br/><br/><br/><br/>
106 </BODY>
107 </HTML>