Yes, that is exactly what I have been saying.


John

Nguyen Anh Tuan wrote:

Hi, John,
Thank you for the discussion.

However, the amount of requests for JSP/Servlet with
one image sent from a browser to Apache/Tomcat will
equal exactly the amount of requests for one static
HTML with one image sent from a browser to a stand
alone Web server, is that right ?

In either cases, are there 2 requests sent from the
browser to the server (no matter which server) ?


--- John Turner <[EMAIL PROTECTED]> wrote:


Thanks for the hint, I've read the spec many times.

I'm not clear what you are saying. Its two
requests, whether its Apache + Tomcat, Apache alone, or Tomcat alone. Check your
access logs...you don't see one log entry for a HTML page with one
image, you see two: a 200 for the HTML page, and a 200 for the image. Whether that HTML page is a static page, or the output from JSP, ASP,
servlet, perl script, or anything else.


Your statement was "No, there is only one request
that is sent from browser to Apache. Apache will reroute the request
to Tomcat as needed."


This is false, unless you are speaking only to the
request for the JSP. Apache will receive one request for the
JSP/servlet, which will be routed to Tomcat. If the HTML output of the
JSP/servlet includes an IMG tag, then Apache will receive a second request for
the image. 1 + 1 = 2.


John




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to