Originally posted by Chengwei Lee:
Hi all,
For projects that have big web.xml and many developers working on it, is it possible to split it into smaller separate manageable XML files? I tried using the <!ENTITY filter SYSTEM "filter.xml"> to replace my <filter> tags but gotten parser errors.
Anyone done something of this before? Is it feasible?
Many thanks!
Hi,
I have split the struts-config.xml file into 2 files like this
In struts-config.xml use
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD
Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd"[
<!ENTITY actions SYSTEM "actions.xml">
]>
<!-- =============== Mappings in actions.xml ===================== -->
&actions;
and actions.xml is a normal xml file.
Use this to split web.xml. I have never tested it with web.xml so tell me if it works.
Regards,
Praveen