The current user isn't authorized for file browsing!

如果你使用了fckeditor,如果你此时还整合了struts2,那么,你极有可能见过这个
信息(fckeditor与struts2整合的方法,请自行解决):
The current user isn't authorized for file browsing!

当我们在上传图片时,很有可能会弹出这个,
此时,你要注意两点情况

1:
在src下建立一fckeditor.properties,里边的内容如下
connector.userActionImpl=net.fckeditor.requestcycle.impl.UserActionImpl
connector.userFilesPath=/res/upload/newsimages
connector.resourceType.image.path=/images


其中connector.userFilesPath是fck文件上传的根目录
connector.resourceType.image.path是相对connector.userFilesPath的相对目录

2:注意你的fckeditor-xxx.jar所在位置,这个jar只能放在各自的工程lib下,而不能放在tomcat/resin的公共目录下,这很容易理解,有些jar包里要获取当前工程的classpath,如果你把它放在公共lib下,他就获取不到当前工程的classes所在位置,也获取不到其它的绝对路径,所以在对此路径进行读写操作时,有可能就误认为是没权限读写
(第2点为个人猜测,请批评指正)

你可能感兴趣的:(The current user isn't authorized for file browsing!)