Posted on 2009-04-08 08:51
landor 阅读(643)
评论(0) 编辑 收藏 所属分类:
web编辑器
1 到
http://sourceforge.net/project/showfiles.php?group_id=75348&package_id=129511&abmode=1
下载
fckeditor-java-demo-2.4.war
2 拷贝到tomcat的webapp下直接运行
3 拷贝fckeditor和userfiles文件夹到项目
4 拷贝WEB-INF\lib下的jar包到项目
5 web.xml内容拷贝
<servlet>
<servlet-name>Connector</servlet-name>
<servlet-class>
net.fckeditor.connector.ConnectorServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Connector</servlet-name>
<url-pattern>
/fckeditor/editor/filemanager/connectors/*
</url-pattern>
</servlet-mapping>
6 拷贝WEB-INF\classes下的文件fckeditor.properties到classpath下,这里默认配置的是用户权限的属性,如果不设置会提示"the current user isn't ..........."
7 对demo1.jsp进行内容拷贝!
注意:
1 如果配置了struts2的话,那么filter不能配制成/*,这样会和fck冲突,出现类似Security error.You probably don't have enough permissions to upload的错误提示,最好是分开写*.do和*.jsp,不要写成/*