try req.getPathInfo() for the url.
At 12:45 AM 10/16/00 +0530, you wrote:
>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