you may try request.getHeader("Referer");
Shiraz Wasim Zaidi wrote:
> >I assume that the above method call doesnot have a uniform behaviour.
> It has a uniform behaviour.
>
> > Could you guys throw some light on the above method.
> > It just keeps returning null.
> The Referer header field tells the address of the resource from which the
> request-uri
> was obtained. So you wont get a referer field value for a resource that you
> typed in
> manually, which i think u are doing. Try having a hyper link to ur
> jsp/servlet from
> a HTML page. Now if u check referer value u should get address of the HTML
> page ,
> which is its referer.
>
> -Shiraz
--
Janco Tanis
------------------------------------------------------------
COAS, Your partner in computer aided services
Nijverheidsweg 34 Tel: +31 (0) 187 49 3222
Postbus 44 Fax: +31 (0) 187 49 2912
3250 AA Stellendam Email: [EMAIL PROTECTED]
===========================================================================
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