summaryrefslogtreecommitdiffstats
path: root/WebContent
diff options
context:
space:
mode:
authorJani Laakso <jani.laakso@itmill.com>2007-12-04 18:13:55 +0000
committerJani Laakso <jani.laakso@itmill.com>2007-12-04 18:13:55 +0000
commit2bfeca0498c879c11f11a54a22ad87cccdaa78c2 (patch)
tree827aa1d49b3348f7fb3273ddb39db38cf211284f /WebContent
parent0df0319345e22146c3ff8b12802937b37f5dc06d (diff)
downloadvaadin-framework-2bfeca0498c879c11f11a54a22ad87cccdaa78c2.tar.gz
vaadin-framework-2bfeca0498c879c11f11a54a22ad87cccdaa78c2.zip
Fixed #943 (Creating new applications without altering web.xml)
How to use * Try http://localhost:8080/myContext/run/com.itmill.toolkit.demo.Calc web.xml contains run/* servlet with applicationRunner=true parameter. This should not affect Toolkit in any way if applicationRunner is not defined. Currently it is defined only with run/* This needs review. Reason why I did this is to * skip one step more for newbies * "how to start" flash demo is simpler (included XML is enough for any new application) Side-effects * UIDL request have part of URI path after their UIDL request, see firebug svn changeset:3160/svn branch:trunk
Diffstat (limited to 'WebContent')
-rw-r--r--WebContent/WEB-INF/web.xml17
1 files changed, 16 insertions, 1 deletions
diff --git a/WebContent/WEB-INF/web.xml b/WebContent/WEB-INF/web.xml
index d2efa61f31..b2bbb36184 100644
--- a/WebContent/WEB-INF/web.xml
+++ b/WebContent/WEB-INF/web.xml
@@ -11,6 +11,16 @@
IT Mill Toolkit examples
</description>
+<servlet>
+ <servlet-name>ITMillToolkitApplicationRunner</servlet-name>
+ <servlet-class>com.itmill.toolkit.terminal.gwt.server.ApplicationServlet</servlet-class>
+ <init-param>
+ <param-name>applicationRunner</param-name>
+ <param-value>true</param-value>
+ </init-param>
+ </servlet>
+
+
<servlet>
<servlet-name>DemoTestBench</servlet-name>
<servlet-class>com.itmill.toolkit.terminal.gwt.server.ApplicationServlet</servlet-class>
@@ -340,7 +350,12 @@
<param-name>application</param-name>
<param-value>com.itmill.toolkit.demo.WindowedDemos</param-value>
</init-param>
- </servlet>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>ITMillToolkitApplicationRunner</servlet-name>
+ <url-pattern>/run/*</url-pattern>
+ </servlet-mapping>
<servlet-mapping>
<servlet-name>DemoTestBench</servlet-name>