欢迎来到天天文库
浏览记录
ID:40538026
大小:34.31 KB
页数:9页
时间:2019-08-04
《Fckeditor的使用》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Fckeditor的使用一.在web。Xml里面加入servlet配置1.2.ConnectorServlet3.4.com.gzbugu.gift.fck.servlet.ConnectorServlet5.6.17.8.9.ConnectorS
2、ervlet10.11./fckeditor/editor/filemanager/connectors/*12.13.二.在src目录下添加这样的类packagecom.gzbugu.gift.fck.servlet;importjava.io.File;importjava.io.IOException;importjava.io.PrintWriter;importjava.util.List;importj
3、avax.servlet.ServletException;importjavax.servlet.http.HttpServlet;importjavax.servlet.http.HttpServletRequest;importjavax.servlet.http.HttpServletResponse;importnet.fckeditor.connector.Messages;importnet.fckeditor.handlers.CommandHandler;importnet.fckeditor.handlers.C
4、onnectorHandler;importnet.fckeditor.handlers.ExtensionsHandler;importnet.fckeditor.handlers.RequestCycleHandler;importnet.fckeditor.handlers.ResourceTypeHandler;importnet.fckeditor.response.UploadResponse;importnet.fckeditor.response.XmlResponse;importnet.fckeditor.too
5、l.Utils;importnet.fckeditor.tool.UtilsFile;importnet.fckeditor.tool.UtilsResponse;importorg.apache.commons.fileupload.FileItem;importorg.apache.commons.fileupload.FileItemFactory;importorg.apache.commons.fileupload.disk.DiskFileItemFactory;importorg.apache.commons.file
6、upload.servlet.ServletFileUpload;importorg.apache.commons.io.FilenameUtils;importorg.slf4j.Logger;importorg.slf4j.LoggerFactory;/***Servlettouploadandbrowsefiles.**Thisservletaccepts4commandswhichinteractwiththeserver-side*filesystem.*Theallowedcommandsare:*<
7、ul>*
GetFolders
GetFoldersAndFiles
CreateFolder
FileUpload
8、:Storesanuploadedfileintothecurrent*folder.(mustbesentwithPOST)
此文档下载收益归作者所有