• Post Reply Bookmark Topic Watch Topic
  • New Topic

struts dont work with web xml DTD 2.4?

 
Manzar Zaidi
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This confuses me . I try to setup struts with my DD conforming to 2.4 DTD and I get an error that it was unable to parse the struts config file.

Same setup but with a 2.2 DTD works fine.

All over the web any samples I can find for struts use 2.2 DTD and not 2.4.

I find it strange ..when its said that struts are for JSP 2.0 and sevlets 2.4 , why wont it work with a DD using DTD 2.4 ?

edit: I am using struts lib and tld ver 1.2.7.
[ August 02, 2005: Message edited by: Saiyed Zaidi ]
 
Dave Salter
Ranch Hand
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should work fine. I use 2.4 and struts 1.2.7

What does your struts-config.xml look like?
 
Manzar Zaidi
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used the struts-config.xml that comes in the blank.war along with the download.

The issue isnt with it as I can run the app without making any changes to it.

I am using the 2.4 servlet jar, it runs with the 2.4 jar, but not with a WEB XML conforming to DTD 2.4.

If I change the web-xml to conform to DTD 2.4 ( and remove the taglib elements, as required ) I get errors.
If I use the default web-xml (DTD 2.2 ) it works fine.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got a similar message when moving from a 2.2 container to a 2.3 web container. In my case, the problem was with the following lines:


Apparently the 2.2 container would tolerate WEB-INF/struts-config.xml, but the 2.3 container needed /WEB-INF/struts-config.xml. This may not be the same problem you're encountering, but it's worth mentioning.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!