• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts dont work with web xml DTD 2.4?

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 293
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Won't you be my neighbor? - Fred Rogers. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic