Try:  request.getHeader("Referer")

HTH,

Mio Nino P. Marquez
Java / JSP / Servlet Newbie


----- Original Message -----
From: "Sunil Kumar Roy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 16, 2000 3:15 AM
Subject: Re: URL of File Sending the request


> Hi Ramesh,
> This will give me only the URL upto the port no.(i.e.,
> http://DomainName/Port No.).
> But I need to know the complete URL including name of the the jsp
page/html
> page/servlet name.
> I have to check the source of request in my program, i.e., which
> jsp/html/servlet has sent the request.
>
> Thanks anyway.
>
> Could anybody help?
>
> Thanks in anticipation
>
> Bye
> Sunil K. Roy
>
> ----- Original Message -----
> From: "Ramesh, Kesav" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, January 19, 2001 10:11 AM
> Subject: Re: URL of File Sending the request
>
>
> > request.getScheme() + "://" + request.getServerName() + ":" +
> > request.getServerPort()
> >
> >
> > Regards
> >
> > Ramesh Kesavanarayanan
> >
> > Electronic Data Systems
> > Steeple Reach,
> > 25, Cathedral Road,
> >
> >   91-44-811 3801 to 15 ext :2186
> >   91-44-233 0380 (res)
> >  [EMAIL PROTECTED]
> >  [EMAIL PROTECTED]
> >
> >
> >
> > -----Original Message-----
> > From: Sunil Roy [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, November 01, 2000 1:40 AM
> > To: [EMAIL PROTECTED]
> > Subject: URL of File Sending the request
> >
> >
> > Hi Guys,
> > Can somebody tell me how to get the URL  of the file from where the
> request
> > is coming to the servlet?
> >
> > Thanks in advance.
> >
> > Sunil K. Roy
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > DIGEST".
> > 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
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> > 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
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> 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
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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