tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <>
Subject Re: Managing a large web.xml
Date Tue, 20 Aug 2002 07:13:23 GMT
The obvious answer is to use internal entities (Note: some versions of
Tomcat don't handle these gracefully, but I believe [but I don't use], that
4.0.4 and 4.1.x do). The idea is to setup in web.xml:
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
<!ENTITY section1 SYSTEM "/home/tomcat/part1.xml">
<!ENTITY section2 SYSTEM "/home/tomcat/part2.xml">

"Milo Hyson" <> wrote in message
> 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.
> --
> Milo Hyson
> CyberLife Labs, LLC

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

View raw message