jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes .dtd files used in .tld files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark ".dtd files used in .tld files" Watch ".dtd files used in .tld files" New topic
Author

.dtd files used in .tld files

Jian Yi
Ranch Hand

Joined: Feb 01, 2002
Posts: 127
Hi all,
We used external references of .dtd files in .tld files. The external references are like java.sun.com, or jarkata site. It's not a good practice. I know that we can point those .dtd files to our internal site. But I'm just wondering if there is a way to config this so that .dtd files are not necessary.
Thanks,
Jenny
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

According to Jakarta, "You will need to explicitly reference the external DOCTYPE because of a recent change to call the validating parser"
Of course, you can always copy the files and reference them locally as you are doing.
I don't understand why "it's not a good practice" unless you are afraid of the sun.com server crashing.
You can probably leave out the "external" reference from your DOCTYPE if .dtds are just waaaaaay too inconvenient :roll: but that whole validating parser dealio that Jakarta talks about might be pretty important. I think it would not be a good practice to leave them out of the picture.


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .dtd files used in .tld files
 
Similar Threads
Large number of external entity references
Include imagesin XML schema?
should we download remote dtd and xsd files
xdoclet
Serious Struts Compatibility issue