It would be better to post the whole <s:form> tag example plus you action class

pon., 22 sty 2024 o 22:31 Doolin, Kyle
<kyle.doo...@gainwelltechnologies.com> napisał(a):
> <s:file
>        name="vfcForm.fileNameDel"

"vfcForm" is a field in your action with proper getter, right?
"fileNameDel" is a field in the bean "vfcForm", right? If yes, you
must have the following setters

public void setFileNameDel(File file) - it will be called by the
upload interceptor to pass the uploaded file in

public void setFileNameDelContentType(String contentType) - it will be
called by the upload interceptor to set the content type of the
uploaded file

public void setFileNameDelFileName(String filename) - it will be
called by the upload interceptor to set the original name of the
uploaded file

All this is explained here
https://struts.apache.org/core-developers/file-upload.html#example-action-class


Regards
Łukasz

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to