ckeditor
①ckeditor文件夾解壓后放到webapp文件夾下
②在<script>對標(biāo)簽中引入——<script type=text/javascript src="/ckeditor/ckeditor.js"></script>
③在想引用編輯器的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/");