乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

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

       Joshua 2006-01-24

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

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

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

      4. 上面兩個servlet的映射分別為:/editor/filemanager/browser/default/connectors/jsp/connector和/editor/filemanager/upload/simpleuploader,因為我的FCKeditor是放到\項目名\FCKeditor\目錄下,所以需要在兩個映射前面加上/FCKeditor,即改為/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector和/FCKeditor/editor/filemanager/upload/simpleuploader。

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

          在頁面的頂部加入〈%@ taglib uri="http:///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/,這個表示訪問項目的URL為http://127.0.0.1:8080/CM/,如果訪問的URL為:http://127.0.0.1:8080/ 的話,只需要將上面的/CM去掉就行,不用修改web.xml文件。

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

        本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多