Apache behaves like a proxy server when it sees jsp requests. It just
forwards the jsp request to Tomcat. When Tomcat finishes generating a
response, it passes it to Apache which then serves the response back to the
client *without parsing it*. Apache can parse, only, static requests. So
all those who have been telling you to use jsp includes (dynamic) are
correct. You could, of course, use static includes (<%@ include
="filename"%>. Reduces response time.
Some additional info: You could use ssi includes with Tomcat. I'm not sure
though since I haven't tried it. I think it looks for a particular file
extension, namely *.shtml, and parses only those files. But anyway, if you
wish to experiment, look under the TOMCAT_HOME/server/lib directory for
"servlets-ssi.renametojar". Rename it to "servlets-ssi.jar". Uncomment the
"
"Server Side Includes" section in TOMCAT_HOME/conf/web.xml. Test it out.

RS





Helmut Rubasch   06/12/2002 03:00 AM
(Embedded image moved to file: pic32209.pcx)

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:    [EMAIL PROTECTED]
cc:

Subject:    Apache + Tomcat + SSI

Hello everyone!

I have a problem concerning Apache + Tomcat + mod_jk + SSI (server side
includes):
I want to place a SSI in a html-page which is dynamically generated by a
jsp-page.
In static html-files (in those in my Apache htdocs-directory) SSI are
working perfectly, but as soon as the page is generated by Tomcat, the
SSI-directives are just sent to the browser, but not evaluated.
So for my problem  Apache would have to let Tomcat handle the jsp-Request
first and then parse the generated document for SSI-directives --- how
could I configure it to do so???

In the archives I found some questions like this one, but I have not seen
a solution posted for this problem yet ... only some people proposing to
use jsp:includes instead, but I really DO want Apache to handle these
includes (performance)!!!

Is there a solution for my configuration (Apache 1.3 + Tomcat 3.2.3) or
for a different configuration (like Apache 2.0 + Tomcat 4.0) ???

Thanks for any hints
Helmut Rubasch


Silbergrau Consulting & Software GmbH
fon: +43.70.779169-25
Dipl.Ing. Helmut Rubasch
fax: +43.70.779169-12
Stifterstraße 28/3, Postfach 21
[EMAIL PROTECTED]
A-4014 Linz
www.silbergrau.com






Attachment: pic32209.pcx
Description: Binary data

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

Reply via email to