Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which page call ?

 
shahidrasul shahid
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i use struts and i forward two requests to one single page. i want to know which page call this one?


what is pattern to know this things. please anyone help me.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm afraid I don't understand what it is you're trying to do. Could you please explain in greater detail?
 
shahidrasul shahid
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
two pages send request to two one page . i want to know which page send request?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic