RSS

Monthly Archives: August 2009

The content of element type “struts-config” must match “(display-name?,description?,data-sources?,form-beans?,global-exceptions?, global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)”.

While working in struts recently I got this error.

“The content of element type “struts-config” must match “(display-name?,description?,data-sources?,form-beans?,global-exceptions?, global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)”.

From the error it was hard to find that what is wrong and where as I cross checked my struts-config file a number of times.  This error mainly comes because of the mixing of the order of struts elements. To solve this have a look of the DTD present at the given location

Location :-> http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd

Once your elements are in proper order the error will be solved.

 
7 Comments

Posted by on August 7, 2009 in Struts