two pages send request to two one page . i want to know which page send request?
Joined: Feb 15, 2005
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.