tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Will Hartung)
Subject Re: Managing a large web.xml
Date Mon, 19 Aug 2002 22:23:53 GMT
From: "Milo Hyson" <>
Sent: Monday, August 19, 2002 2:36 PM

> Is there any way to break up a large web.xml file into smaller ones to
make it
> more manageable? I've found that it doesn't take that big of a project
> I have so many servlets and mappings as to make the deployment descriptor
> file quite long. I've read through the Servlet spec (2.3) and poked around
> the mailing list archives, but can't find anything like an include
> or anything else that might let me divide my descriptor into mutiple
> files. Ideally, I'd like to be able to create a different file for each
> section of the application, so that I can focus on one at a time.
> I'd appreciate any insights into this situation. Thanks in advance.

The Servlet spec isn't much help in this case.

The most practical approach is to break it up using some regular method, and
then just create the actual web.xml as part of the build/deploy process in
your build script. (For example, just before you pack everything up in a
WAR, or whatever).

I don't have any code to share with you at the moment, and I don't think
it's quite straightforward with ANT, but that's still the path I'd take.


Will Hartung

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message