Sorry by the bad english...i am brasilian
i got a project in struts 2.0.11 and fckeditor 2.3 (jar) done for ie.
i had to do a upgrade in struts due to problems and maintence of the project....
then i upgraded to struts 2.1.6 with dojo plugin....
then i begin to have problems with the fckeditor component, the problem was when i tryed to do an image upload,
it keep on loading, and get stuck in there. And did not done the upload at all and neither finish the loading.
i saw in somewhere i had to upgrade the fckeditor as well, so i did....
now i am using the fckeditor 2.4.1 (jar) and i still have image upload problems, but this time i got a alert saying that the user does not have the permission
here is my codes:
fckeditor.properties:
connector.userActionImpl=net.fckeditor.requestcycle.impl.UserActionImpl
jsp:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%> <%@taglib prefix="sx" uri="/struts-dojo-tags"%> <%@taglib uri="/struts-tags" prefix="s"%> ... <s:form action="myAction1" namespace="/admin" method="post" id="formulario" enctype="multipart/form-data"> <table width="740" border="0" cellpadding="5" cellspacing="0" id="form"> ... <tr> <td class="tdLabel" width="10%"><label class="label">Texto</label></td> <td width="90%"><FCK:editor instanceName="form.texto" width="600" height="500"> <jsp:attribute name="value"> ${form.texto }</jsp:attribute> </FCK:editor></td> </tr> </table> ... <table width="740" cellpadding="5" cellspacing="0"> <s:url id="urlBt" value="/pages/admin/images/botaoSalvar.gif" /> <s:submit type="image" src="%{urlBt}" cssClass="botao" onclick="javascript:return validaForm();" /> </table> </s:form>
web.xml:
... <filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.FilterDispatcher </filter-class> <init-param> <param-name>actionPackages</param-name> <param-value>br.com.intranet.struts.actions</param-value> </init-param> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> ... <servlet> <servlet-name>Connector</servlet-name> <servlet-class> net.fckeditor.connector.ConnectorServlet </servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Connector</servlet-name> <url-pattern> /fckeditor/editor/filemanager/connectors/* </url-pattern> </servlet-mapping> ...
when i take the struts2 filter off the web.xml, the upload works fine
Re: upload permission alert with struts2 filter
Additionally, see logs if UserActionImpl is sucessfully loaded.
Re: upload permission alert with struts2 filter
in the web.xml i changed this:
for this:
Re: upload permission alert with struts2 filter