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

Chuck,

On 7/1/2010 12:31 PM, Caldarale, Charles R wrote:
>> From: laredotornado [mailto:laredotorn...@gmail.com]
>> Subject: RE: Servlet mapping question -- way to include everythign
>> EXCEPT a directory?
>>
>> I like your idea about specifying the DefaultServlet, 
>> but what do you mean by the "DefaultServlet" ?
> 
> Tomcat's built-in servlet that handles all static content. It's
> defined in the global conf/web.xml, and thus included in all deployed
> webapps:

[snip]

> <servlet-mapping>
>   <servlet-name>default</servlet-name>
>   <url-pattern>/play/sports/includes/*</url-pattern>
> <servlet-mapping>

Just a note to Dave: using this mapping might couple your webapp to
Tomcat by relying on a global-mapping with a servlet called "default". I
don't think that's in the spec, so you might want to put a comment in
your web.xml pointing out that the mapping might be Tomcat-specific.
You'll save yourself (or someone else) a lot of headache in the future
with that simple comment.

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

iEYEARECAAYFAkwv8iQACgkQ9CaO5/Lv0PAZbACfYXCGM/cybZnFAanvjr3eMhVl
WeEAn3Q3z12dsOd5N3IqJTCU9hs+QTyP
=8CwB
-----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