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:19:11 GMT
2008/10/17 Antonio <antonio.petrelli@gmail.com>:
> 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
> "TilesApplicationContext".
> 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!

Here it is the JIRA issue:
https://issues.apache.org/struts/browse/TILES-320
feel free to comment (or to code :-) ).

Antonio

Mime
View raw message