struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: wierd stack trace regarding parsing of struts.xml
Date Mon, 03 Dec 2012 08:20:52 GMT
2012/12/1 ChadDavis <chadmichaeldavis@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message