-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marc,

On 9/1/2010 6:24 PM, Marc Chamberlin wrote:
>  On 9/1/2010 1:46 PM, Wesley Acheson wrote:
>>      <filter-mapping>
>>          <filter-name>ssi</filter-name>
>>          <url-pattern>*</url-pattern>
>>      </filter-mapping>
>
> Thanks Wesley for taking the time to answer, much appreciated!  Yes, I
> have tried this filter mapping / url-pattern with no joy.  Also have
> tried a url-pattern of *.html and no joy either....

Note that <url-pattern>*</url-pattern> is out-of spec: that will
probably look for a request for the exact URL http://host/context/*,
which probably isn't what you want. If you want to intercept all
requests, you'll need <url-pattern>/*</url-pattern>. Using "/" should
also work to intercept everything, but the spec actually says that "/"
specifies "the default servlet for the application" and so I'm not sure
if a Filter can reliably be given that URL mapping.

>> Also change the section
>>          <init-param>
>>            <param-name>contentType</param-name>
>>            <param-value>text/x-server-parsed-html(;.*)?</param-value>
>>          </init-param>
>>
>> The param-value must be a regular expression that will meet the
>> following mime types
>> text/x-server-parsed-html or text/html. My regular expressions aren't
>> great so I'll leave that for an exercise.
>
> Yeah, neither are mine ;-) ...  The trouble with reg expressions is that
> there are a lot of variants and documentation does not clarify just
> whose reg expr parser is being used. I usually assume GNU, but been bit
> so many times by that assumption that I can never be sure.  So I don't
> know how to modify this either....

.* works pretty much the same in all regular expression variants. What
have you tried?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx/AeEACgkQ9CaO5/Lv0PBcNACfWS1EFWPeiUXk/NBkp83tjE5s
gpsAn1h4j6BMehr/AybKL/QLIF4OPlpo
=ts+K
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to