fckeditor struts2.0遇到的问题

xiaoxiao2024-03-29  61

没用 struts2.0之前 , fck能正常上传图片。 用了 struts2.0之后,fck上传图片弹出警告框,内容为:

Security error. You probably don't have enough permissions to upload. Please check your server web.xml中的 : <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>

改为 

<filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*.action</url-pattern> </filter-mapping>

即可。

 

对应的目录不存在也可能造成错误。

相关资源:JAVA上百实例源码以及开源项目
转载请注明原文地址: https://www.6miu.com/read-5014592.html

最新回复(0)