Thanks for your reply. I tried to put the method public void
setUploadFile(File file) but no success, file is still null in the action.
DNewfield wrote:
>
> hisameer wrote:
>> The uploaded file is always null in my action class:
>
>> <s:file name="upload" label="File"/>
>
>
>> public void setUpload(File file) {
>> this.file = file;
>> }
>
> I believe this should be "public void setUploadFile(File file) {...}"
>
> -Dale
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://www.nabble.com/File-upload-issue-with-Struts-2.1.6-%28uploaded-file-is-always-null-in-action%29-tp25614736p25617453.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]