tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From garrett smith <javadevm...@yahoo.com>
Subject RE: need to find out the URL of the page that sent the request
Date Wed, 28 Aug 2002 21:11:35 GMT
// get the requested location.
String location = request.getRequestUri();

Study the javadoc. HttpServletRequest, HttpServletResponse, Session, and
Cookie, how much do you know about these?



--- Peter Choe <choepete@mindspring.com> wrote:
> i think i found the problem.  i was linking to the jsp page from a 
> javascript and sending it using location object.  when i used a submit 
> button i get the referer attribute.
> 
> learn something new everyday.
> 
> thanks for the help.
> 
> Peter
> 
> At 03:47 PM 8/28/2002, you wrote:
> 
> >It shouldn't be...JSPs are compiled into servlets.
> >
> >When you access your JSP page, is there an intervening page, like an HTML
> >page?  There has to be one for Referer to be set.
> >
> >John
> >
> > > -----Original Message-----
> > > From: Peter Choe [mailto:choepete@mindspring.com]
> > > Sent: Wednesday, August 28, 2002 3:42 PM
> > > To: Tomcat Users List
> > > Subject: RE: need to find out the URL of the page that sent
> > > the request
> > >
> > >
> > > i tried printing out the names of the headers and 'referer'
> > > doesn't come up
> > > in the jsp file.
> > >
> > > it seems that it doesn't record the referer header.
> > >
> > > but i did try the servlet example and that worked.
> > >
> > > there shouldn't be an issue whether it is a jsp or a servlet, right?
> > >
> > > Peter
> > >
> > > At 03:33 PM 8/28/2002, you wrote:
> > >
> > > >Incidentally, the value will be null if you access the
> > > servlet URL directly,
> > > >without an intervening page.
> > > >
> > > >John
> > > >
> >
> >--
> >To unsubscribe, e-mail:  
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> >For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> 


=====
http://dhtmlkitchen.com/

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message