It would probably be best to use Java's include calls as 
identified in another e-mail, but I did find the following 
statement in the Apache documentation:

"For backwards compatibility, documents with mime type 
text/x-server-parsed-html or text/x-server-parsed-html3 will 
also be parsed (and the resulting output given the mime type 
text/html)."

Maybe if you modify the mime type the JSP pages generate, 
you'll get Apache to process it.  Don't really know, though.  It 
depends on how mod_jk works together with Apache and SSI.

It's important to keep in mind how Apache works with Tomcat.   
Apache doesn't serve the jsp files, it serves a data stream 
coming through ajp12 or ajp13 from Tomcat.  As a result, it 
would have to touch the data after Tomcat returns it, not the 
file before Tomcat processes it.  

Hope that helps.  I really would recommend you consider 
using the Java approach.  It would probably be less of a 
headache.

Best Regards,

Jason Koeninger
J&J Computer Consulting
http://www.jjcc.com

On Thu, 07 Jun 2001 10:22:24 -0000, Mick Lysejko wrote:

>Hi Yes,
>
>I have a plugin for apache that allows you to dynamically insert content etc 
>into the content that's being delivered.
>
>so in my normal content I have:
><!-- #include virtual="f-call/attrib1=value1&attrib2=value2 -->
>
>This works for my normal content but I aslo want it to work in my jsp files 
>too.
>
>What I find is that the tag is ignored in my jsp files so when I 'view 
>source' I see the above string not the returned content.
>
>As I said below I have tried the directive:
>AddHandler server-parsed .jsp
>
>but it seems to have no effect.
>For each change I've done in each place I've tried I have re-started both 
>tomcat and apache too.
>
>thanks
>
>Mick.
>>
>>Ross, the include format he showed was the common server side include 
>>format
>>that can be used in HTML with many web servers (including both apache and
>>IIS)
>>
>>-----Original Message-----
>>From: Ross Dyson [mailto:[EMAIL PROTECTED]]
>>Sent: Wednesday, June 06, 2001 5:58 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: server side includes, tomcat and jsp files
>>
>>
>>Where did you get this syntax from?
>><!-- #include virtual="...." -->
>>
>>jsp has 2 sorts of includes, compile time and run time.
>>from the jsp 1.1 spec document:
>>TABLE 2-1 Summary of Include Mechanisms in JSP 1.1
>>Syntax What Phase Spec Object Description Section
>><%@ include file=... %> directive translation-time virtual static Content 
>>is
>>parsed by
>>JSP container.
>>2.7.6
>><jsp:include page= /> action request-time virtual static
>>and
>>dynamic
>>Content is not parsed; it
>>is included in place.
>>2.13.4
>>
>>Looks bad with no formatting, but you can figure it out :-)
>>Ross.
>>
>>-----Original Message-----
>>From: Mick Lysejko [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, 7 June 2001 8:48 AM
>>To: [EMAIL PROTECTED]
>>Subject: server side includes, tomcat and jsp files
>>
>>
>>Hi folks,
>>
>>I have installed apache 1.3.17 and tomcat 1.3.3 and it all works fine.
>>However, I wish to do server side includes in my jsp files and this does 
>>not
>>work.  eg. <!-- #include virtual="...." -->
>>
>>I have tried the apache directive:
>>adhandler server-parse .jsp
>>
>>in httpd.conf. Here it stops my jsp pages getting parsed and I got server
>>errors (400 I think).
>>
>>I then tried adding it to apache-tomcat.conf
>>-- here it just gets over writen....
>>
>>Then I tried to put it in tomcat.conf
>>-- here it seems to be totaly ignored.
>>
>>Does anyone have any Ideas. any help welcome  :)
>>
>
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>


Reply via email to