Hi I finally got it!
Three request parameters are by default to uploading files to struts 2

-the file itself
-the content type and
-the filename

Frame work is expecting some correct methods like the one you suggested.
It's uploading now. Thank you very much your reply, and your time.  It has
been very helpful.

God bless.

On Thu, Nov 20, 2008 at 7:10 PM, Jeromy Evans <
[EMAIL PROTECTED]> wrote:

> ryan webb wrote:
>
>> Thanks for your kind reply but I have commons-fileupload-1.1.1.jar and
>> commons-io-1.2.jar in my lib folder.  With those jar files included,
>> doesn't
>> that mean that I should be able to do file uploads automatcally?
>>
>>
>>
>
> Yes.  The "unable to load bean MultiPartRequest  (jakarta)" message implies
> there's still a configuration problem though.  Is there a "caused by" in the
> stack trace?
>
> You must be very close.  Can you change the name of your file field to
> something else, say "upload".
> Your action should then have the setters:
>  void setUpload(File file);
>  void setUploadFileName(String fileName);
>  void setUploadContentType(String contentType);
>
> That's slightly different than your quoted configuration (as calling the
> File "file" implies there should be a setFileFileName method).  That
> shouldn't cause a 500 error though.
>
>
>  On Thu, Nov 20, 2008 at 2:56 PM, Jeromy Evans <
>> [EMAIL PROTECTED]> wrote:
>>
>>
>>
>>> ryan webb wrote:
>>>
>>>
>>>
>>>> Hello, first I would like to thank you for reading my email.
>>>>
>>>> I am trying out some examples for uploading a file.  And I always get
>>>> HTTP
>>>> 500 error from tomcat.
>>>> I can't see why, I followed and copied the example.  For sure I missed
>>>> something but I don't know what?
>>>> I tried debugging but I failed because IDE don't enter the execute()
>>>> method.
>>>>
>>>>
>>>>
>>>>
>>> Ensure you have included the "add on" dependencies described here:
>>>
>>> http://struts.apache.org/2.x/docs/file-upload.html
>>>
>>> There are good examples and explanations for Struts 2.0.x and 2.1.x on
>>> that
>>> page.
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
warmest regards,
Ryan Webb - Philippines

email: [EMAIL PROTECTED]

Reply via email to