I am using Tiles in a Struts (v.1.2.7) app, and also experienced an error when the Apache site was temporarily down. So to prevent this from happening in the future, what is the suggested solution? Removing the DOCTYPE element from the tiles-def.xml file does not seem appropriate - or is it? Any suggestions would be appreciated... thanks! Regards, Chris
>>> [EMAIL PROTECTED] 11/28/2005 3:14:31 PM >>> On Nov 28, 2005, at 1:57 PM, Craig McClanahan wrote: > On 11/28/05, Greg Reddin <[EMAIL PROTECTED]> wrote: > >> >> >> 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", >> }; >> > > > Hmm ... Shale uses exactly this style for its own config resources, > including the leading slash on the URLs, and it seems to work fine > when I > disconnect from the Internet. I suspect there might be version > specific > issues with URL resolution between JVMs in this area. I think the issue is this: Standalone Tiles uses the ClassLoader directly, while Struts-Tiles goes through the Class (which delegates to the ClassLoader according to the Javadoc). Compare Standalone Tiles: URL url = this.getClass().getClassLoader().getResource( to Struts-Tiles: URL url = this.getClass().getResource( The effect is that if you use the ClassLoader you cannot have a leading "/" on the name. Now I'm not sure which is more correct... Greg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]