upload permission alert with struts2 filter
connector.userActionImpl=net.fckeditor.requestcycle.impl.UserActionImpl
<%@ 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>
...
<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>
...
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