Project

General

Profile

« Previous | Next » 

Revision 3780

Added by daigle about 16 years ago

Changes to remove ANT tokens for the turnkey install project

View differences:

loadxml.html
1 1
<!--
2
 /**
2 3
  *  '$RCSfile$'
3
  *      Authors: Matt Jones
4
  *    Copyright: 2000 Regents of the University of California and the
4
  *    Copyright: 2008 Regents of the University of California and the
5 5
  *               National Center for Ecological Analysis and Synthesis
6 6
  *  For Details: http://www.nceas.ucsb.edu/
7 7
  *
8 8
  *   '$Author$'
9 9
  *     '$Date$'
10 10
  * '$Revision$'
11
  * 
12
  * This is an HTML document for loading an xml document into Oracle
13 11
  *
14 12
  * This program is free software; you can redistribute it and/or modify
15 13
  * it under the terms of the GNU General Public License as published by
......
24 22
  * You should have received a copy of the GNU General Public License
25 23
  * along with this program; if not, write to the Free Software
26 24
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
-->
28
<html>
25
  *
26
  */
27
  -->
28
  
29
<!-- *  Does a redirect to jsp loadxml page * -->
30
  
31
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
32
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
33
  
34
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
29 35
<head>
30
<title>MetaCat</title>
31
<link rel="stylesheet" type="text/css" href="./rowcol.css">
36
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
37
<script language="JavaScript">
38
// redirect any requests to this loadxml.html page to loadxml.jsp 
39
function doRedirectWithParams() {
40
  var fullURL = unescape(document.location);
41
  //params are to the right of the ? in the URL
42
  var start = fullURL.indexOf("?");
43
  var params = "";
44
  if (start > 0) params = fullURL.substring(start,fullURL.length);
45
  // the ant build script will substitute the tokens in below that are wrapped in '@ ... @'
46
  document.location.href="./loadxml.jsp" + params;
47
}
48
</script>
32 49
</head>
33
<body class="emlbody">
34
<b>MetaCat XML Loader</b>
35
<p>
36
Upload, Change, or Delete an XML document using this form.
37
</p>
38
<form action="@servlet-path@" target="right" method="POST">
39
  <strong>1. Choose an action: </strong>
40
  <input type="radio" name="action" value="insert" checked> Insert
41
  <input type="radio" name="action" value="update"> Update
42
  <input type="radio" name="action" value="delete"> Delete
43
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="Process Action">
44
  <br />
45
  <strong>2. Provide a Document ID </strong>
46
  <input type="text" name="docid"> 
47
  &nbsp;&nbsp;&nbsp;
48
  <br />
49
  <strong>3. Provide XML text </strong> (not needed for Delete)
50
  <strong>
51
  <br />
52
  <textarea name="doctext" cols="65" rows="15"></textarea>
53
  <br />
54
  <strong>4. Provide DTD text for upload </strong> (optional; not needed for Delete)
55
  <br />
56
  <textarea name="dtdtext" cols="65" rows="15"></textarea>
57
  <br />
58
</form>
59
<p />
60
</body>
50
<body><script language="JavaScript">doRedirectWithParams()</script></body>
61 51
</html>
52

  

Also available in: Unified diff