这是我的struts-sonfig.xml文件中的全局跳转配置:
<struts-config>
<global-forwards>
<forward name="error" path="/error.jsp"></forward>
</global-forwards>
</struts-config>
但总是报错!
我有的是MyEclipse编译器,报错内容如下:
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>
<form-beans>
<form-bean />
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings />
</struts-config>