Strabon

annotate endpoint/WebContent/store.jsp @ 281:21e67e71f209

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