Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-05-13 09:00:09 +0000
committerEike Stepper2010-05-13 09:00:09 +0000
commitc2befbe2b927f79da8d02c5275ceb4e324f15adc (patch)
treefb35be54f421355f80dafdbce78b921f072fada8 /plugins/org.eclipse.emf.cdo.examples.server
parentcd5569b469b0869e3870b297df31d31d029c857e (diff)
downloadcdo-c2befbe2b927f79da8d02c5275ceb4e324f15adc.tar.gz
cdo-c2befbe2b927f79da8d02c5275ceb4e324f15adc.tar.xz
cdo-c2befbe2b927f79da8d02c5275ceb4e324f15adc.zip
vserver
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.examples.server')
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.server/plugin.xml14
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.server/src-gen/templates/RequestForm.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.server/templates/requestForm.htmljet8
3 files changed, 18 insertions, 6 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples.server/plugin.xml b/plugins/org.eclipse.emf.cdo.examples.server/plugin.xml
index 5ad426b50f..9569f0ef63 100644
--- a/plugins/org.eclipse.emf.cdo.examples.server/plugin.xml
+++ b/plugins/org.eclipse.emf.cdo.examples.server/plugin.xml
@@ -28,16 +28,20 @@ Eike Stepper - initial API and implementation
<extension
point="org.eclipse.equinox.http.registry.servlets">
<servlet
- alias="/demo"
- class="org.eclipse.emf.cdo.examples.server.DemoServlet"
+ alias="/requestForm.html"
+ class="org.eclipse.emf.cdo.examples.server.RequestFormServlet"
+ load-on-startup="true"/>
+ <servlet
+ alias="/configOverview.html"
+ class="org.eclipse.emf.cdo.examples.server.ConfigOverviewServlet"
load-on-startup="true"/>
</extension>
-
+
<extension
point="org.eclipse.equinox.http.registry.resources">
<resource
- alias="/demo.css"
- base-name="/demo.css">
+ alias="/demo-server.css"
+ base-name="/demo-server.css">
</resource>
</extension>
diff --git a/plugins/org.eclipse.emf.cdo.examples.server/src-gen/templates/RequestForm.java b/plugins/org.eclipse.emf.cdo.examples.server/src-gen/templates/RequestForm.java
index 89cccf1b95..814a8026d4 100644
--- a/plugins/org.eclipse.emf.cdo.examples.server/src-gen/templates/RequestForm.java
+++ b/plugins/org.eclipse.emf.cdo.examples.server/src-gen/templates/RequestForm.java
@@ -12,7 +12,7 @@ public class RequestForm
}
public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
- protected final String TEXT_1 = NL + "<html>" + NL + " <header>" + NL + "\t <title>" + NL + "\t\t\tDemo Request Form" + NL + "\t </title>" + NL + "\t\t<link media=\"screen\" href=\"demo-server.css\" type=\"text/css\" rel=\"stylesheet\">" + NL + "\t<header>" + NL + "<body>" + NL + "" + NL + "<h1>Demo Request Form</h1>" + NL + "" + NL + "</body>" + NL + "</html>";
+ protected final String TEXT_1 = NL + "<html>" + NL + " <header>" + NL + "\t <title>" + NL + "\t\t\tDemo Request Form" + NL + "\t </title>" + NL + "\t\t<link media=\"screen\" href=\"demo-server.css\" type=\"text/css\" rel=\"stylesheet\">" + NL + "\t<header>" + NL + "<body>" + NL + "" + NL + "<h1>Demo Request Form</h1>" + NL + "" + NL + "<form method=\"post\" action=\"configOverview.html\">" + NL + "\t<table border=\"0\">" + NL + "\t\t<tr><td>Mode:</td><td><select name=\"mode\"><option>NORMAL</option><option>AUDITING</option><option>BRANCHING</option></select></td></tr>" + NL + "\t\t<tr><td>User IDs:</td><td><input name=\"userIDs\" type=\"input\"></input></td></tr>" + NL + "\t\t<tr><td>&nbsp;</td><td><input name=\"submit\" type=\"submit\">Submit Request</input></td></tr>" + NL + "\t</table>" + NL + "</form>" + NL + "" + NL + "</body>" + NL + "</html>";
protected final String TEXT_2 = NL;
public String generate(Object argument)
diff --git a/plugins/org.eclipse.emf.cdo.examples.server/templates/requestForm.htmljet b/plugins/org.eclipse.emf.cdo.examples.server/templates/requestForm.htmljet
index 0e7350a8fe..583558eac9 100644
--- a/plugins/org.eclipse.emf.cdo.examples.server/templates/requestForm.htmljet
+++ b/plugins/org.eclipse.emf.cdo.examples.server/templates/requestForm.htmljet
@@ -13,5 +13,13 @@
<h1>Demo Request Form</h1>
+<form method="post" action="configOverview.html">
+ <table border="0">
+ <tr><td>Mode:</td><td><select name="mode"><option>NORMAL</option><option>AUDITING</option><option>BRANCHING</option></select></td></tr>
+ <tr><td>User IDs:</td><td><input name="userIDs" type="input"></input></td></tr>
+ <tr><td>&nbsp;</td><td><input name="submit" type="submit">Submit Request</input></td></tr>
+ </table>
+</form>
+
</body>
</html>

Back to the top