Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Getting Rid of Package-Based GWT URL's

DZone's Guide to

Getting Rid of Package-Based GWT URL's

· Java Zone
Free Resource

Learn how to troubleshoot and diagnose some of the most common performance issues in Java today. Brought to you in partnership with AppDynamics.

Deploying a fancy GWT application loses a lot of its shine when you see a my.package.gwt url in your browser. To get rid of this, you only need two extra lines of configuration in your application module:

<module>
    <source path="my/package/gwt"/>
    <public path="gwt/public"/>
    <inherits name='com.google.gwt.user.User'/>
    <entry-point class='my.package.gwt.Application'/>
    <stylesheet src="gwt.css"/>
</module>

This source node points to the Java application implementation, the public node to the application's resources. 

There's one thing you need to keep in mind, though: both paths are considered to be relative to the module configuration file.

Understand the needs and benefits around implementing the right monitoring solution for a growing containerized market. Brought to you in partnership with AppDynamics.

Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}