第三方空件的运用(文本域)
第一:导包ckeditor
首先下载CKEditor:
http://ckeditor.com/download
解压并复制CKEditor到项目中
将此包放入到WebRoot下
第二:在jsp页面使用
代码如下(主要代码):
<script type="text/javascript" src="<%=request.getContextPath() %>/ckeditor/ckeditor.js"> </script>
</head>
<body>
<form action="NewsList.jsp">
主要内容:<textarea name="content" class="ckeditor"></textarea><br/>
文件路径:<input type="file" name="picPath"/><br/>
</form>
</body>
第一:导包ckeditor
首先下载CKEditor:
http://ckeditor.com/download
解压并复制CKEditor到项目中
将此包放入到WebRoot下
第二:在jsp页面使用
代码如下(主要代码):
<script type="text/javascript" src="<%=request.getContextPath() %>/ckeditor/ckeditor.js"> </script>
</head>
<body>
<form action="NewsList.jsp">
主要内容:<textarea name="content" class="ckeditor"></textarea><br/>
文件路径:<input type="file" name="picPath"/><br/>
</form>
</body>