Hi,

It used to be (pre-1.0.2) that setting the ActionServlet's multipartClass
property to "none" (in web.xml) would prevent struts from handling multipart
requests.

I had a look at the 1.1b code and at the nightly version and it seems that this
functionality has been removed, although the documentation says the contrary.

It seems to me that the setMultipartClass method in  ControllerConfig, which is
currently:

    public void setMultipartClass(String multipartClass) {
        if (configured) {
            throw new IllegalStateException("Configuration is frozen");
        }
        this.multipartClass = multipartClass;
    }

should actually be:

    public void setMultipartClass(String multipartClass) {
        if (configured) {
            throw new IllegalStateException("Configuration is frozen");
        }
       if ((String multipartClass != null) and "none".equals(multipartClass)) {
                this.multipartClass = null;
      } else {
        this.multipartClass = multipartClass;
      }
    }

Has anybody encountered the same problem?

Thanks,

-Vincent.




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to