• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to declare plugin inside struts-config.xml

 
jatinkumar patel
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • 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?)"
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • 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: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Sagar,

Thnks for the quick reply.
But unfortunately i am getting the same error.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic