<Craig>
The "referer" header is set by the browser, based on what URI it thinks the
form
was on. But, if you're using a Model 2 approach (with a
RequestDispatcher.forward() from the controller servlet to the JSP page)
then the
browser does not know this happens -- therefore it will not set the referer
the way
you want. Moral of the story -- you'll need to track this in your app
itself.
<Craig>
Hi,
my feeling is that "referer" HTTP header will be set if you replace
forward() call with
sendRedirect (). It will involve round trip from server to the browser
(which supposedly should set up the header at this moment) and back to the
server/ActionServlet.
While this is not a good solution in many cases where the requests travel
over the Internet, some intranet/extranet applications with high speed
connectivity can probably ignore the drawback of round trip and rely on this
call, instead of adding requestor tracing mechanisms to the app.
Vadim Shun
NEW Corp
Dulles, VA
===========================================================================
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