You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by Luke Scholefield <lj...@me.com> on 2008/12/17 04:21:53 UTC

Mapping URLs to Tiles Definitions

Hi,

What is the neatest way to map URLs to Tiles definitions.

I have set up TilesDispatchServlet, so I can make requests to

url.com/project.login.tiles

but would rather use the address

url.com/login/

or similar.

I am using Tiles 2.1.0 without struts.  Tomcat version is 5.5.  Sorry  
if this is a rather entry level question, I am still new to JSP/tiles.

Thanks

Re: Mapping URLs to Tiles Definitions

Posted by Antonio <an...@gmail.com>.
2008/12/17 Luke Scholefield <lj...@me.com>:
> Hi,
>
> What is the neatest way to map URLs to Tiles definitions.
>
> I have set up TilesDispatchServlet, so I can make requests to
>
> url.com/project.login.tiles
>
> but would rather use the address
>
> url.com/login/
>
> or similar.

You could extend or modify the TilesDispatchServlet, or use the URL
Rewrite Filter:
http://tuckey.org/urlrewrite/

Antonio