I’m developing a Struts2 application that uses Sitemesh as template engine. What I need is a list of all the templates (JSP) that are used by request.
In other projects I use Django Framework, with it I’ve this amazing Debug Toolbar that, besides many other useful info, provides me with the list of templates the request used for displaying the page.

This list is surprisingly helpful when in have more than 600 templates that forms a intricate template web and I need to change a <br /> to a <p></p> in one of them.
Well I don’t expect anything as nice as this for Struts2, just a raw list of LOG.debug(<template>); will make my work so much easier.
Ok, I read some stuff and made the following class:
Added this to struts.xml:
And it’s done!:
I will update this post if I find out some extra useful output.