tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paxson yang <pax...@ninecom.com>
Subject Re: referer
Date Fri, 02 Mar 2001 04:52:59 GMT
Carlos wrote:
> 
> can any body say me how can i in a JSP page detect which is the referer
> page? from which page comes the visit?
> thanks
> Carlos
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org

you can try this

<%
  String referer=request.getHeader("referer");
  session.setAttribute("referer",referer);
%>

it works fine to me

Mime
View raw message