rwheeler7864 / google-web-toolkit-doc-1-5

Automatically exported from code.google.com/p/google-web-toolkit-doc-1-5
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

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 ModuleDefSchema
(dev/core/src/com/google/gwt/dev/cfg/ModuleDefSchema.java)
and ModuleDef(dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java) doesn't
support the "wildcard" mapping:
#
# Not supported in GWT 1.5.2
#
<servlet
class="org.springframework.web.context.support.HttpRequestHandlerServlet"
        path="*.gwt" />
#
#

Patch provided (gwt 1.5.2) returns the wildcard mapping only it match and
if no "fully qualified" mapping has matched before.

By doing this the Module.gwt.xml doesn't have to be changed when new
services are added.

Original issue reported on code.google.com by olivier....@gmail.com on 19 Nov 2008 at 4:29

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry for this, it was not a documentation issues. Please ignore this mistake.
I apologize.

Original comment by olivier....@gmail.com on 19 Nov 2008 at 4:38