报错:“The content of element type "package" must match "(result-types?,interceptors?,default-intercept

来源:互联网 发布:华东理工大学知乎事件 编辑:程序博客网 时间:2024/05/19 23:02
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="hello" namespace="/hello" extends="struts-default">
<ation name="HelloAction" class="cn.heima.a_hello.HelloWorld" method="hello">
<result name="success">/hello.jsp</result>
</ation>
</package>

</struts>

--------------------------------------------------------------------------------------------

action标签写错了!

阅读全文
0 0