Peter Swan wrote:
> Hi,
> 
> I wonder if it is possible to filter the output coming from my Tomcat
> talking via mod_jk to my apache 1.3 with mod_perl 1.29!?
> 
> I tried something like
> 
> PerlModule Apache::Filter
> <FilesMatch "\.jsp$">
>   SetHandler perl-script
>   PerlSetVar Filter On
>   PerlHandler myFilter
> </FilesMatch>
> 
> but 'myFilter' only gets the raw JSP file BEFORE Tomcat had it's fun
> with it...
> 
> Maybe I misunderstood the 'Apache::Filter' and it is only possible to
> filter/chain perl-handlers and not real apache handlers...

yes, that's the limitation - you can only filter perl handlers.  in most
cases this is sufficient, since you can call out and/or emulate environments
like cgi (Apache::Registry), ssi (Apache::SSI), and php (PHP::Interpreter)
from within mod_perl.

> 
> Is there any trick to solve this problem in Apache 1.3? (Apache 2 has a
> 'real' output filter which should do the trick, but unfortunately we
> can't switch.)

no, you can't do what you want easily from within 1.3.  if you're really
brave you can look at how mod_gzip works in 1.3, since it apparently
compresses dynamic content after the content handler phase.

HTH

--Geoff

Reply via email to