There's no way to know implicitly which page or process called the current page. If you need to know the caller, I'd suggest passing a parameter that identifies the caller. For example, the first page calls the URL: myServer/MyApp/MyPage.jsp?fromPage=page1.jsp while the second page calls the URL: myServer/MyApp/MyPage.jsp?fromPage=page2.jsp.