Hi,
Have somebody successfully integrated CKFinder Java version (ckfinder_java_2.0.2.1.zip) inside a Struts2 application?
I put needed files in their correct places, and add ckfinder servlet entries to the web.xml file, which now looks like this:
The file explorator is properly showed in ckfinder samples, but when I finished uploading some image, it’s not showed in the folder, and it is not uploaded. No error messages appear.
When launched demo ckfinder app indepently it works perfect.
Any hint will be greatly appreciated
Have somebody successfully integrated CKFinder Java version (ckfinder_java_2.0.2.1.zip) inside a Struts2 application?
I put needed files in their correct places, and add ckfinder servlet entries to the web.xml file, which now looks like this:
<servlet> <servlet-name>ConnectorServlet</servlet-name> <servlet-class>com.ckfinder.connector.ConnectorServlet</servlet-class> <init-param> <param-name>XMLConfig</param-name> <param-value>/WEB-INF/config.xml</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>ConnectorServlet</servlet-name> <url-pattern> /ckfinder/core/connector/java/connector.java </url-pattern> </servlet-mapping> <filter> <filter-name>struts-cleanup</filter-name> <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class> </filter> <filter> <filter-name>sitemesh</filter-name> <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class> </filter> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> </filter> <filter-mapping> <filter-name>struts-cleanup</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>sitemesh</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <session-config> <session-timeout>90</session-timeout> </session-config> <welcome-file-list> <welcome-file>/index.jsp</welcome-file> </welcome-file-list> <!-- Spring initialization --> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener>
The file explorator is properly showed in ckfinder samples, but when I finished uploading some image, it’s not showed in the folder, and it is not uploaded. No error messages appear.
When launched demo ckfinder app indepently it works perfect.
Any hint will be greatly appreciated
Re: Ckfinder and Struts2
Ckfinder and Struts2 do not upload files
Hi guys,
I have successfully integrated CKFinder Java version (ckfinder_java_2.4.1) inside a Spring + Struts2 application
When I finished uploading some image, it’s not showed in the folder and No error messages appear
In debug log, i see:
saveDir=D:\setup\Eclipse\eclipse-jee-indigo-SR2-win32\_workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\DictionaryPro
2015-01-27 16:23:51,020 DEBUG - Found item upload
2015-01-27 16:23:51,020 DEBUG - Item is a file upload
2015-01-27 16:23:51,024 DEBUG - Entering nullPropertyValue [target=[com.opensymphony.xwork2.DefaultTextProvider@ac3324], property=struts]
2015-01-27 16:23:51,025 INFO - Removing file upload D:\setup\Eclipse\eclipse-jee-indigo-SR2-win32\_workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\DictionaryPro\upload_231e08fe_5fcf_4e3d_9d5a_89f1df8116f0_00000002.tmp
So i think file is uploaded but do not move to expect folder
My setting in Config.xml file:
<baseDir></baseDir>
<baseURL>/Uploadfiles/</baseURL>
Please help me. What the my problem?