[ 
https://issues.apache.org/struts/browse/WW-1944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42162
 ] 

Andy Law commented on WW-1944:
------------------------------

So for the sake of 135K of download (commons-io + commons-fileupload), you 
think its better to leave developers guessing as to what their dependencies 
might need to include when you could just stuff them into the POM and have it 
work for everyone (with no nasty surprises for those who *do* need file upload)?

I vote that the pom should be modified to accurately reflect the real runtime 
dependency.

> Unable to load bean org.apache.struts2.dispatcher.multipart.MultiPartRequest 
> (jakarta)
> --------------------------------------------------------------------------------------
>
>                 Key: WW-1944
>                 URL: https://issues.apache.org/struts/browse/WW-1944
>             Project: Struts 2
>          Issue Type: Improvement
>    Affects Versions: 2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.0.10
>         Environment: Strusts 2.06 with xwork 2.0.2
> I use only actually the file strusts2-core-2.0.6.jar and xwork-2.0.2.jar
>            Reporter: sebastien b.
>             Fix For: 2.1.0
>
>
> Hello,
> I try to use file tag to upload a file to my server.
> The problem : When i click on submit button, i had this error : 
> Unable to load bean org.apache.struts2.dispatcher.multipart.MultiPartRequest 
> (jakarta)
> I tried to understand this error and i found that struts.properties have a 
> missing configuration on 'struts.multipart.parser' key.
> The default value about this key is "jakarta" but no jakarta class exist.
> I created a new file strusts.properties (as said in this page 
> http://cwiki.apache.org/WW/handling-file-uploads.html) whith this option :
> struts.multipart.parser=org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest
> And I downloaded commons-fileupload-1.2.jar and commons-io-1.3.1.jar packages.
> And i have no error now ...
> Can i add warning message in this page (http://cwiki.apache.org/WW/file.html) 
> to alert about the obligation of download commons-fileupload and commons-io ?
> Cordially
> P.S. : Sorry for my poor english 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to