国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
在JSP中應(yīng)用FCKeditor(2.1.1和FCKeditor.Java 2.3)

1. 將FCKeditor2.1.1解壓縮到項(xiàng)目的根目錄下,目錄結(jié)構(gòu)為:\項(xiàng)目名\FCKeditor\ ,然后將FCKeditor-2.3.zip(java)壓縮包中\(zhòng)web\WEB-INF\lib\目錄下的兩個(gè)jar文件拷到項(xiàng)目的\WEB-INF\lib\目錄下。

2. 將FCKeditor-2.3.zip壓縮包中\(zhòng)web\WEB-INF\目錄下的web.xml文件合并到項(xiàng)目的\WEB-INF\lib\目錄下的web.xml文件中。

3. 修改合并后的web.xml文件,將名為SimpleUploader的Servlet的enabled參數(shù)值改為true,以允許上傳功能,Connector Servlet的baseDir參數(shù)值用于設(shè)置上傳文件存放的位置。

4. 上面兩個(gè)servlet的映射分別為:/editor/filemanager/browser/default/connectors/jsp/connector和/editor/filemanager/upload/simpleuploader,因?yàn)槲业腇CKeditor是放到\項(xiàng)目名\FCKeditor\目錄下,所以需要在兩個(gè)映射前面加上/FCKeditor,即改為/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector和/FCKeditor/editor/filemanager/upload/simpleuploader。

5. 采用Taglib在jsp中添加如下代碼創(chuàng)建在線編輯器:

    在頁面的頂部加入〈%@ taglib uri="http://fckeditor.net/tags-fckeditor" prefix="FCK" %〉

    在適當(dāng)?shù)奈恢眉尤胂旅娲a

  〈FCK:editor id="infoContent" basePath="/CM/FCKeditor/"
              width="522"
              height="300"
              skinPath="/CM/FCKeditor/editor/skins/silver/"
              defaultLanguage="zh-cn"
              tabSpaces="8"
              toolbarSet="CM"
              imageBrowserURL="/CM/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"
              linkBrowserURL="/CM/FCKeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
              flashBrowserURL="/CM/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"
              imageUploadURL="/CM/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Image"
              linkUploadURL="/CM/FCKeditor/editor/filemanager/upload/simpleuploader?Type=File"
              flashUploadURL="/CM/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Flash"〉
              請輸入內(nèi)容
  〈/FCK:editor〉

    注意/CM/,這個(gè)表示訪問項(xiàng)目的URL為http://127.0.0.1:8080/CM/,如果訪問的URL為:http://127.0.0.1:8080/ 的話,只需要將上面的/CM去掉就行,不用修改web.xml文件。

6. 經(jīng)過上面步驟就可以在jsp中使用FCKeditor了。

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
FCKEditor使用說明
在jsp環(huán)境中配置使用FCKEditor_網(wǎng)頁陶吧_jsp_天極Yesky
FCKeditor——強(qiáng)大的HTML文本編輯插件(詳細(xì)安裝篇)
基于java使用FCKeditor
FCKeditor2.6 for JSP 配置方法
在項(xiàng)目中整合FCKeditor
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服