struts中"struts-config" must match "问题的解决方法

来源:互联网 发布:淘宝男装短袖 编辑:程序博客网 时间:2024/05/21 09:20
今天写struts的时候出现:

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

这个错误!

检查的时候发现标签是对的,书写也没有问题。最后终于发现解决方法:

就是struts-config中标签是有顺序的,当把标签的顺序改成按照上面错误提示的顺序写问题就会解决了。

1 0