FCKeditor can not upload files in the struts2 solution

2010-03-31  来源:本站原创  分类:Web  人气:267 

Recent projects developed using the struts2 also used as the HTML editor FCKEditor

Found in the course of FCKEditor can not upload files (demo has been carried out in accordance with its settings). Error that there is no permission to upload files, through the source was found to return error code 203.

Through the debug their source code (net.fckeditor.connector.ConnectorServlet, 253 lines) obtained items.size () is always equal to 0.

Debugging day (skip the middle expired), and finally found the problem is actually struts2:

The demo in the struts2 in the web.xml like this set

<filter-mapping>
<filter-name> struts2 </ filter-name>
<url-pattern> / * </ url-pattern>
</ filter-mapping>

Note that the red part, here struts2 filter all requests into the following content is OK: the

<filter-mapping>
<filter-name> struts2 </ filter-name>
<url-pattern> *. action </ url-pattern>
</ filter-mapping>

*. action for your struts2 extension.

相关文章
  • FCKeditor can not upload files in the struts2 solution 2010-03-31

    Recent projects developed using the struts2 also used as the HTML editor FCKEditor Found in the course of FCKEditor can not upload files (demo has been carried out in accordance with its settings). Error that there is no permission to upload files, t

  • Upload files using FTP garbled solution 2011-01-04

    Often from the window to upload files to linux, I found the phenomenon will be garbled, windows code is under the GBK, but under linux code is utf-8, will be garbled, as follows: Solution: First, putty, etc. to modify the client code. The second is t

  • FCKeditor can not upload file in struts2 solution 2010-03-31

    Recent projects developed using struts2, also used as the HTML editor FCKEditor Found in the course can not upload file in FCKEditor (in accordance with their demo was set). An error message saying no permission to upload files, found through the sou

  • struts2 upload files Exception 2010-03-29

    Recently, upload pictures, encountered in a problem is that the interceptor to intercept the image size when the error always appear inexplicable, that prompted the error always come out sometimes, and sometimes not come out, I carried a picture in t

  • Struts2 annotation convention upload file upload files Notes 2010-06-04

    Struts2 annotation convention upload file upload files Notes @ InterceptorRefs ((@ InterceptorRef (value = "fileUpload", params = ("AllowedTypes", "image / bmp, image / PNG, image / gif, image / JPEG, image / JPG, image / jpg, app

  • struts2 upload files (commons-fileupload-1.2.1) 2010-08-26

    struts struts-2.1.8.1 version Project called struts2 From the path struts-2.1.8.1 \ lib under the struts2-core-2.1.8.1.jar, xwork-core-2.1.6.jar, commons-fileupload-1.2.1.jar, commons-io-1.3.2.jar copied to the WEB-INF/lib directory Configuration str

  • struts2 upload files and plug-in application uploadify 2010-09-02

    QQ, was asked uploadify in passing parameters, you casually looked and felt very nice, just do struts2 project on the configuration a bit. The framework of the project using a SSh web.xml configuration is as follows: This configuration of the spring

  • struts2 upload files 2010-11-12

    A, struts2 upload a single file The first step: Make sure the WEB-INF/lib in the commons-fileupload-xxxjar, commons-io-xxxjar two jar files. These two files can be downloaded from the struts2 file found in the lib, or to http://commons.apache.org/ do

  • struts2 upload files and multiple file upload 2010-11-17

    1. Struts2 file upload in the first step: In the WEB = INF / lib was added commons-fileupload-1.2.1.jar, commons-io-1.3.2.jar. Step two: the form of the form enctype property is set to "multipart / form-data", such as Java code <form action=&

  • Dojo asynchronous upload files 2008-09-07

    Dojo is a pretty new front-office technology, as a javascript tool set, learning together is not too hard, that is, not a lot of useful information online, there is something to rely on their own slowly elusive ~ ~ ~ dojo's Asynchronous Transfer func

  • JS to control the size of upload files 2009-03-06

    JS to control the size of upload files: var fileSize = 160; var fileType = "jpg, gif, bmp, png"; var bool = false; / / 0 on behalf of From the type of wrong, one representative of the type of upload correctly var str = ""; function che

  • JS Construction upload files through the form form 2009-10-12

    Upload file in, we are aware of the need to form in the form with enctype = "multipart / form-data". In the development process, but also may encounter the need to form structural form with javascripts situation. Javascript general structure for

  • Ajax Upload Files 2009-10-24

    Thought of today, the issue of ajax upload files, I do not know how to solve; then Internet search to see a lot of online articles, see the use of Prototype From the basic fact, the use or manner And do not use ajax to submit documents, to achieve is

  • commons component to Upload Files 2010-03-29

    File Upload using apache under the common components inside the fileupload and io, please go to http://commons.apache.org/downloads/ Components need to download the package, I have used here are: commons-fileupload-1.2.1.jar and commons-io-1.4.jar Th

  • jspsmart to Upload Files to download and jspSmartUpload.jar Download 2010-03-29

    Before use to download jspSmartUpload.jar needs its own bag Find a pro-Chinese jar package, download the following address: http://www.blogjava.net/Files/hijackwust/jsmartcom_zh_CN.rar Inside the jar to archive copies to the project's lib the followi

  • FileUpload control to upload files using the file size limit 2010-03-29

    FileUpload control to upload files using the file size limitations can be configured in the configuration file. Specific configuration in the System.Web configuration section added <HttpRuntime maxRequestLength = "10240" /> Can. Specific t

  • Upload files using HTTP protocol implementation (java) (reproduced) 2010-04-29

    ServletRequest class by getInputStream () method to get a client to the server's data flow, analysis of upload file formats, based on the analysis will turn out more than one file server target file. Format similar to the following: / / File separato

  • Using iframe to Upload Files 2010-05-27

    File upload is now achieved by Ajax. However, you can use iframe to achieve very similar to the Ajax file upload results. First, upload the component I am using apache's commons-fileupload and commons-io package First gave the use of commons-fileuplo

  • Upload files with JSF and MyFaces 2010-06-15

    Of: Andrei Cioroianu Translation: RR00 Copyright: can any reproduced, reprinted, please be sure to hyperlink to the original form of the article identified the source and author information and this statement English original address: http://www.onja

  • Linux_ftp_ command line to download and upload files get put in the order Application 2010-07-11

    Server Ubuntu 10.04 on the use ftp server software name is vsftpd. Description: From the local to the user logged on the machine 192.168.0.16 on anok ftp telnet to 192.168.0.6 through the ftp server, username is peo. To use the connection to do the f