-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am using Tomcat 6. When I tried to upload an image with FCK Editor : it takes like forever. When I tried to browse server for file :
The server didn't reply with a proper XML data. Please check your configuration.
Hi,
you need to code and configure appropriate servlets for handling uploads / file-browsing via FCKEditor, because these kind of operations depend on your application (e.g. where do you want to store the image? Filesystem? Database?).
Cheers, Maik
Demo
It seems to me that the servlet to handling fileupload exist in the jar file. Please have a look at the demo. Try to upload image->Link_>Browse. The view servlet will show up but the problem happens. I have tried your link and deploy their sample. It works : show uploading/browsing servlet. So might be, I have to extract jar file and see what really inside :(.
Thank you for your valuable hint. I figure it out . I thought I could share for all.
1st : fckeditor-java-demo-2.6.war . Download this war file and what we need are all libs and fckeditor.properties from this war file. the fckeditor.properties we can put it in our src/ folder. All libs are in WEB-INF/lib + Zkoss libs ....
Then :
zul file:
<?page title="Auto Generated index.zul"?> <window title="Hello World!!" border="normal" width="100%" height="100%"> <label value="You are using: ${desktop.webApp.version}"/> <fckeditor ></fckeditor> </window>
<servlet> <servlet-name>ConnectorServlet</servlet-name> <servlet-class> net.fckeditor.connector.ConnectorServlet </servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>ConnectorServlet</servlet-name> <!-- Do not wrap this line otherwise Glassfish will fail to load this file --> <url-pattern>/fckeditor/editor/filemanager/connectors/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>ConnectorServlet</servlet-name> <!-- Do not wrap this line otherwise Glassfish will fail to load this file --> <url-pattern>/zkau/web/js/fckez/ext/FCKeditor/editor/filemanager/connectors/*</url-pattern> </servlet-mapping>
Now it works perfectly.
dear vinhvo:
when I config the fckeditor as you do.
it still has the error "The server didn't reply with a proper XML data. Please check your configuration."
would you please send me a simple demo?
to: [email protected]
Asked: 2010-06-02 14:45:13 +0800
Seen: 1,347 times
Last updated: Nov 18 '10