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")

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact