在struts配置文件中 为什么会有这样的错误

来源:百度知道 编辑:UC知道 时间:2024/05/06 04:50:44
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*)".

<struts-config>的下一级标签只能是上面提到的那些,即下面
<struts-config>
<form-beans />
<global-exceptions />
<global-forwards />
<action-mappings />
<controller />
</struts-config>
看看你是不是有标签名写错的,如果写错任何一个就会报那个错。
楼上说的对,顺序颠倒也会报那个错。

要么是里面的标签字母写错了,那么是标签顺序写反了,本来这个标签应该放在另一个标签的上面的,结果你放到另一个标签的下面去了.