Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

.dtd files used in .tld files

 
Jian Yi
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic