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 =
(ServletContext)tilesRequestContext.getApplicationContext().getContext();
(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
aproach.
Thanks for any ideas,
Ignacio
--
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.