This week's book giveaway is in the Design forum.
We're giving away four copies of Mastering Non-Functional Requirements and have Sameer Paradkar on-line!
See this thread for details.
Win a copy of Mastering Non-Functional Requirements this week in the Design forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Relative path in DOCTYPE ?  RSS feed

Raghunath Nandyala
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
In my servlet is unable to locate dtd for given xml as when i give relative path in DOCTYPE
My status.xml,status.dtd files are in c:\
and in that when i gave
<!DOCTYPE status SYSTEM "c:\status.dtd"> my servlet is recoginising dtd

But when i gave
<!DOCTYPE status SYSTEM "./status.dtd">
<!DOCTYPE status SYSTEM "status.dtd">

it is not getting the file and is searching in C:\Tomcat 5.5\status.dtd
how we can make more platform independent by giving relative path there

please suggest me..
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!