Hi,
I want to detect when an include in a jsp occurs in a web application and specifically which page is being included. I want to do this when the menu page is requested. One option is to overwrite PageContext but it turns out you can't access it anywhere to wrap it. As far as I can see PageContext is the only class which provides include callbacks. I might use a response filter to detect when an include occurs but it doesn't look like that is possible either.
Any ideas ?
What I want to achieve btw is that when a jsp is requested I want to append all the includes as a comment at the end of the requested jsp.