Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Struts and the fly likes html:file value is reset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:file value is reset" Watch "html:file value is reset" New topic

html:file value is reset

John Spence

Joined: Jan 05, 2004
Posts: 2
I have a form that contains several input fields, one being an html:file tag. If validation of the form fails, the value the user supplied to the html:file field is lost and the user must enter the value (via the browse button) again.

Can anyone help me understand why the value of the html:file field is being reset and what I can do to prevent it?
It is sorta covered in the JavaRanch Style Guide.
subject: html:file value is reset
Similar Threads
File upload problem
enctype="multipart/form-data" request.getParameter() issue
Regarding "html: reset " button
Uploading file
html:file tag