Thanks to you. I will be very proud if you include it :) It will be my
first contribution to an open source project.
But I think that if you do it, it would be nice to have a configuration
parameter allowing to enable/disable this feature of throwing exceptions
when a resource is not found.
Dani.
Antonio escribió:
> 2008/10/17 Daniel Francisco Sabugal <[EMAIL PROTECTED]>:
>
>> (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!
>
> Antonio
>
>
>
--
*Daniel Francisco Sabugal*
*Java/J2EE Developer*
PORTAL UNIVERSIA, S.A.
Ciudad Grupo Santander. Avda. de Cantabria s/n
Edif. Arrecife, planta 00.
28660 Boadilla del Monte - Madrid
Telf: (34) 91 289 59 12 - Fax: (34) 91 257 15 06
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
www.universia.es <http://www.universia.es>