Fckeditor的Java使用

 

 

网站也有war包的实例。

 

 

有视频指导的。

<textarea cols="50" rows="15" name="code" class="c-sharp">&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %&gt; &lt;%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;title&gt;添加文章&lt;/title&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;mce:script type="text/javascript"&gt;&lt;!-- // --&gt;&lt;/mce:script&gt; &lt;/head&gt; &lt;body&gt; &lt;br /&gt; &lt;form action="fckget.jsp" method="post" target="_blank"&gt; &lt;FCK:editor instanceName="articleEditor" &gt; &lt;jsp:attribute name="value"&gt; &lt;/jsp:attribute&gt; &lt;/FCK:editor&gt; &lt;br /&gt; &lt;input type="submit" value="Submit" /&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;</textarea>

 

<textarea cols="50" rows="15" name="code" class="c-sharp">&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="java.util.Enumeration;"%&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;title&gt;FCKeditor - Samples - Posted Data&lt;/title&gt; &lt;/head&gt; &lt;%request.setCharacterEncoding("UTF-8"); %&gt; &lt;body&gt; &lt;h1&gt;FCKeditor - Samples - Posted Data&lt;/h1&gt; This page lists all data posted by the form. &lt;hr /&gt; &lt;table width="100%" border="1" cellspacing="0"&gt; &lt;tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999" mce_style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999"&gt; &lt;td nowrap="nowrap"&gt;Field Name&nbsp;&nbsp;&lt;/td&gt; &lt;td&gt;Value&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td nowrap="nowrap"&gt;&lt;b&gt;articleEditor&lt;/b&gt;&lt;/td&gt; &lt;td width="100%"&gt;&lt;%=request.getParameter("articleEditor")%&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/body&gt; &lt;/html&gt; </textarea>

你可能感兴趣的:(java,html,XHTML,fckeditor,border,encoding)