> Daniel Yawitz wrote:
>
> When Tomcat is integrated w/Apache, what happens when a JSP/servlet forwards a
>request to a static file (HTML page,
> image,...)? Who serves it, Tomcat or Apache?
>
> ex:
> String newloc = "images/biscuit.jpg";
> getServletContext().getRequestDispatcher(newloc).forward(request, response);
>
> thanks,
> dan
>
Apache gets Tomcat to process the request which returns the information
to apache and then is sent to the client.
When you are using apache+tomcat for your web traffic may be on port
80 for example, only Apache can serve port 80 requests, tomcat is serving
apj requests back to Apache when the request matches some Mount directive.