• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

request origin

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
I want to know the page(html/jsp) from which a request has originated. Is there any method to get this.
thanks
vidya
 
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this what you are looking for?
StringBuffer page = HttpUtils.getRequestURL(HttpServletRequest request);
If your request is forwarded to different pages, on the first page issue this method call, attach it to the request object and forward it along with all the other request information. Then you can retrieve it on your last page.
[This message has been edited by Brian Nice (edited December 06, 2000).]
 
Srividya Shiv
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Brian
I got it.

Originally posted by Brian Nice:
Is this what you are looking for?
StringBuffer page = HttpUtils.getRequestURL(HttpServletRequest request);
If your request is forwarded to different pages, on the first page issue this method call, attach it to the request object and forward it along with all the other request information. Then you can retrieve it on your last page.
[This message has been edited by Brian Nice (edited December 06, 2000).]


 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ihave a similar problem. My browser always shows only servlet names. It does not display intermediate jsp or html page names.
Is there a way of displaying the URL of the exact page that's currently executing everytime??
Kamakshi
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic