Hi, In order to be able to toggle back and forth between secure and insecure mode (https & http) I have had to use some static URLs in the global-forwards section of the struts-config. Since this app gets deployed into multiple environments (with different hostnames) I would like an easier way to update my struts-config with the hostnames. I created a custom dtd (and pointed the struts-config at it) with a new HOST entity (and a reference to the existing dtd for all the rest):
<?xml version="1.0" encoding="ISO-8859-1"?> <!ENTITY HOST "localhost"> <!ENTITY % struts-config SYSTEM "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"> which I used in my path attribute in a forward tag in the struts-config: <global-forwards> <forward name="test1" redirect="true" path="http://&HOST;/test.jsp"/> <forward name="test2" redirect="true" path="https://&HOST;/test.jsp"/> </global-forwards> This worked fine when opened up the struts-config.xml in IE, but Tomcat (Struts) complained that HOST wasn't defined. Is the digester going straight to the "official" dtd and ignoring mine? Does anyone know what I am doing wrong or how else I can do this type of replacement in the struts-config? Thanks, Wayne Wilson