First, you need to download fckeditor_2.6.10 in the folder format.
And download the jar package used by fckidetor. Download it here. Click the open link to download the jar package.
Previous project:
I. fck Configuration
1. decompress the jar package used by fckidetor (downloaded above) and import the jar package to the Lib of the project;
2. Decompress fckeditor_2.6.10.zip and copy the entire FCKeditor folder to webroot.
Index. jspCode:
<% @ Page contenttype = "text/html; charset = UTF-8 "pageencoding =" UTF-8 "%> <% @ taglib uri =" http://java.fckeditor.net "prefix =" fck "%> <HTML>
Use string Path = request. getparameter ("content") to obtain the value in FCKeditor In the servlet background ");
Note:The parameter must be written in the content foreground.
<Fck: Editor InstanceName = "content" Height = "500px" width = "600px">
Unless you modify the content corresponding to the content in the JS file in fck<Fck: Editor InstanceName = "content"
Otherwise, the value cannot be obtained.
Note:Fckeditor_2.6.10You do not need to configure the Web. xml file (there are a lot of information to configure, but I tried the configuration myself, but it is not correct)