• 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

unable to declare plugin inside struts-config.xml

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am not able to declare plugin inside struts-config.xml

this is my current struts-config.xml


But when i try to insert


The struts-config.xml shows me error

ERROR : The Content of elemnt type "struts-config" must match "(data sources?, form beans?, global forwards?, action-mappings?)"
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

jatinkumar patel wrote:
ERROR : The Content of elemnt type "struts-config" must match "(data sources?, form beans?, global forwards?, action-mappings?)"


XML is not valid, please make sure you inserted the plug-in tag inside the <struts-config..> tag, i.e exactly inside the root tag.
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry.. You got the wrong dtd, change it as:


otherwise, there is NO support for plug-ins in Struts 1.x
 
jatinkumar patel
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sagar,

Thnks for the quick reply.
But unfortunately i am getting the same error.
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Few Suggestions:
1. Clean and rebuild the project.
2. Try upgrading Struts to version 1.3.x, download the "struts-blank-1.3.x.war" file, unzip it and use it as base for all the struts project.

Problem is with your dtd declaration, always check validness of xml before building the solution.
 
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic