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 Product and Other Certifications and the fly likes Relative path in DOCTYPE ? 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 » Certification » Product and Other Certifications
Bookmark "Relative path in DOCTYPE ?" Watch "Relative path in DOCTYPE ?" New topic
Author

Relative path in DOCTYPE ?

Raghunath Nandyala
Ranch Hand

Joined: Jan 24, 2006
Posts: 64
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..
thanks,
Raghu.


SCBCD,SCWCD,SCJP
 
jQuery in Action, 2nd edition
 
subject: Relative path in DOCTYPE ?
 
Similar Threads
deploying servlet in jrun webserver
Relative path in DOCTYPE ?
log4j - error loading log4j.dtd
JAXP related
Disabling a text filed using XHTML-MP