vjame

          優化代碼是無止境的
          隨筆 - 65, 文章 - 9, 評論 - 26, 引用 - 0
          數據加載中……

          基于FCKeditor信息發布DEMO

          首先關于FCKeditor基本環境配置請參考文章《Java Web項目中整合FCKeditor》
           http://www.aygfsteel.com/vjame/archive/2008/09/05/227257.html

           1<%@ page contentType="text/html;charset=gb2312"%>
           2<%@ taglib uri="/FCKeditor" prefix="FCK"%>
           3<html>
           4    <head>
           5        <title>add</title>
           6    </head>
           7    <body>
           8        <form name="form1" action='insert.jsp' method="post">
           9        Title: <input name="title" size="20"><br>
          10        Author: <input name="author" size="20"><br>
          11        Content:
          12            <FCK:editor id="content" width="80%" height="320"
          13                fontNames="宋體;黑體;隸書;楷體_GB2312;Arial;Comic Sans MS;Courier 
          14New;Tahoma;Times New Roman;Verdana"
          15                imageBrowserURL="/FCKeditor-2.3/FCKeditor/editor/filemanager/browser/default/browser.html?
          16Type=Image&Connector=connectors/jsp/connector"
          17                linkBrowserURL="/FCKeditor-2.3/FCKeditor/editor/filemanager/browser/default/browser.html?
          18Connector=connectors/jsp/connector"
          19                flashBrowserURL="/FCKeditor-2.3/FCKeditor/editor/filemanager/browser/default/browser.html?
          20Type=Flash&Connector=connectors/jsp/connector"
          21                imageUploadURL="/FCKeditor-2.3/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Image"
          22                linkUploadURL="/FCKeditor-2.3/FCKeditor/editor/filemanager/upload/simpleuploader?Type=File"
          23                flashUploadURL="/FCKeditor-2.3/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Flash">
          24            </FCK:editor>
          25
          26            <input type="submit" name="SubM" value="發表" />
          27        </form>
          28    </body>
          29</html>
          30

          Mysql數據庫表設計:

          /*Column Information For - test.fck*/
          -------------------------------------

          Field    Type         Collation        Null    Key     Default  Extra   Privileges                       Comment
          -------  -----------  ---------------  ------  ------  -------  ------  -------------------------------  -------
          name     varchar(50)  utf8_general_ci  YES             (NULL)           select,insert,update,references        
          content  text         utf8_general_ci  YES             (NULL)           select,insert,update,references        
          author   varchar(20)  utf8_general_ci  YES             (NULL)           select,insert,update,references        

          /*Index Information For - test.fck*/
          ------------------------------------

          Table   Non_unique  Key_name  Seq_in_index  Column_name  Collation  Cardinality  Sub_part  Packed  Null    Index_type  Comment
          ------  ----------  --------  ------------  -----------  ---------  -----------  --------  ------  ------  ----------  -------


          /*DDL Information For - test.fck*/
          ----------------------------------

          Table   Create Table                         
          ------  --------------------------------------
          fck     CREATE TABLE `fck` (                 
                    `name` varchar(50) default NULL,   
                    `content` text,                    
                    `author` varchar(20) default NULL  
                  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 


          源代碼下載:http://www.aygfsteel.com/Files/vjame/FCKeditor-2.3.rar  直接導入到eclipse部署,然后服務器中運行

          posted on 2008-09-10 09:52 lanjh 閱讀(405) 評論(0)  編輯  收藏 所屬分類: Java Web

          主站蜘蛛池模板: 安吉县| 兴化市| 南靖县| 长宁区| 邢台县| 滁州市| 石棉县| 酉阳| 铁力市| 临颍县| 苏尼特右旗| 西畴县| 东源县| 永福县| 沧州市| 盐津县| 武陟县| 仪征市| 墨脱县| 安阳县| 靖边县| 常熟市| 田东县| 中西区| 永清县| 分宜县| 山东省| 贺州市| 旬阳县| 鹿泉市| 平定县| 宁德市| 阜宁县| 万荣县| 阿勒泰市| 定西市| 马关县| 南靖县| 奉贤区| 普洱| 襄樊市|