Strabon

view endpoint/WebContent/store.jsp @ 404:19a1ab72bd51

declaration of store.jsp in web.xml and minor changes in store.jsp
author Babis Nikolaou <charnik@di.uoa.gr>
date Fri Jun 29 16:24:47 2012 +0300 (2012-06-29)
parents 8200fa66b6c0
children c3da25e03c13
line source
1 <jsp:directive.page import="eu.earthobservatory.org.StrabonEndpoint.StoreBean"/>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6 <link rel="stylesheet" href="style.css" type="text/css" />
7 <title>TELEIOS: Strabon Endpoint</title>
8 </head>
9 <body topmargin="0" leftmargin="0" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
10 <TABLE width="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>
11 <TR>
13 <TD height="16" background="images/pixi_white.gif"><img src="images/pixi_white.gif" width="16" height="16"></TD>
14 </TR>
15 <TR>
16 <TD height="1" background="images/top_bg_blue.gif"></TD>
17 </TR>
18 <TR>
19 <TD height="60" background="images/nav2_bg.gif">
20 <table width="100%" border="0">
21 <tr>
22 <td width="1"><img src="images/nav2_bg.gif" width="1" height="60"></td>
23 <td valign="top" width="80px"><img border="0" src="images/teleios_logo.png"/></td>
24 <td valign="top" align="left">
25 <span class="logo">Strabon Endpoint</span><br><span class="style4">based on Strabon</span></td>
26 </tr>
27 </table> </TD>
28 </TR>
29 <TR>
30 <TD height="21" background="images/nav1_bg1.gif">
31 </TD>
32 </TR>
33 <TR>
34 <TD height="2" background="images/top_bg_blue.gif"></TD>
35 </TR>
36 </TABLE>
38 <FORM method="get" action=Store>
39 <INPUT type=hidden name="<%=StoreBean.SRC_REQ%>" value="browser"/>
41 <TABLE border="0" width="100%">
42 <tr>
43 <td width="90" valign="top" bgcolor="#dfe8f0">
44 <TABLE border="0" cellspacing="0" cellpadding="0" width="165" id="navigation">
45 <tr><td width="90" class="style4"><a href="Query" class="navText">Query</a></td></tr>
46 <tr><td width="90" class="style4"><a href="javascript:history.go(0)" class="navText">Clear</a></td></tr>
47 </TABLE>
48 </td>
49 <td width="*" valign="top" >
50 <TABLE cellspacing="5">
51 <%
52 if (request.getParameter(StoreBean.DATA_ERROR) != null) {
53 %>
54 <TR><TD colspan=3>
55 <CENTER><P style="color: red;">No data provided!</P></CENTER>
56 </TD></TR>
57 <%
58 }
60 if (request.getParameter(StoreBean.FORMAT_ERROR) != null) {
61 %>
62 <TR><TD colspan=3>
63 <CENTER><P style="color: red;">Unknown RDF Format!</P></CENTER>
64 </TD></TR>
65 <%
66 }
68 if (request.getParameter(StoreBean.STORE_ERROR) != null) {
69 %>
70 <TR><TD colspan=3>
71 <CENTER><P style="color: red;">An error occurred while storing input data!</P></CENTER>
72 </TD></TR>
73 <%
74 }
76 if (request.getParameter(StoreBean.STORE_OK) != null) {
77 %>
78 <TR><TD colspan=3>
79 <CENTER><P>Data stored successfully!</P></CENTER>
80 </TD></TR>
81 <%
82 }
83 %>
84 <tr>
85 <!-- direct input form -->
86 <td id="output">Direct Input:</td>
87 <td id="output">
88 <textarea name="<%=StoreBean.PARAM_DATA%>" rows="15" cols="100"></textarea></td>
89 <td rowspan=4 id="output">
90 <CENTER>RDF Format:<br/>
91 <SELECT name="<%=StoreBean.PARAM_FORMAT%>">
92 <% for (String format : StoreBean.registeredFormats) {%>
93 <OPTION value="<%=format%>"><%=format%></OPTION>
94 <%}%>
95 </SELECT>
96 </CENTER>
97 </td>
98 </tr>
99 <tr>
100 <td colspan=2 id="output"><br/>
101 <CENTER>
102 <input type="submit" value="Store Input" name="<%=StoreBean.SUBMIT_INPUT%>" style="width: 400px"/>
103 </CENTER><br/>
104 </td>
105 </tr>
107 <tr>
108 <td id="output" >URI Input:</td>
109 <td id="output">
110 <textarea name="<%=StoreBean.PARAM_DATA_URL%>" rows="1" cols="100"></textarea>
111 </td>
112 </tr>
114 <tr>
115 <td colspan=2 id="output"><br/>
116 <CENTER>
117 <INPUT type="submit" value="Store from URI" name="<%=StoreBean.SUBMIT_URL%>" style="width: 400px"/>
118 </CENTER><br/>
119 </td>
120 </tr>
122 </TABLE>
123 </td>
124 </tr>
125 </TABLE>
126 </FORM>
127 <br/><br/><br/><br/><br/>
128 </BODY>
129 </HTML>