J2EE study notes -- use FCKeditor in JSP

Source: Internet
Author: User

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)

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.