Wild card support for servlet mapping in Module.gwt.xml

11 views
Skip to first unread message

olivier nouguier

unread,
Nov 19, 2008, 9:12:49 AM11/19/08
to google-web-tool...@googlegroups.com
Hi,
when using DI container like Spring or Guice, there might be only one
servlet (diServlet) , that handle the many GWT-RPC.

In the web.xml we can use a wild card like: "*.gwt" to map the diServlet.

AFAIK this is not possible in Hosted Mode because the GWTShellServlet
and ModuleDef doesn't support the "wildcard" mapping.

By modifying those two classes It was easy to allow wildcard mapping
in Module.gwt.xml. I there a reason to disallow wildcard mapping in
Module.gwt.xml or should a submit an issue and a patch.

Thanks for GWT.
Olivier

olivier nouguier

unread,
Nov 19, 2008, 12:32:10 PM11/19/08
to google-web-tool...@googlegroups.com
I've posted an issues with a patch at
http://code.google.com/p/google-web-toolkit/issues/detail?id=3115

--
Si l'ignorance peut servir de consolation, elle n'en est pas moins illusoire.

Scott Blum

unread,
Nov 19, 2008, 12:41:24 PM11/19/08
to Google-Web-Tool...@googlegroups.com
We're actually generally considering moving away from <servlet> tags in modules to simply making user-provided web.xml the "right" thing to do, even in hosted mode.

olivier nouguier

unread,
Nov 19, 2008, 4:15:30 PM11/19/08
to Google-Web-Tool...@googlegroups.com
Great !
This targeted for a 1.5.x version ? 1.6.x ?
Do you think that my patch / workaround may be valuable before you
release this ?
Thanks

Scott Blum

unread,
Nov 19, 2008, 5:32:01 PM11/19/08
to Google-Web-Tool...@googlegroups.com
This is for 1.6, and we have no plans to release another 1.5 update.
Reply all
Reply to author
Forward
0 new messages