diff options
author | Jani Laakso <jani.laakso@itmill.com> | 2007-12-04 18:13:55 +0000 |
---|---|---|
committer | Jani Laakso <jani.laakso@itmill.com> | 2007-12-04 18:13:55 +0000 |
commit | 2bfeca0498c879c11f11a54a22ad87cccdaa78c2 (patch) | |
tree | 827aa1d49b3348f7fb3273ddb39db38cf211284f /build | |
parent | 0df0319345e22146c3ff8b12802937b37f5dc06d (diff) | |
download | vaadin-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 'build')
-rw-r--r-- | build/package/WebContent/WEB-INF/web.xml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build/package/WebContent/WEB-INF/web.xml b/build/package/WebContent/WEB-INF/web.xml index 5f6950c7ae..6b41c1198e 100644 --- a/build/package/WebContent/WEB-INF/web.xml +++ b/build/package/WebContent/WEB-INF/web.xml @@ -12,6 +12,15 @@ </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>FeatureBrowser</servlet-name> <servlet-class>com.itmill.toolkit.terminal.gwt.server.ApplicationServlet</servlet-class> <init-param> @@ -238,6 +247,11 @@ </servlet> <servlet-mapping> + <servlet-name>ITMillToolkitApplicationRunner</servlet-name> + <url-pattern>/run/*</url-pattern> + </servlet-mapping> + + <servlet-mapping> <servlet-name>FeatureBrowser</servlet-name> <url-pattern>/FeatureBrowser/*</url-pattern> </servlet-mapping> |