Nicer, shorter, GWT url's
Fortunately, there is an easy way to shorten the URL, as explained in this not so aptly named thread in the Google Groups group on GWT. If you choose a decent module name, you end up with
http://company.com/module/Module.html, which is acceptable.
If you use the maven-gwt plugin to build your project, you need to modify both the compile targets and the run target to
1 2 3 4
<compileTargets> <value>Module</value> </compileTargets> <runTarget>Module/Module.html</runTarget>
Look something like this:
Server side code would go into WEB-INF/classes as per normal.
Comments are closed