Project

General

Profile

« Previous | Next » 

Revision 50

Added by Matt Jones about 24 years ago

changed database connection code, added utility class MetaCatUtil.java

View differences:

contents.html
22 22
Simple database query against MetaCat<br>
23 23
<form action="/servlets/MetaCatServlet" target="right" method="POST">
24 24
  <input type="hidden" name="action" value="query">
25
  <input type="text" name="query" size="15">
25
  <input type="text" name="query" value="Value1" size="15">
26 26
  <input type="submit" value="Run query">
27 27
  <br />
28
  <input type="checkbox" name="convert" value="true">Results in HTML
28
  Format: 
29
  <input type="radio" name="qformat" value="xml">XML
30
  <input type="radio" name="qformat" value="html" checked>HTML
29 31
</form>
30 32
<p>
31
<a href="/servlets/MetaCatServlet?action=getdocument&docid=1" 
32
   target="right">Test Document Display (1)</a><br>
33
<a href="/servlets/MetaCatServlet?action=getdocument&docid=31" 
34
   target="right">Test Document Display (31)</a>
33
For the test database, some valid values for the search that produce document
34
results include "Value1" and "lakename"
35
</p>
36
<p>
37
To view results that are XML formatted in this demo, it is easiest to use 
38
Internet Explorer 5. Although Netscape browsers will allow you to 
39
download XML documents, only IE5 will display XML at this time.
35 40
</body>
36 41
</html>

Also available in: Unified diff