File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark ".dtd files used in .tld files" Watch ".dtd files used in .tld files" New topic

.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, 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.
Marc Peabody
pie sneak

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 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:
subject: .dtd files used in .tld files
It's not a secret anymore!