farahm
farahm

Reputation: 1326

GWT url mapping servlet

my gwt.xml looks like:

<module rename-to="WaitAnalyst">
    [...]
</module>

And my web.xml:

<servlet-mapping>
    <servlet-name>waitstatsServlet</servlet-name>
    <url-pattern>/databasewatcher/waitstatsservice</url-pattern>
</servlet-mapping>

And my project name is DatabaseWatcher

Do you think the first part in the <url-pattern> should be databasewatcher ot should it be WaitAnalyst like the module renaming?

Upvotes: 0

Views: 435

Answers (1)

Andrei Volgin
Andrei Volgin

Reputation: 41040

If you use RPC, the first part should be a module name (i.e. WaitAnalyst).

If you use RequerstBuilder, you can define your own servlet mappings - you can include module name in path or not.

Upvotes: 3

Related Questions