http://java.fckeditor.net/java-core/apidocs/net/fckeditor/connector/ConnectorServlet.html
It stores an uploaded file (renames a file if another exists with the same name) and then returns the JavaScript callback.
It stores an uploaded file (renames a file if another exists with the same name) and then returns the JavaScript callback.
Re: Extending ServletConnector Java
UploadResponse ur = new UploadResponse(UploadResponse.SC_OK,"/some/url/file.img","file.img","no error"); // return result response.setHeader("Pragma", "no-cache"); // HTTP 1.0 response.setHeader("Cache-Control", "no-store"); response.setHeader("Content-Type", "text/html"); response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.print(ur); out.flush(); out.close();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