Configure fckeditor_2.6.3 + fckeditor-java-2.4

Source: Internet
Author: User

Download

Http://www.fckeditor.net/download

FCKeditor. Java
Http://sourceforge.net/project/showfiles.php? Group_id = 75348 & package_id = 129511


-1-
Copy the FCKeditor folder to the project's webroot directory.

-2-
Add jar package
Slf4j-simple-1.5.0.jar
Slf4j-api-1.5.0.jar
Java-core-2.4-beta-1.jar
Commons-io-1.3.2.jar
Commons-fileupload-1.2.jar


-3-
Under classes

FCKeditor. Properties
Content:
Connector. useractionimpl = net. FCKeditor. requestcycle. impl. useractionimpl

Log4j. Properties
Content:
Log4j. rootlogger = debug, socket

Log4j. appender. Socket = org.apache.log4j.net. socketappender
Log4j. appender. Socket. remotehost = localhost
Log4j. appender. Socket. Port = 4445

Log4j.logger.org. Apache = warn


-4-
Project web. xml
<Servlet>
<Servlet-Name> connector </servlet-Name>
<Servlet-class>
Net. FCKeditor. connector. connectorservlet
</Servlet-class>
<Load-on-startup> 1 </load-on-startup>
</Servlet>

<Servlet-mapping>
<Servlet-Name> connector </servlet-Name>
<URL-pattern>
/FCKeditor/Editor/filemanager/connectors /*
</Url-pattern>
</Servlet-mapping>


-5-
Use on the page

<% @ Taglib uri = "http://java.fckeditor.net" prefix = "fck" %>

<Form action = "" method = "Post">
<Fck: Editor InstanceName = "default" value = "">
</Fck: Editor>
<Br/>
<Input type = "Submit" value = "Submit"/>
</Form>

<Fck: Editor InstanceName = "default" value = "">
</Fck: Editor> the value must contain spaces!

Otherwise, an exception occurs:

Org. apache. jasper. jasperexception: Java. lang. nullpointerexception Org. apache. jasper. servlet. jspservletwrapper. handlejspexception (jspservletwrapper. java: 522) Org. apache. jasper. servlet. jspservletwrapper. service (jspservletwrapper. java: 416) Org. apache. jasper. servlet. jspservlet. servicejspfile (jspservlet. java: 337)
Org. Apache. Jasper. servlet. jspservlet. Service (jspservlet. Java: 266) javax. servlet. http. http. httpservlet. Service (httpservlet. Java: 803)

Root Cause

Java. lang. nullpointerexception net. FCKeditor. FCKeditor. createhtml (FCKeditor. java: 238) net. FCKeditor. FCKeditor. tostring (FCKeditor. java: 223) Java. lang. string. valueof (unknown source)

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.