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:[EMAIL PROTECTED]] > > 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:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
