ckEditor和commons fileupload

ckeditor

①ckeditor文件夹解压后放到webapp文件夹下

②在

③在想引用编辑器的textarea,id和class缺一不可,class="ckeditor"

commons upload

①添加两个jar包——commons-fileupload.jar和commons-io.jar

②form表单enctype="multipart/form-data"

③指定上传位置

String uploadFilePath = request.getSession().getServletContext().getRealPath("/upload/");

你可能感兴趣的:(ckEditor和commons fileupload)