Recently, a project was developed using struts2 and FCKeditor was used as the HTML editor.
During use, FCKeditor cannot upload files (it has been set according to its demo ). Error message: you do not have the permission to upload files. An error is returned through the source code.Code203.
By debugging its source code (net. FCKeditor. connector. connectorservlet, line 1), the items. Size () is always equal to 0.
After one day of debugging (expired in the middle), it was found that the problem was actually struts2:
In web. XML, the struts2 demo sets this way.
<Filter-mapping>
<Filter-Name> struts2 </filter-Name>
<URL-pattern>/*</Url-pattern>
</Filter-mapping>
Note the red part. Here, struts2 filters all requests and changes them to the following content:
<Filter-mapping>
<Filter-Name> struts2 </filter-Name>
<URL-pattern>*. Action</Url-pattern>
</Filter-mapping>
*. Action is your struts2 extension.