This content has been marked as final. Show 1 reply
If it is like the below:-Correct, in the classpath or any other path resolver that a tool may use.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions SYSTEM "tiles-config_1_2.dtd">
In such case the tiles-config_1_2.dtd should be located in the classpath of the local system?
For the first one to work, <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"Actually no.
"http://jakarta.apache.org/struts/dtds/tiles-config_1_2.dtd"> we need to have an internet connection so that internally a search will be
done and the respective tiles-config_1_2.dtd will be picked up.
Contrary to SYSTEM, the PUBLIC doctype provides :
a DTD name in the form of an FPI : -//Apache Software Foundation//DTD Tiles Configuration 1.1//EN
a DTD url : http://jakarta.apache.org/struts/dtds/tiles-config_1_2.dtd
Generally, tools that need access to DTDs rely on the FPI to find them.
That means, somewhere in the installation, there has to be an XML/DTD catalog with key-value pairs describing where to find a local copy of the DTD associated with a given FPI.