You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by wild_oscar <mi...@almeida.at> on 2008/07/17 20:04:40 UTC

How to use a local tiles-config_2_0.dtd file

I am developing an application which will be stored offline.

In tiles.xml, what header should I use so that tiles doesn't try to search
the tiles-config_2_0.dtd file online?

After putting a copy of the file in my WEB-INF/ folder, I have tried:

 <!DOCTYPE tiles-definitions PUBLIC  
     "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"    
 "tiles-config_2_0.dtd"> 

(and SYSTEM  "tiles-config_2_0.dtd">  ) 

but none of them works.

The only thing that seems to work is completely deleting the !DOCTYPE
header, which I don't think is advisable.

The issue started when I had:
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTDTiles
Configuration 2.0//EN"
 "http://tiles.apache.org/dtds/tiles-config_2_0.dtd"> 

and the address tiles.apache.org was offline.

So, what header should be used if the application will be stored on an
offline server?
-- 
View this message in context: http://www.nabble.com/How-to-use-a-local-tiles-config_2_0.dtd-file-tp18514466p18514466.html
Sent from the tiles users mailing list archive at Nabble.com.


Re: How to use a local tiles-config_2_0.dtd file

Posted by wild_oscar <mi...@almeida.at>.
I think I found the problem. There was a space missing in the DOCTYPE
configuration. After copying it like it appears on the tiles-config_2_0.dtd
on the jar file it seems to be working, even when the server is offline:

<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles
Configuration 2.0//EN" 
"http://tiles.apache.org/dtds/tiles-config_2_0.dtd">



Greg Reddin-4 wrote:
> 
> On Thu, Jul 17, 2008 at 1:04 PM, wild_oscar <mi...@almeida.at> wrote:
>>
>> I am developing an application which will be stored offline.
>>
>> In tiles.xml, what header should I use so that tiles doesn't try to
>> search
>> the tiles-config_2_0.dtd file online?
>>
>> After putting a copy of the file in my WEB-INF/ folder, I have tried:
> 
> Directly under WEB-INF/tiles-config_2_0.dtd or
> WEB-INF/classes/org/apache/tiles/resources/tiles-config_2_0.dtd
> 
> It's loaded via the classloader so it has to be in classes. It should
> be in the tiles-core.jar file. Is it not?
> 
>>  <!DOCTYPE tiles-definitions PUBLIC
>>     "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
>>  "tiles-config_2_0.dtd">
> 
> Sorry, it's been a while since I've worked with Digester
> registrations. I didn't think you had to modify the reference?
> 
> Greg
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-use-a-local-tiles-config_2_0.dtd-file-tp18514466p18525262.html
Sent from the tiles users mailing list archive at Nabble.com.


Re: How to use a local tiles-config_2_0.dtd file

Posted by Greg Reddin <gr...@gmail.com>.
On Thu, Jul 17, 2008 at 1:04 PM, wild_oscar <mi...@almeida.at> wrote:
>
> I am developing an application which will be stored offline.
>
> In tiles.xml, what header should I use so that tiles doesn't try to search
> the tiles-config_2_0.dtd file online?
>
> After putting a copy of the file in my WEB-INF/ folder, I have tried:

Directly under WEB-INF/tiles-config_2_0.dtd or
WEB-INF/classes/org/apache/tiles/resources/tiles-config_2_0.dtd

It's loaded via the classloader so it has to be in classes. It should
be in the tiles-core.jar file. Is it not?

>  <!DOCTYPE tiles-definitions PUBLIC
>     "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
>  "tiles-config_2_0.dtd">

Sorry, it's been a while since I've worked with Digester
registrations. I didn't think you had to modify the reference?

Greg