tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio <antonio.petre...@gmail.com>
Subject Re: how to detect when an attribute value is not found
Date Fri, 17 Oct 2008 08:10:22 GMT
2008/10/17 Daniel Francisco Sabugal <daniel.francisco@universia.net>:
> (req.getSession().getServletContext().getResource(attributeValue) == null) {

You can do it in another way.
Usually the "TilesRequestContext" is a "ServletTilesRequestContext",
that extends "ServletTilesApplicationContext" that implements the
Now, the TilesApplicationContext exposes the "getResource" method that
can get a resource both from ServletContext and from the classpath.
I think that your solution could be included in Tiles 2.1. Thanks for the idea!


View raw message