RE: [OT] Local DTDs to satisfy DOCTYPE

2002-10-25 Thread Craig R. McClanahan


On Thu, 24 Oct 2002, VEDRE, RANAPRATAP REDDY wrote:

 Date: Thu, 24 Oct 2002 23:04:00 -0400
 From: VEDRE, RANAPRATAP REDDY [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: [OT] Local DTDs to satisfy DOCTYPE

  how about using !DOCTYPE web-app SYSTEM
  instead of !DOCTYPE web-app PUBLIC and refer to the local path instead of
 the actual http url.
   u you have to change the path in the xml files if u change tha location of
 ur DTD's to a different path.


For well-known DTDs (such as the one that validates struts-config.xml files)
you do not even have to worry about this.  Struts registers a local copy
of the DTD (inside struts.jar) for the public identifiers of the DTDs it
knows about, and totally ignores the sysem identifier when it finds a
match.

Servlet containers generally do the same for standard system DTDs --
Tomcat certainly does for the web.xml DTD.  Therefore, you should be able
to run an app connected or disconnected from the network, with zero
changes.  (I do this all the time, so I know it works for Tomcat).

  -Rana.

Craig


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Local DTDs to satisfy DOCTYPE

2002-10-24 Thread VEDRE, RANAPRATAP REDDY
 how about using !DOCTYPE web-app SYSTEM
 instead of !DOCTYPE web-app PUBLIC and refer to the local path instead of
the actual http url. 
  u you have to change the path in the xml files if u change tha location of
ur DTD's to a different path.

 -Rana.

-Original Message-
From: Tony Baity [mailto:tonybaity;yahoo.com]
Sent: Thursday, October 24, 2002 10:49 PM
To: [EMAIL PROTECTED]
Subject: [OT] Local DTDs to satisfy DOCTYPE



  
Hello, 
Lets say I make a Struts application that runs on a private network... sort
of an intranet kind of App. with no connection to the internet. 
Where do I put the DTDs locally to satisfy the DOCTYPE in the XML files? 
-Tony (if XFORMS is the answer, what was the question)



-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: [OT] Local DTDs to satisfy DOCTYPE

2002-10-24 Thread Tony Baity

 
Oh my... the simplicity of it all is coming back to me. Thanks for jogging my memory. 
:)  
 
-Tony (too much work and not enough sleep)
 
 VEDRE, RANAPRATAP REDDY [EMAIL PROTECTED] wrote:how about using instead of the 
actual http url. 
u you have to change the path in the xml files if u change tha location of
ur DTD's to a different path.

-Rana.

-Original Message-
From: Tony Baity [mailto:tonybaity;yahoo.com]
Sent: Thursday, October 24, 2002 10:49 PM
To: [EMAIL PROTECTED]
Subject: [OT] Local DTDs to satisfy DOCTYPE




Hello, 
Lets say I make a Struts application that runs on a private network... sort
of an intranet kind of App. with no connection to the internet. 
Where do I put the DTDs locally to satisfy the DOCTYPE in the XML files? 
-Tony (if XFORMS is the answer, what was the question)



-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site