Keith Kwiatek wrote:

> "basically no impact" ---what does that mean in the light of no statistics? The
> high volume web sites that I work/worked on (like the IRS web site during tax
> season!) do not tolerate ineffieciencies well ...... if the server is basically
> having to do an additional "http call" for each invocation of the JSP
> file, --are you not doubling you server request load? How can this not have
> tremendous impact on a site (proportional to volume) ?!
>

Speaking as one who is currently *implementing* RequestDispatcher for Apache JServ
(be happy to benchmark as soon as it's done!), this is what has to happen to
implement a request dispatcher:

* Look up the requested servlet in a Hashtable or other similar collection.

* If this is the very first call to this servlet instance, call the init() method.

* Call the service() method with the specified request and response.

No interaction with the web server AT ALL is required to implement the forward() or
include() operation.  In fact, this is exactly the same amount of effort that the
servlet engine goes through to pick which servlet to execute once it has received
the request from the web server the first time.  I've seen benchmarks on servlet
engines responding to servlet requests (for "Hello World" type servlets) in time
ranges like 20-30 milliseconds -- and 99% of that is the network traffic, not the
dispatch to the correct servlet.

If you really want to double your request load and do another "http call", it's
really simple -- use the sendRedirect() approach that started this thread.  This
issue is undoubtedly why RequestDispatcher was created, so the servlet engine could
optimize a very common case.

>
> ......just kicking the tires.....

>
> Keith

Just bolting the tires on to the car ... :-)

Craig

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to