tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Question on SSI
Date Thu, 02 Sep 2010 01:55:12 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wesley,

On 9/1/2010 7:25 PM, Wesley Acheson wrote:
> Green emphisis assuming the mailing list allows html mail is mine.

It doesn't: it uses the text version, instead, and discards the HTML. :(

> Also as a side note you can have multiple mappings for one filter.So in
> production based on your requirements I'd do the following
> 
>    <filter-mapping>
>        <filter-name>ssi</filter-name>
>        <url-pattern>*.html</url-pattern>
>    </filter-mapping>
> 
>    <filter-mapping>
>        <filter-name>ssi</filter-name>
>        <url-pattern>*.htm</url-pattern>
>    </filter-mapping>
> 
>    <filter-mapping>
>        <filter-name>ssi</filter-name>
>        <url-pattern>*.jsp</url-pattern>
>    </filter-mapping>

If you aren't picky about the ordering of /other/ filter mappings within
your webapp, you can merge those together:

>    <filter-mapping>
>        <filter-name>ssi</filter-name>
>        <url-pattern>*.html</url-pattern>
>        <url-pattern>*.htm</url-pattern>
>        <url-pattern>*.jsp</url-pattern>
>    </filter-mapping>

You can even specify that the filter will be applied to requests that
will be handled by specific servlets, such as "default" or "jsp". Just
be aware that switching servlets for whatever reason will end up
disabling your SSI filter if you aren't careful.

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

iEYEARECAAYFAkx/BAAACgkQ9CaO5/Lv0PBsmACgwihA9PPD+13QP2eRtoOK3WGy
1tYAn1hCHNxPeFUIqmbabTaZ3xK9sX6Q
=MIjV
-----END PGP SIGNATURE-----

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


Mime
View raw message