On Sep 7, 2005, at 1:03 AM, Bjørn T Johansen wrote:
Yes, that did the trick... :)
But isn't there another way setting this up so it's not dependent
on having an
internet connection and that the site is actually up??
In the DigesterDefinitionsReader we have the following code:
protected String registrations[] = {
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//
EN",
"/org/apache/tiles/resources/tiles-config_1_1.dtd",
"-//Apache Software Foundation//DTD Tiles Configuration 1.2//
EN",
"/org/apache/tiles/resources/tiles-config_1_2.dtd",
};
and later we have this:
// Register our local copy of the DTDs that we can find
for (int i = 0; i < registrations.length; i += 2) {
URL url = this.getClass().getClassLoader().getResource(
registrations[i+1]);
if (url != null) {
digester.register(registrations[i], url.toString());
}
}
So this basically tells Digester that if we get the DTD reference "-//
Apache Software Foundation//DTD Tiles Configuration 1.1//EN" to look
for it in or/apache/tiles/resources/tiles-config_1_1.dtd, which is
packaged with the tiles jar file. So in these cases it should be
looking in the local jar file instead of going to the URL. In fact,
it seems to be working for me. If I run the tests with my network
disconnected it all still runs fine. At one point I was getting test
failures without connectivity but I think that was before Wendy fixed
the Tiles build to include the resources in the jar file.
If you are using "-//Apache Software Foundation//DTD Tiles
Configuration 1.1//EN" or "-//Apache Software Foundation//DTD Tiles
Configuration 1.2//EN" in your DOCTYPE definition and are using the
latest cut of Standalone Tiles, I can't figure out why you had to
change the URL to get it to work. Anybody else have any idea?
Greg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]