web.xml配置了一下
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
</filter> <filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
---------------------------------------------
然后就建立了一个treenode的jsp页面<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%><html>
<head>
<s:head theme="ajax" />
</head>
<body>
<s:tree id="sunyang" theme="ajax" label="Sunyang" showRootGrid="false"
showGrid="true">
<s:treenode label="Struts2.0" id="1" theme="ajax">
<s:treenode label="c1" id="11" theme="ajax" />
<s:treenode label="c2" id="22" theme="ajax" />
<s:treenode label="c3" id="33" theme="ajax" />
<s:treenode label="c4" id="44" theme="ajax" />
<s:treenode label="c5" id="55" theme="ajax" />
</s:treenode>
<s:treenode label="Spring" id="2" theme="ajax">
<s:treenode label="c1" id="11" theme="ajax" />
<s:treenode label="c2" id="22" theme="ajax" />
<s:treenode label="c3" id="33" theme="ajax" />
<s:treenode label="c4" id="44" theme="ajax" />
<s:treenode label="c5" id="55" theme="ajax" />
</s:treenode>
<s:treenode label="Ajax" id="3" theme="ajax">
<s:treenode label="c1" id="11" theme="ajax" />
<s:treenode label="c2" id="22" theme="ajax" />
<s:treenode label="c3" id="33" theme="ajax" />
<s:treenode label="c4" id="44" theme="ajax" />
<s:treenode label="c5" id="55" theme="ajax" />
</s:treenode>
<s:treenode label="JPA" id="4" theme="ajax">
<s:treenode label="c1" id="11" theme="ajax" />
<s:treenode label="c2" id="22" theme="ajax" />
<s:treenode label="c3" id="33" theme="ajax" />
<s:treenode label="c4" id="44" theme="ajax" />
<s:treenode label="c5" id="55" theme="ajax" />
</s:treenode>
<s:treenode label="Hibernate" id="5" theme="ajax">
<s:treenode label="c1" id="11" theme="ajax" />
<s:treenode label="c2" id="22" theme="ajax" />
<s:treenode label="c3" id="33" theme="ajax" />
<s:treenode label="c4" id="44" theme="ajax" />
<s:treenode label="c5" id="55" theme="ajax" />
</s:treenode>
</s:tree>
</body>
</html>-------------------------------------------没有建立struts.xml。运行后出错
显示错误
End event threw exception和Parse error in application web.xml file at jndi:/localhost/Salse/WEB-INF/web.xml但是静态书依然显示出来,请问这两个是什么错误啊?