I’m working on a legacy application that is using simple JSPs that are nested using <jsp:include>.
No frameworks are being used – just JSP Servlets and filters.
Can anyone suggest a way to trace which JSP pages are being rendered?
Perhaps there’s a log, or maybe a hook in the rendering engine (Jasper).
Create a Filter which listens on an
url-patternof*.jspand theINCLUDEdispatcher only.Get the parent page by
HttpServletRequest#getServletPath()and the include page byHttpServletRequest#getAttribute()with keyjavax.servlet.include.servlet_path: