vjame

优化代码是无止境的
随笔 - 65, 文章 - 9, 评论 - 26, 引用 - 0
数据加载中……

基于FCKeditor信息发布DEMO

首先关于FCKeditor基本环境配置请参考文章《Java Web项目中整合FCKeditor》
 http://www.blogjava.net/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.blogjava.net/Files/vjame/FCKeditor-2.3.rar  直接导入到eclipse部署,然后服务器中运行

posted on 2008-09-10 09:52 lanjh 阅读(389) 评论(0)  编辑  收藏 所属分类: Java Web


只有注册用户登录后才能发表评论。


网站导航: