You can modify struts.xml to load a DTD file from the core of struts2 kernel from the class path, rather than downloading it from the Internet
FROM
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration//EN" "http://struts.apache.org/dtds/struts-2.0.dtd">
EDIT
<!DOCTYPE struts SYSTEM "struts-2.0.dtd">
now the sax parser downloaded the struts-2.0.dtd file from the / src folder where I placed it.
Also this is my modified hibernation configuration file, which worked a little differently. He downloaded the dtd file directly from the JAR, he did not have to physically put it in the src folder
<!DOCTYPE hibernate-configuration SYSTEM "classpath://org/hibernate/hibernate-configuration-3.0.dtd">
source share