How to configure and use fckeditor in JSP Environment

Source: Internet
Author: User

FCKeditor is an open-source project on sourceforge.net. It mainly implements the online web editor function and enables web programs to have powerful editing functions such as MS Word. Official Website for http://www.fckeditor.net, server support ASP. Net, ASP, ClodFusion, PHP, Java and other languages, and support IE 5 +, Mozilla, Netscape and other mainstream browsers.

Download fckeditor from the official website. Note that there are two packages: The main file and the jsp integration package.

1. Decompress fckeditor_2.2.zip (main file of FCKeditor) and copy the FCKeditor directory to the root directory of the website,

2. Decompress fckeditor-2.3.zip, (jsp, FCKeditor Integration package), role: This is the JSP Integration Pack for using FCKeditor inside a java server page without the complexity of using a Java scriptlets or the javascript api.

3. Copy the servlet-mapping definition in the FCKeditor-2.3/web/WEB-INF/web. xml to the web. xml file of your project.

Modify the following content:

<Servlet-mapping> <servlet-name> Connector </servlet-name> <url-pattern>/editor/filemanager/browser/default/connectors/jsp/connector </url- pattern> </servlet-mapping> <servlet-name> SimpleUploader </servlet-name> <url-pattern>/editor/filemanager/upload/simpleuploader </ url-pattern> </servlet-mapping>

Modification result:

<Servlet-mapping> <servlet-name> Connector </servlet-name> <url-pattern>/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector ctor </ url-pattern> </servlet-mapping> <servlet-name> SimpleUploader </servlet-name> <url-pattern>/FCKeditor/editor/filemanager/upload /simpleuploader </url-pattern> </servlet-mapping>

  • Three pages in total:
  • Previous Page
  • 1
  • 2
  • 3
  • Next Page

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.