This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: .dtd files used in .tld files
 
Similar Threads
Serious Struts Compatibility issue
Include imagesin XML schema?
Large number of external entity references
xdoclet
should we download remote dtd and xsd files