How can I rewrite / redirect URL’s in Glassfish V3?

I’d like to simplify the URL’s to access a Glassfish V3 application by removing file extensions and otherwise shortening URL’s.

I’ve already set my application as the default application, so that there is no need to include the context root in the URL.

I’d like to:
* Remove file extensions
* Shorten the URL to files deep in the folder structure

I’d like to do this using pattern matching rather than on a per file basis (Site is small at the moment but will change frequently and grow).

Some examples of what I’d like to do:
* ->
* ->

Any help would be greatly appreciated. Thanks.




Leave a Reply