Connector used by the FCKeditor to list and create resources on the server.

Package Specification

This servlet is access directly from the file browser in the FCKeditor.
To make everything work correctly you have to add the following piece of code in your application's web.xml
	<servlet>
		<servlet-name>Connector</servlet-name>
		<servlet-class>net.fckeditor.connector.ConnectorServlet</servlet-class>
		<init-param>
			<param-name>baseDir</param-name>
			<param-value>/UserFiles/</param-value>
		</init-param>
		<init-param>
			<param-name>debug</param-name>
			<param-value>false</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>

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

And put in the fckconfig.js the following line:
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/jsp/connector" ;
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector" ;
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector" ;
Also, since the servlet manage a file upload using the Jakarta Common fileupload library, you need to put in your WEB-INF/lib/ the commons-fileupload.jar.

Related Documentation

For overviews, tutorials, examples, guides, and tool documentation, please see: