如果將所有struts包引入會出現問題:struts2 unable to load configuration. - bean - jar ..... web-inf/lib/struts2-core-2.1.2.jar!/struts-default.xml:46:178
解決辦法是只引入struts2必須的包:
commons-logging-1.0.4.jar
freemarker-2.3.12.jar
ognl-2.6.11.jar
struts2-core-2.1.2.jar
xwork-2.1.1.jar
這五個核心lib要複製外,
commons-io-1.3.2.jar
commons-fileupload-1.2.1.jar
這兩個jar檔案也必須放到指定目錄
使用Struts2必須配備的Jar包
因此要想正常使用struts2.1.6,至少需要如下6 個jar包 struts2 core 2.1.6.jar freemarker 2.3.13.jar commons logging 1.0.4.jar ognl 2.6.11.jar xwork 2.1.2.jar commons fileu...
使用Struts2必須配備的Jar包
2009 06 04 10 36 佚名 網易部落格 字型大小 t t 本文將介紹正常使用struts2必須配備的jar包,包括使用struts2注視功能,需要引用的jar檔案等等。struts2 core 2.1.6.jar freemarker 2.3.13.jar commons logging...
struts2必要的包
想正常使用struts2.1.6,至少需要如下6 個jar包 struts2 core 2.1.6.jar freemarker 2.3.13.jar commons logging 1.0.4.jar ognl 2.6.11.jar xwork 2.1.2.jar commons fileuplo...