ckeditor
进入插件复制到web-app下面
script导入ckeditor.js文件
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
引入类选择器ckeditor,textarea必须存在id属性,否则无法显示
<textarea cols="150" rows="30" id="text" name="textName" class="ckeditor"></textarea>
导包
commons-io-2.4.jar
commons-fileupload-1.2.2.jar
限定提交方式为post
enctype="multipart/form-data"
<form action="提交地址" method="post" enctype="multipart/form-data"></form>
Servlet接收上传文件
//处理表单请求
List items = upload.parseRequest(request);
//解析请求之前先判断请求类型是否为文件上传类型enctype="multipart/form-data"
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
boolean isFormField() 普通表单控件
File fullFile =new File(fileName);