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"
    "http://java.sun.com/dtd/web-app_2_3.dtd";
[
<!ENTITY section1 SYSTEM "/home/tomcat/part1.xml">
<!ENTITY section2 SYSTEM "/home/tomcat/part2.xml">
]
>
<web-app>
......
&section1;
.....
&section2;
.....
</web-app>


"Milo Hyson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
before
> 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
in
> the mailing list archives, but can't find anything like an include
directive
> or anything else that might let me divide my descriptor into mutiple
smaller
> 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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to