I agree with what you say, but as you point out, it doesn't help the problem
I am having with our production site. I can't use the sendRedirect.
Actually..I probably could. We only have about 50 to 100 people a day on our
site. So for performance reasons, I dont much care about the sendRedirect
lag time. My use of forward is specifically for the future of our site
possibly using 1000 users a day or more.

So the question then is, is it really worth it to use the forward() call
over sendRedirect() if at most we will have 1000 to 3000 people a DAY (not
hour, not minute) use our site? How much faster is it to use forward() over
sendRedirect() as far as each client on our site sees it?

Thanks.


> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Shun, Vadim
> Sent: Thursday, May 04, 2000 12:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: model 2 servlet mapping question
>
>
> <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
>

===========================================================================
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

Reply via email to