Hi Madhavi,

In the jsp page do this

  String str = request.getHeader("referer");

this gives u the url of the page which has called
(refered) this (jsp) page.

Vivek Ojha


--- "Madhavi, Aaji (IE10)"
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I want to know if u can find out which url has
> called a jsp. ie I have two
> pages which can reference to a jsp. In that jsp, I
> want to find out which of
> the two pages has 'called' it. How can i do this??
>
> Thanks,
> Madhavi.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to