Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: Include file?

Hassan Schroeder

2004-05-07

Replies:

Steven Garrett wrote:

> ok, since I know nothing about adding xml entites to the server.xml, I'm
> sure there has to be examples out there. I'll take a look and hopefully
> I'll be able to come back with something.

Uh, there's an example in the Ant FAQ that was (somewhat obliquely)
pointed to yesterday; adapted, you just need something like:

<!DOCTYPE Server [
 <!ENTITY vhosts SYSTEM "file:/usr/local/tomcat/conf/virtual.xml">
]>

<!-- and within your Engine section, in this case -->

&vhosts;

The only difference I found from the Ant example was that it needed
the full path or produced a FileNotFoundException. No big deal...

Tested in W2K/TC4 and OSX/TC5.

FWIW!
--
Hassan Schroeder ----------------------------- hassan@(protected)
Webtuitive Design === (+1) 408-938-0567  === http://webtuitive.com

                 dream. code.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.