| Author |
unable to declare plugin inside struts-config.xml
|
jatinkumar patel
Greenhorn
Joined: Apr 19, 2009
Posts: 23
|
|
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
Joined: Feb 19, 2008
Posts: 2896
|
|
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.
|
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
|
 |
Sagar Rohankar
Ranch Hand
Joined: Feb 19, 2008
Posts: 2896
|
|
Sorry.. You got the wrong dtd, change it as:
otherwise, there is NO support for plug-ins in Struts 1.x
|
 |
jatinkumar patel
Greenhorn
Joined: Apr 19, 2009
Posts: 23
|
|
Sagar,
Thnks for the quick reply.
But unfortunately i am getting the same error.
|
 |
Sagar Rohankar
Ranch Hand
Joined: Feb 19, 2008
Posts: 2896
|
|
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.
|
 |
 |
|
|
subject: unable to declare plugin inside struts-config.xml
|
|
|