I am using the FCKeditor in a J2EE app and need to modify the way the images are stored. I have written a class that extends ServetConnector and have included a doPost method.
When the user chooses to Save the file to the server after having selected it, control is passed to the doPost that I have written. The file is stored the way I would like but control is never passed back to the dialog box - fck_image.html. And as a result, the java script function:
function OnUploadCompleted( errorNumber, fileUrl, fileName, customMsg ) - located in fck_image.js
is never called, and the Throbber() remains active in the dialog box, etc.
My question is, what do I have to do after my business logic in my doPost to pass control back to the popup and the fckeditor.
http://java.fckeditor.net/java-core/apidocs/net/fckeditor/connector/ConnectorServlet.html states that the doPost does the following in the actual ConnectorServlet:
It stores an uploaded file (renames a file if another exists with the same name) and then returns the JavaScript callback.
Currently, I have nothing after the business logic and as a result, NOTHING is the result (the JavaScript callback is never returned).
Thanks.
Re: Extending ServletConnector Java
Seemed to do the trick.
Re: Extending ServletConnector Java
great you found the solution yourself. Since you have adapted the Servlet to your needs. Maybe you could help us out. I have developed in the current trunk a complete Connector abstraction interface. I would be great if you check it out and tell us what you think. All classes reside in n.f.connector.
Thanks,
Mike