dcsimg

How can I find out as to which page (static or dynamic) was responsible for invoking a JSP page?

Frank Steidinger

You can get the URI of the page that contained the link to your JSP from the HTTP header. The header contains a field "Referer" which you can read using the getHeader method:
String callingPage = request.getHeader("Referer")