Posted on 18 October 2008

Tiles, a framework that is used extensively for templating in Java based web
applications. Spring Framework, a dependency injection container that makes
configuration easier. There are several controllers available in the Spring
framework which makes mapping static JSP/JSF pages directly to the URI’s without
writing boiler plate code. But in most of the cases, we use Tiles for a templating.
What to do in such a case? There is no single controller that would help us map
URI’s to a tilename. Here is what I came up… A simple controller that would
directly map a URI to a tilename and forward the request out.