Niklas,

I think there is nothing to do with any kind of validation. When you refer 
a doctype in your struts-config.xml file, it will verify it from DTD which 
is part of struts.jar, either you can put jar file in such a place that 
classloader can load it (web-inf/lib) or you can place DTD file in web-inf 
folder of WAR. If DTD is not available then only it will try to connect to 
internet. First verify that struts.jar which is loaded by classloader is 
having this 1.3 DTD or not.

Hope it helps..

Thanks & Regards
Sunil





[EMAIL PROTECTED] 
05/11/2006 03:31 PM
Please respond to
Struts Users Mailing List <user@struts.apache.org>


To
user@struts.apache.org
cc

Subject
Problems fetching struts-config DTD






Hi!

I have a Struts webapp with a struts-config.xml that starts with the usual

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
  "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
  "http://struts.apache.org/dtds/struts-config_1_3.dtd";>

So when the web application is started Struts goes out to
struts.apache.org to try to fetch the DTD file. This is becoming a problem
since the Internet can't be reached from all environments that the web
application is going to run in.

What is the preferred way to handle this?

Can you turn of validation so Struts never tries to fetch the DTD file? I
have tried to add an init-param validating=false to web.xml (also tried
validate=true) but that didn't seem to help.

Can you put the DTD file locally womewhere inside the webapp and reference
it in a way so that it works regardless of the environment?

Thanks for any help!

/Niklas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to