第一次使用这个编辑器;
其他还好,就是添加图片的时候不怎么会,用的是JSP
添加图片的时候,用的是自带的JSP 的DEMO。
本来一切正常,可是整合Struts2 后,上传图片就不行了,但是浏览服务器上的文件还是正常的。
就是在web.xml 添加了下面的这段代码:
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
我反复测试了好多次,把这段删掉就行,加上就不行。肯定是这段的原因。
再上传就不行了。求解答。
上传之后后台的警告信息:
2012-3-19 12:39:21 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: Could not find property [struts.actionMapping]
2012-3-19 12:39:21 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: Could not find property [struts.actionMapping]
2012-3-19 12:39:21 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: Could not find property [org.apache.catalina.jsp_file]
2012-3-19 12:39:21 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: Could not find property [struts.actionMapping]
2012-3-19 12:39:21 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: Could not find property [struts.actionMapping]
2012-3-19 12:39:37 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to find 'struts.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir
2012-3-19 12:39:37 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: Could not find property [struts.actionMapping]
2012-3-19 12:39:37 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: Could not find property [org.apache.catalina.jsp_file]