tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignacio de Córdoba <icord...@skios.es>
Subject How to check if a JSP exists from a Tiles preparer
Date Mon, 09 Feb 2009 03:00:21 GMT

Hi there,
i need to check if JSPs exist in the webapp from the execute() method in a
Tiles Preparer. Currently I am doing:

ServletContext context =
(I need to cast as getContext() returns an Object)
Then I do:
if (context.getResourceAsStream(templateBodyPathValue)!=null)

I guess checking if that InputStream is not null is not the best way. Any
other ideas? Objects received in the preparer execute() method are
TilesRequestContext and AttributeContext. Maybe there is some Tiles2

Thanks for any ideas,
View this message in context: http://www.nabble.com/How-to-check-if-a-JSP-exists-from-a-Tiles-preparer-tp21906395p21906395.html
Sent from the tiles users mailing list archive at Nabble.com.

View raw message