<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
而不是FilterDispatcher,這個是最早的版本,妳現在用的包已經不支持這個了,何況就單獨跑個struts2也用不了那麽多包。 struts2-core-2.0.6.jar
xwork-2.0.4.jar
ognl-2.6.11.jar
freemarker-2.3.8.jar
commons-logging-1.0.4.jar這5個就夠了,如果有上傳功能再加上commons-fileupload.jar