title: How can I detect which jsp includes a web page uses in a web application
body: <p>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.</p>
  
  <p>Any ideas ?</p>
  
  <p>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.</p>