Nicer, shorter, GWT url's

By Confusion on woensdag 5 november 2008 12:18 - Comments (4)
Categories: Java, Software engineering, Views: 7.692

A thorn in the side of every GWT developer must be the ridiculous URLs it produces. Please, come and visit our wonderful webapp at
... very attractive... Of course, you can have redirect there, but still.

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, 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

Volgende: Toeval is niet intuïtief 11-'08 Toeval is niet intuïtief
Volgende: Converting a certificate + key to a usable Java keystore 10-'08 Converting a certificate + key to a usable Java keystore


By Tweakers user cryforhelp, woensdag 5 november 2008 14:33

What the hell is GWT?

By Scott Blum, vrijdag 7 november 2008 18:59

By the way, in GWT 1.6 you should be a lot happier. We're moving to a more WAR style deployment model. In the new model, you'd actually put your HTML into the top of the war directory. It would then reference your module script which would be compiled into a subdirectory. There will also be controls withing your .gwt.xml file to make this subdirectory (and the script itself) shorter if you like.

Look something like this:


Server side code would go into WEB-INF/classes as per normal.

Comments are closed