| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
<!-- |
| 3 |
Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, |
| 4 |
and the EPL 1.0 (https://h2database.com/html/license.html). |
| 5 |
Initial Developer: H2 Group |
| 6 |
--> |
| 7 |
<html><head> |
| 8 |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> |
| 9 |
<meta name="viewport" content="width=device-width, initial-scale=0.9" /> |
| 10 |
<title>${text.a.title}</title> |
| 11 |
<link rel="stylesheet" type="text/css" href="stylesheet.css" /> |
| 12 |
<script type="text/javascript"> |
| 13 |
if (self.name == 'h2result' || self.name == 'h2query' || self.name == 'h2menu') { |
| 14 |
parent.location = "login.jsp"; |
| 15 |
} |
| 16 |
</script> |
| 17 |
</head> |
| 18 |
<body style="margin: 20px"> |
| 19 |
<form name="login" method="post" action="login.do?jsessionid=${sessionId}" id="login"> |
| 20 |
<p> <select name="language" size="1" |
| 21 |
onchange="javascript:document.location='index.do?jsessionid=${sessionId}&language='+login.language.value;" |
| 22 |
> |
| 23 |
${languageCombo} |
| 24 |
</select> |
| 25 |
<a href="admin.do?jsessionid=${sessionId}">${text.login.goAdmin}</a> |
| 26 |
<!-- |
| 27 |
--> |
| 28 |
<a href="tools.jsp?jsessionid=${sessionId}">${text.a.tools}</a> |
| 29 |
<a href="help.jsp?jsessionid=${sessionId}">${text.a.help}</a> |
| 30 |
</p> |
| 31 |
<table class="login" cellspacing="0" cellpadding="0"> |
| 32 |
<tr class="login"> |
| 33 |
<th class="login">${text.login.login}</th> |
| 34 |
<th class="login"></th> |
| 35 |
</tr> |
| 36 |
<tr><td class="login" colspan="2"></td></tr> |
| 37 |
<tr class="login"> |
| 38 |
<td class="login">${text.login.savedSetting}:</td> |
| 39 |
<td class="login"> |
| 40 |
<select name="setting" size="1" |
| 41 |
style="width:300px" |
| 42 |
onchange="javascript:document.location='index.do?jsessionid=${sessionId}&setting='+login.setting.value;" |
| 43 |
> |
| 44 |
${settingsList} |
| 45 |
</select> |
| 46 |
</td> |
| 47 |
</tr> |
| 48 |
<tr class="login"> |
| 49 |
<td class="login">${text.login.settingName}:</td> |
| 50 |
<td class="login"> |
| 51 |
<input type="text" name="name" value="${name}" style="width:200px;" /> |
| 52 |
<input type="button" class="button" value="${text.login.save}" onclick="javascript:document.login.action='settingSave.do?jsessionid=${sessionId}';submit()" /> |
| 53 |
<input type="button" class="button" value="${text.login.remove}" onclick="javascript:document.login.action='settingRemove.do?jsessionid=${sessionId}';submit()" /> |
| 54 |
</td> |
| 55 |
</tr> |
| 56 |
<tr class="login"> |
| 57 |
<td class="login" colspan="2"> |
| 58 |
<hr /> |
| 59 |
</td> |
| 60 |
</tr> |
| 61 |
<tr class="login"> |
| 62 |
<td class="login">${text.login.driverClass}:</td> |
| 63 |
<td class="login"><input type="text" name="driver" value="${driver}" style="width:300px;" /></td> |
| 64 |
</tr> |
| 65 |
<tr class="login"> |
| 66 |
<td class="login"> |
| 67 |
<a href="#" onclick="var x=document.getElementById('url').style;x.display=x.display==''?'none':'';"> |
| 68 |
${text.login.jdbcUrl}</a>:</td> |
| 69 |
<td class="login"><input type="text" name="url" value="${url}" style="width:300px;" /></td> |
| 70 |
</tr> |
| 71 |
<tr class="login"> |
| 72 |
<td class="login">${text.a.user}:</td> |
| 73 |
<td class="login"><input type="text" name="user" value="${user}" style="width:200px;" /></td> |
| 74 |
</tr> |
| 75 |
<tr class="login"> |
| 76 |
<td class="login">${text.a.password}:</td> |
| 77 |
<td class="login"><input type="password" name="password" value="" style="width:200px;" /></td> |
| 78 |
</tr> |
| 79 |
<tr class="login"> |
| 80 |
<td class="login"></td> |
| 81 |
<td class="login"> |
| 82 |
<input type="submit" class="button" value="${text.login.connect}" /> |
| 83 |
|
| 84 |
<input type="button" class="button" value="${text.login.testConnection}" onclick="javascript:document.login.action='test.do?jsessionid=${sessionId}';submit()" /> |
| 85 |
<br /> |
| 86 |
<br /> |
| 87 |
</td> |
| 88 |
</tr> |
| 89 |
</table> |
| 90 |
<br /> |
| 91 |
<div id="url" style="display: none"> |
| 92 |
<h2>H2 Database URLs</h2> |
| 93 |
<h3>Embedded</h3> |
| 94 |
<p> |
| 95 |
The URL <code>jdbc:h2:~/test</code> means the database is stored in |
| 96 |
the user home directory in files starting with 'test'. |
| 97 |
Absolute locations like <code>jdbc:h2:/data/db/test</code> are supported. |
| 98 |
In embedded mode, the database runs in the same process as the application. |
| 99 |
Only one process may access a database at any time. |
| 100 |
Databases are automatically created if they don't exist |
| 101 |
<a target="_blank" href="https://h2database.com/html/tutorial.html#creating_new_databases">if you have a permission</a>. |
| 102 |
URLs of the form <code>jdbc:h2:./data/test</code> are relative to |
| 103 |
the current working directory (the directory where the application was started). |
| 104 |
It is recommended to use locations relative to <code>~</code> |
| 105 |
or absolute locations. |
| 106 |
</p> |
| 107 |
|
| 108 |
<h4>Remote (client/server)</h4> |
| 109 |
<p> |
| 110 |
The URL <code>jdbc:h2:tcp://localhost/~/test</code> means connect |
| 111 |
over TCP/IP to the H2 TCP server running on this computer, and open a database |
| 112 |
called test in the user home directory. The server must be started first. |
| 113 |
Any number of clients can connect to the same database. |
| 114 |
The same location rules as for embedded databases apply. |
| 115 |
</p> |
| 116 |
|
| 117 |
<h4>In-Memory</h4> |
| 118 |
<p> |
| 119 |
The URL <code>jdbc:h2:mem:test</code> means open an in-memory database |
| 120 |
named 'test'. Data is not persisted, and lost when the last connection to the database |
| 121 |
is closed. Multiple threads can access the same database, but data is only visible |
| 122 |
within the same process. |
| 123 |
</p> |
| 124 |
|
| 125 |
<p> |
| 126 |
For more information, see <a target="_blank" href="https://h2database.com/html/features.html#database_url">Database URL Overview</a>. |
| 127 |
</p> |
| 128 |
</div> |
| 129 |
<p class="error">${error}</p> |
| 130 |
</form> |
| 131 |
</body></html> |