There are (from 2.3): 79: dtdMappings.put("-//Apache Software Foundation//DTD Struts Configuration 2.0//EN", "struts-2.0.dtd"); 80: dtdMappings.put("-//Apache Software Foundation//DTD Struts Configuration 2.1//EN", "struts-2.1.dtd"); 81: dtdMappings.put("-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN", "struts-2.1.7.dtd"); 82: dtdMappings.put("-//Apache Software Foundation//DTD Struts Configuration 2.3//EN", "struts-2.3.dtd");
On Mon, Dec 3, 2012 at 4:25 PM, ChadDavis <chadmichaelda...@gmail.com> wrote: > Why aren't there mappings for the struts-xxx.dtd's? > > > > On Mon, Dec 3, 2012 at 1:20 AM, Lukasz Lenart <lukaszlen...@apache.org>wrote: > >> 2012/12/1 ChadDavis <chadmichaelda...@gmail.com>: >> > Thanks Lukasz. This is very useful information. I think this clearly >> fixes >> > my problem, but I still have some questions. >> > >> > 1) when was xwork moved to ASF? >> >> Just before 2.2.1, two years ago, but DTDs where changed sometime later >> >> http://struts.apache.org/2.x/docs/version-notes-221.html >> >> > 2) It's not really Struts 2 doing the look up right? It's the sax >> parser? >> > Is Struts2 using the EntityResolver to add the resolution logic that >> > converts the DOCTYPE tag to a classpath resource lookup? If you don't >> know >> > of the top of your head, I plan to dive into the code myself anyhow. >> >> Yes, but you can tell the parser where the DTDs are, so it can read >> them locally before looking for them over the internet. See >> XmlConfigurationProvider for more details. >> >> Example: >> mappings.put("-//Apache Struts//XWork 2.3//EN", "xwork-2.3.dtd"); >> mappings.put("-//Apache Struts//XWork 2.1.3//EN", >> "xwork-2.1.3.dtd"); >> mappings.put("-//Apache Struts//XWork 2.1//EN", "xwork-2.1.dtd"); >> mappings.put("-//Apache Struts//XWork 2.0//EN", "xwork-2.0.dtd"); >> mappings.put("-//Apache Struts//XWork 1.1.1//EN", >> "xwork-1.1.1.dtd"); >> mappings.put("-//Apache Struts//XWork 1.1//EN", "xwork-1.1.dtd"); >> mappings.put("-//Apache Struts//XWork 1.0//EN", "xwork-1.0.dtd"); >> >> >> Regards >> -- >> Ćukasz >> + 48 606 323 122 http://www.lenart.org.pl/ >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton b: Bucky Bits g: davelnewton so: Dave Newton --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org